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/actions/workflows/test.yml/badge.svg?branch=main https://github.com/ministryofjustice/django-moj-irat/actions/workflows/lint.yml/badge.svg?branch=main

Please report bugs and open pull requests on GitHub.

Use python setup.py test to run all tests.

Distribute a new version to PyPi 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. Remember to update History.

History

0.8

Drop support for python 3.6 and 3.7. Add support for python 3.11. Add experimental support for Django versions 4.0 & 4.1. Improve testing and linting.

0.7

Add support for python 3.9 and 3.10. Improve testing and linting.

0.6

Drop support for python 3.5. Improve linting.

0.5

Drop python 2 support (now compatible with 3.5 - 3.8). Support Django 2.2 - 3.2 (both LTS).

0.4

Include CORS header.

0.3

Add python 2 compatibility.

0.2

Allow including JSON response for healthchecks.

0.1

Original release.

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.8.tar.gz (6.5 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.8-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-moj-irat-0.8.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for django-moj-irat-0.8.tar.gz
Algorithm Hash digest
SHA256 73173064f8c77f2c3d52cd934cee89307508b36032c45451d4d1bafe5c7137a1
MD5 999403a99e67cd9fd6c4c9db275be991
BLAKE2b-256 0f1fb4f0eb39eac8e047d44941310d19db67d91320eb0ea5e9ed0f3dfb8b7ecf

See more details on using hashes here.

File details

Details for the file django_moj_irat-0.8-py3-none-any.whl.

File metadata

  • Download URL: django_moj_irat-0.8-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for django_moj_irat-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 58c44979b10e70875ebd9fd0e6ae46f16cbf8d7acc2c141f248b80322b868d14
MD5 0ae838a54c37836b96ccfcdee281089d
BLAKE2b-256 1c4378501dd4f742fee2cd89cc9dfe105a7d230f60af91b0cfc1ea409f7fcc62

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