Python wrapper for JSS API.
Project description
python-jss Introduction:
This project aims to offer simple, elegant, pythonic access to the Jamf Casper JSS API.
Jamf provides access to the JSS and most of its object types through a REST API. python-jss allows you interact with the API to create new objects, list or edit the existing ones, and to upload files to configured distribution points.
The level of coverage for convenience methods and properties is primarily centered on Computer management, and specifically, those aspects which factor into policy and package management.
Automating policy creation is streamlined; however, class MobileDeviceInvitations provides nothing beyond basic JSSObject methods and properties to the API. Those aspects which I use heavily in our organization, and in support of jss-autopkg-addon, tend to be more fleshed out, whereas aspects of the JSS API that I never use tend to be minimalistic. However, based on the code here, it should be easy for anyone wishing to do so to implement a new() method for those objects they’re interested in, and I would be happy to include them. Send me your pull requests!
Installing:
The easiest method is to use pip to grab python-jss:
$ pip install python-jss
If you don’t have pip, you should probably get it: https://pip.pypa.io/en/latest/installing.html
Alternately, download the source and copy the python-jss package wherever you normally install your packages.
Behind the scenes, python-jss uses requests and Greg Neagle’s FoundationPlist. Check them out at: requests: http://docs.python-requests.org/en/latest/ FoundationPlist is part of Munki: https://code.google.com/p/munki/
Usage:
Please see the wiki for complete documentation.
Also, my blog has a series of posts about using python-jss, jss-autopkg-addon, and jss-helper, and solving unique problems using these tools.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for python_jss-0.4.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb4580890951fb582221303aaa990f49a47ded1cb1de5356e84e9480c527bdb1 |
|
MD5 | 75a94c7e91d0378c3323abbc25e6c8ca |
|
BLAKE2b-256 | 6b2e7bc607efcae6497705a32dde17ece09a4a2eb6bb2fbb99490e9b87a33dba |