______ __ __ ______ __ __ ______ __ __ /\ == \ /\ \_\ \ /\ ___\ /\ "-.\ \ /\ __ \ /\ \ _ \ \ \ \ _-/ \ \____ \ \ \___ \ \ \ \-. \ \ \ \/\ \ \ \ \/ ".\ \ \ \_\ \/\_____\ \/\_____\ \ \_\\"\_\ \ \_____\ \ \__/".~\_\ \/_/ \/_____/ \/_____/ \/_/ \/_/ \/_____/ \/_/ \/_/ - a Python library for the ServiceNow REST API
Version 0.7 released
This release comes with a new attachment helper, available in table-type Resources. Go here for its API documentation, or check out an example.
Also, the Response
interface has been further improved and now allows chaining. Example:
incidents = c.resource(api_path='/table/incident')
incident = incidents.get(query={'number': 'INC01234'})
print('uploading last words to incident: {0}'.format(incident['sys_id']))
incident.upload(file_path='/tmp/last_words.txt')
incident.update({'description': 'Bye bye'})
incident.delete()
Additionally, generator / streamed responses are now default off, but can be easily enabled by passing stream=True to Resource.get
for those memory-intensive queries.
Furthermore, I've decided to remove legacy parts of the library, which has been deprecated for quite some time, in version 0.8 of pysnow (around May).
The documentation is divided into four sections:
- General (install, compatibility etc)
- Library API
- Usage
- Full examples
- flask-snow - Adds ServiceNow support to Flask
- django-snow - ServiceNow Ticket Management App for Django based projects
- pysnow-shovel - Script for easy peasy pushing data into ServiceNow
Robert Wikman <rbw@vault13.org>
lingfish, jcpunk, AMMullan, amontalban, ryancurrah, jdugan1024, punkrokk
Thank you Jetbrains for creating pycharm and providing me with free licenses