Skip to main content

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

Please report bugs and open pull requests on GitHub.

To work on changes to this library, it’s recommended to install it in editable mode into a virtual environment, i.e. pip install --editable .

Use python -m tests to run all tests locally. Alternatively, you can use tox if you have multiple python versions.

[Only for GitHub team members] Distribute a new version to PyPI by:

  • updating the VERSION tuple in moj_irat/__init__.py

  • adding a note to the History

  • publishing a release on GitHub which triggers an upload to PyPI; alternatively, run python -m build; twine upload dist/* locally

History

0.12

Testing on python 3.10 to 3.14. Improve linting and modernise code style. Migrated to trusted publishing.

0.11

Add experimental support for Django 5.2/Python 3.13.

0.10

Add experimental support for Django versions 5.0 & 5.1.

0.9

Migrated test, build and release processes away from deprecated setuptools commands. No significant library changes.

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.

Release files for django-moj-irat 0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-moj-irat 0.12
File Size Uploaded
django_moj_irat-0.12.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-moj-irat 0.12
File Interpreter ABI Platform
django_moj_irat-0.12-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / django_moj_irat-0.12.tar.gz

Download URL django_moj_irat-0.12.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
aa63ee489cd883c625b0a9d216231bf52b0c6afa0e6439f95e1abf9ddfafd8da
BLAKE2b-256 checksum
How to use checksums
6665c745d25be5c43b47b2eba55eb011bef742491c43cacb3664355784752b8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2025.

Transparency log

Release files / django_moj_irat-0.12-py3-none-any.whl

Download URL django_moj_irat-0.12-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0db9ace846c7ce50f5bb7a2456a54261dc89f2b871418da30c9f937f6893f58a
BLAKE2b-256 checksum
How to use checksums
3a16acf8350ba2c5b8063e333de5fc81a99686302082d89f1a34a9cb5fcd85ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.12 This release

2 release files

0.11

2 release files

0.10

2 release files

0.9

2 release files

0.8

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

3 release files

0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page