skip to navigation
skip to content

Not Logged In

python-jss 1.0.0

Python wrapper for JSS API.

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 JSSImporter, 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/

Linux:

python-jss on Linux has some extra dependencies if you need to be able to mount distribution points. - AFP distribution points require the `fuse-afp` package. - SMB distribution points require the `cifs-utils` package.

As I’m currently developing on Fedora, these requirements are specific to RedHat-based distros. Feel free to test and comment on Debian so I can update!

Usage:

Please see the wiki for complete documentation.

Also, my blog has a series of posts about using python-jss, JSSImporter, and jss_helper, and solving unique problems using these tools.

 
File Type Py Version Uploaded on Size
python_jss-1.0.0-py2-none-any.whl (md5) Python Wheel 2.7 2015-05-20 470KB
python_jss-1.0.0-py2.7.egg (md5) Python Egg 2.7 2015-05-20 464KB
  • Downloads (All Versions):
  • 69 downloads in the last day
  • 1094 downloads in the last week
  • 3514 downloads in the last month