logo

NJP

ServiceNow support for Flask

Import · Feb 19, 2018 · article

Hello!

I've created Flask extension that uses the Pysnow library for creating apps on top of the ServiceNow REST API.

I can think of a plethora of uses for this extension, although the most obvious would probably be to integrate one or more components of your ServiceNow instance into a platform already using the Flask micro-framework.

The code is licensed under MIT, is fully documented and tested with 100% coverage.

I'm waiting for the Flask team to approve it as an official Flask extension.

The project is available here:

https://github.com/rbw0/flask-snow

Here's an example:

API-relay with OAuth

This shows how to create a Flask server using this extension to relay API request, with OAuth support for seamless authentication and authorization in less than 100 lines of code image

More examples will be added over time.

image

View original source

https://www.servicenow.com/community/developer-articles/servicenow-support-for-flask/ta-p/2329908