search close

Python Module Install

access_time Updated Sep 21, 2021

Compatibility

Module is compatible with latest Python 2.X and 3.X

Installation via pip

pip install https://dl.signalsciences.net/sigsci-module-python/sigsci-module-python_latest.tar.gz

Add to Flask Application

1. Reference the module in setup.py

# Reference module in `setup.py`
packages = ['flask', '......', 'sigscimodule']

2. Import the sigscimodule and apply Middleware in app.py

# Import sigsci module
from sigscimodule import Middleware

# To apply SignalSciences middleware, wrap the application object
app.wsgi_app = Middleware(app.wsgi_app)