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.5.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

hypercurrent_django-1.0.5-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file hypercurrent_django-1.0.5.tar.gz.

File metadata

  • Download URL: hypercurrent_django-1.0.5.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for hypercurrent_django-1.0.5.tar.gz
Algorithm Hash digest
SHA256 fe8f31e91f1493ba2f7c55711a01cf639367e3b06555f5bdd30041a6a7ecd202
MD5 c1f0c57e731366a9134c936b4cd2c0e8
BLAKE2b-256 a731e19514f14f422d4257ba8320887ffb341914919571e33375429b9889c3d8

See more details on using hashes here.

File details

Details for the file hypercurrent_django-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for hypercurrent_django-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0680a8115779b2389184ce0fd81dd06f52a395b660b9e706024de64d5408a3e0
MD5 d7addd3c12911d90d87ebee162bfc84c
BLAKE2b-256 636a60582516ccead3523ece1b5311e201a6561eb02b67f95a54febb60df69a2

See more details on using hashes here.

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