/pysnow

Python library for the ServiceNow REST API

Primary LanguagePythonMIT LicenseMIT

 ______   __  __    ______    __   __    ______    __     __
/\  == \ /\ \_\ \  /\  ___\  /\ "-.\ \  /\  __ \  /\ \  _ \ \
\ \  _-/ \ \____ \ \ \___  \ \ \ \-.  \ \ \ \/\ \ \ \ \/ ".\ \
 \ \_\    \/\_____\ \/\_____\ \ \_\\"\_\ \ \_____\ \ \__/".~\_\
  \/_/     \/_____/  \/_____/  \/_/ \/_/  \/_____/  \/_/   \/_/
                - a Python library for the ServiceNow REST API
https://travis-ci.org/rbw0/pysnow.svg?branch=master https://coveralls.io/repos/github/rbw0/pysnow/badge.svg?branch=master

News

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).

Documentation

The documentation is divided into four sections:

Other projects using pysnow

  • 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

Author

Robert Wikman <rbw@vault13.org>

Contributors

lingfish, jcpunk, AMMullan, amontalban, ryancurrah, jdugan1024, punkrokk

JetBrains

Thank you Jetbrains for creating pycharm and providing me with free licenses