Skip to main content

A chaos engineering middleware for Python Django applications.

Project description

Chaos Middleware Django integration

CI Python versions

Install

This package requires Python 3.5+

$ pip install -U proofdock-chaos-middleware-django

Usage

The chaos middleware takes the following input variables:

Variable Description
CHAOS_MIDDLEWARE_APPLICATION_NAME The service application's name
CHAOS_MIDDLEWARE_APPLICATION_ENV The service application's deployed environment
CHAOS_MIDDLEWARE_PROOFDOCK_API_TOKEN The API token to connect to Proofdock's Chaos API

The configuration exemplified as code:

# file: settings.py
MIDDLEWARE = [
    '..'
    'pdchaos.middleware.contrib.django.django_middleware.DjangoMiddleware',
    '..'
]

# other settings ...

CHAOS_MIDDLEWARE = {
    'CHAOS_MIDDLEWARE_APPLICATION_NAME': 'example-application-name',
    'CHAOS_MIDDLEWARE_APPLICATION_ENV': 'example-environment',
    'CHAOS_MIDDLEWARE_PROOFDOCK_API_TOKEN': 'eyJ0eXAi...05'
}

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file proofdock_chaos_middleware_django-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: proofdock_chaos_middleware_django-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for proofdock_chaos_middleware_django-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42d4beb184ebc9da444d47a12dbf48450e5ec45186add45765c7fe5bbf074d90
MD5 5ed5b3f1506cd01cfc96d1bab6e2a920
BLAKE2b-256 ef5b27125da0d2be12080a07b977f8100a1854de92b6d2a5cc54683e8a5e2844

See more details on using hashes here.

Provenance

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