HyperCurrent Middleware for Python Django
Project description
HyperCurrent Middleware for Python Django
Django middleware to dispatch metering metadata for HTTP API calls to HyperCurrent.
Installation
pip install hypercurrent_metering
pip install hypercurrent_django
Usage
In your settings.py
file in your Django project directory,
please add the following to the middleware array:
'hypercurrentdjango.middleware.HyperCurrentMiddleware'
Configuration
HYPERCURRENT_API_KEY
(required), string, your HyperCurrent API Integration Key
HYPERCURRENT_APPLICATION_HEADER
(optional), string, the HTTP header to determine the API consumer. The default is "clientId".
HYPERCURRENT_METADATA_HEADER
(optional), string, An optional response header to extract metering metadata from.
HYPERCURRENT_API_URL
(optional), string, the HyperCurrent API URL. You should only need to change this if using a non-US based HyperCurrent instance (ie, EMEA or customer compute.)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hypercurrent_django-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 950b1654af5be786642e1b9ff10e861a227cd61dd3d29ac40c227c36dc25d380 |
|
MD5 | c72040cccf363a468449de5ca36bbe12 |
|
BLAKE2b-256 | 745f747119ee678f6304aecf179ee26d798fcba0dd0129386ede6b8262464507 |
Close
Hashes for hypercurrent_django-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95e6a2fa2d4f0dc43989166be805d7c453e0e28eaa3afe94fa39808133b4c5d2 |
|
MD5 | e48fdec4847f604bda0379d87643fe36 |
|
BLAKE2b-256 | 6de3b83e0976f801651d99573dcba13821790e541e3b1429572c33e971a9f199 |