Skip to main content

Tools to support adding a Django-based service to Ministry of Justice's Incidence Response and Tuning

Project description

A set of tools to make it easier to add a Django-based service to Ministry of Justice’s Incidence Response and Tuning:

  • ping.json view

  • healthcheck.json view with extensible healthchecks

Usage

Install using pip install django-moj-irat.

Django settings:

HEALTHCHECKS = [
    'moj_irat.healthchecks.database_healthcheck',
    # override default list of healthcheck callables
]
AUTODISCOVER_HEALTHCHECKS = True  # whether to autodiscover and load healthcheck.py from all installed apps

Development

https://travis-ci.org/ministryofjustice/django-moj-irat.svg?branch=master

Please report bugs and open pull requests on GitHub.

Use python setup.py test to run all tests.

Distribute a new version by updating the version argument in setup.py:setup and creating a release in GitHub (this triggers a GitHub Actions workflow to automatically upload it).

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

django-moj-irat-0.5.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_moj_irat-0.5-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-moj-irat-0.5.tar.gz.

File metadata

  • Download URL: django-moj-irat-0.5.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for django-moj-irat-0.5.tar.gz
Algorithm Hash digest
SHA256 a3705430ccc6574d7ee43ce01fdef8a2737760042957b3b94b0964fab040bc2b
MD5 05a54196291f091c2adb05802a6bb7f0
BLAKE2b-256 fb4d99756a745da766f29b2377c3c3fdcf404540d9cebd34098edb87b6c996bc

See more details on using hashes here.

File details

Details for the file django_moj_irat-0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: django_moj_irat-0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for django_moj_irat-0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 43b971b8b286b7b7ec919c3f4378eacc1b9571bd426c0575f3d8154111975861
MD5 ec1bbdf365cf66bbcce37a5fa313dc17
BLAKE2b-256 6ead8ae545c229d37dde7d81a3101a4ce73fdd67699ab3741b9652c5ed554841

See more details on using hashes here.

Supported by

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