├── .python-version ├── aiojss ├── __init__.py ├── etree │ ├── cElementTree.py │ ├── __init__.py │ ├── ElementInclude.py │ ├── ElementPath.py │ └── ElementTree.py └── aiojss.py ├── requirements.txt ├── .codacy.yml ├── scripts └── Install Software Updates │ ├── script.sh │ └── script.xml ├── extension_attributes └── Last User │ ├── ea.sh │ └── ea.xml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── tools ├── ci_tests │ ├── validatexml.sh │ ├── validate_files_and_folders.sh │ └── verifyEA.py ├── hooks │ └── pre-push └── download.py ├── README.md ├── CODE_OF_CONDUCT.md └── sync.py /.python-version: -------------------------------------------------------------------------------- 1 | 3.6.3 2 | -------------------------------------------------------------------------------- /aiojss/__init__.py: -------------------------------------------------------------------------------- 1 | from .aiojss import JSS, Script, ExtensionAttribute 2 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | aiohttp 2 | cchardet 3 | aiodns 4 | uvloop 5 | requests 6 | configparser -------------------------------------------------------------------------------- /aiojss/etree/cElementTree.py: -------------------------------------------------------------------------------- 1 | # Deprecated alias for xml.etree.ElementTree 2 | 3 | from xml.etree.ElementTree import * 4 | -------------------------------------------------------------------------------- /.codacy.yml: -------------------------------------------------------------------------------- 1 | --- 2 | exclude_paths: 3 | - 'aiojss/**' 4 | - 'tools/**' 5 | - 'scripts/**' 6 | - 'extension_attributes/**' 7 | -------------------------------------------------------------------------------- /scripts/Install Software Updates/script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Install all software updates 4 | # Example for git2jss 5 | 6 | softwareupdate -i -a 7 | 8 | exit 0 -------------------------------------------------------------------------------- /extension_attributes/Last User/ea.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | lastUser=`defaults read /Library/Preferences/com.apple.loginwindow lastUserName` 3 | 4 | if [ $lastUser == "" ]; then 5 | echo "No logins" 6 | else 7 | echo "$lastUser" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | 3 | # Virtual environment for Python 3 4 | venv/* 5 | 6 | # Compiled Python 7 | *.pyc 8 | 9 | # Example scripts and EAs 10 | extension_attributes/* 11 | !extension_attributes/Last User/ 12 | scripts/* 13 | !scripts/Install Software Updates/ 14 | -------------------------------------------------------------------------------- /scripts/Install Software Updates/script.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | When contributing to this repository, it is advised but not required to first discuss the change 4 | you wish to make via issue, email, or any other method with the owners of this repository before 5 | making a change. 6 | 7 | Please note we have a [code of conduct](https://github.com/BadStreff/git2jss/blob/master/CODE_OF_CONDUCT.md), 8 | please follow it in all your interactions with the project. 9 | -------------------------------------------------------------------------------- /extension_attributes/Last User/ea.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Last User 4 | true 5 | This attribute displays the last user to log in. This attribute applies to both Mac and Windows. 6 | String 7 | 8 | script 9 | Mac 10 |