Library to streamline healthchecks for Directory apps.
Project description
directory-healthcheck
Wrapper around django-health-check to streamline health checks in directory apps.
Installation
pip install directory-healthcheck
Usage
Update your settings.py
:
import directory_healthcheck.backends
INSTALLED_APPS = [
...
'directory_healthcheck',
...
]
DIRECTORY_HEALTHCHECK_TOKEN = 'some-secret-token'
DIRECTORY_HEALTHCHECK_BACKENDS [
directory_healthcheck.backends.APIBackend,
directory_healthcheck.backends.SingleSignOnBackend,
directory_healthcheck.backends.FormsAPIBackend,
]
Update your urls.py
:
url(
r'^healthcheck/$',
directory_healthcheck.views.HealthcheckView.as_view(),
name='healthcheck'
),
Development
$ git clone https://github.com/uktrade/directory-healthcheck
$ cd directory-healthcheck
$ make
Publish to PyPI
The package should be published to PyPI on merge to master. If you need to do it locally then get the credentials from rattic and add the environment variables to your host machine:
Setting |
---|
DIRECTORY_PYPI_USERNAME |
DIRECTORY_PYPI_PASSWORD |
Then run the following command:
make publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file directory_healthcheck-3.7-py3-none-any.whl
.
File metadata
- Download URL: directory_healthcheck-3.7-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2a94f96a84dd80b9fc10f80ec6e1a644fae47daff7b7195887854b245c0d4a8 |
|
MD5 | 46f1f3d6a0559bd2e0334c443cfb0688 |
|
BLAKE2b-256 | 5f8863e26d760e978dbaca527245812a6b26ef1da7e27b2658059bb7e4a4f67d |