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://github.com/ministryofjustice/django-moj-irat/workflows/Run%20tests/badge.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 tuple in moj_irat/__init__.py and publishing a release in GitHub (this triggers a GitHub Actions workflow to automatically upload it). Alternatively, run python setup.py sdist bdist_wheel upload locally.

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.6.tar.gz (6.2 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.6-py2.py3-none-any.whl (6.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: django-moj-irat-0.6.tar.gz
  • Upload date:
  • Size: 6.2 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.6.tar.gz
Algorithm Hash digest
SHA256 d66ce3c1924e955a918d005f15914ba5320638a372b0cd3a15307a995d067200
MD5 09cde03988d6e7bfdcfc8246039ef90b
BLAKE2b-256 62350e5c59828730ebfac6daf51af4be27830bd09386efefc44c8bdb321a5e69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_moj_irat-0.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0da2b84cc27ed7a9c6c03ede55999f8bafa3a14b9295ea5eb11de719274f6f88
MD5 84aee0492c3e4e782d3c0894079f0a8c
BLAKE2b-256 cd0f7ea512a0444113096a5ce475a46ed947d062d6e04315f1a866a256b7f065

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