Skip to main content

Pysnow extension for Flask

Project description


Build apps on top of the ServiceNow REST API using the lightweight Flask microframework

  • Uses the pysnow library.
  • Supports OAuth for a seamless authentication / authorization experience.


$ pip install flask-snow


The documentation can be found here


Minimal server. Does the following:

  1. Sets config
  2. Creates Snow instance
  3. Queries the incident table by number
  4. Returns JSON representation of the result
from flask import Flask, jsonify
from flask_snow import Snow

app = Flask(__name__)
app.config['SNOW_INSTANCE'] = '<instance name>'
app.config['SNOW_USER'] = '<user name>'
app.config['SNOW_PASSWORD'] = '<password>'

snow = Snow(app)

def incident(number):
    incident = snow.resource(api_path='/table/incident')
    response = incident.get(query={'number': number}).one_or_none() or {}
    return jsonify(response)

if __name__ == '__main__':

Name it and run with python

Check out the examples for more!


  • Python 2 and 3
  • Flask > 0.9


Created by Robert Wikman <> in 2018


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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for flask-snow, version 0.2.8
Filename, size File type Python version Upload date Hashes
Filename, size flask-snow-0.2.8.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page