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
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.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.
Copyright
Copyright (C) 2023 HM Government (Ministry of Justice Digital & Technology). See LICENSE.txt for further details.
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
Built Distribution
File details
Details for the file django_moj_irat-0.10.tar.gz
.
File metadata
- Download URL: django_moj_irat-0.10.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b08489615f953785b13394b69b278d89af5e786acf6a595590c0c86a8df00e2 |
|
MD5 | 5b0a6df5c72a557c4c91eca92f232fc3 |
|
BLAKE2b-256 | b8faa1d7dd2b9f5ebe4a67392a685b28182b2e1205ccfce50a3bd8ac48d715fa |
File details
Details for the file django_moj_irat-0.10-py3-none-any.whl
.
File metadata
- Download URL: django_moj_irat-0.10-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8086ad42d1c30cb62e281409b01091016c7247f4f9642f1127436f190e65d58 |
|
MD5 | 40c5743a22dff652f64983d492ff237f |
|
BLAKE2b-256 | 35b4b3daa1f2978429ecd32a39e6056a13d1604ac1a031455d04b49b073eeabf |