Skip to main content

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

hypercurrent_django-1.0.4.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

hypercurrent_django-1.0.4-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page