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.

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.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.

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

Uploaded Python 3

File details

Details for the file django_moj_irat-0.11.tar.gz.

File metadata

  • Download URL: django_moj_irat-0.11.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for django_moj_irat-0.11.tar.gz
Algorithm Hash digest
SHA256 88fe8d481f289fd95c184b5286774b6a194c4e74d07ff4a101fc5e148b5987d4
MD5 6eeb243b8747455300544aa489ee50be
BLAKE2b-256 1abc06102588975e80ca9364b6d54c66a6fb99e869f134ae0b3d60d67cc65f55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_moj_irat-0.11-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for django_moj_irat-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 bc3f9304879e6a11cbfe8855da729a97d6f25fea6d4c3894a495e79d43f30db3
MD5 ec1263a1ce377436ce3eabd82fa5a2cf
BLAKE2b-256 8a238415edde4bab6646d2165a85d5735b6ac21ad28c525428b36bf808b53b3c

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