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.
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.
Copyright
Copyright (C) 2022 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-moj-irat-0.7.tar.gz.
File metadata
- Download URL: django-moj-irat-0.7.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf5352e6e1f79ce1f2f73d993141259565304f430ff94c81f377f015858c637b
|
|
| MD5 |
95880c6e91b24750956663fb6074467e
|
|
| BLAKE2b-256 |
dd3ac34aa884b8a102633292a5c52cc261c4d82cd5400673abab353b7b2cb312
|
File details
Details for the file django_moj_irat-0.7-py3-none-any.whl.
File metadata
- Download URL: django_moj_irat-0.7-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7d4086f6d06e8feec342f14ee8d7355c02f76b3e253e1644ddb7a4228d5d819
|
|
| MD5 |
f24708065d4dbc35edecf8e1e172d3c7
|
|
| BLAKE2b-256 |
0d83c4af72ab7d34fc14d46eb8ffd651d51f5e1196188022289c420c6073596e
|