Skip to main content

django-alive-checks

PyPI version Build status

django-alive-checks is a Django application that provides additional health checks for your Django projects. These checks are designed to work with the django-alive package but include dependencies that cannot be part of django-alive itself.

Installation

You can install the base package with:

pip install django-alive-checks

If you want to include support for Elasticsearch, install with:

pip install django-alive-checks[elasticsearch]

Integration with django-alive

To integrate the check_elasticsearch function with your django-alive checks, you can add it to your health checks configuration:

# settings.py

ALIVE_CHECKS = [
    ...
    ("alive_checks.checks.check_elasticsearch", {"settings": ES_SETTINGS}),
]

Where the ES_SETTINGS contains settings that you pass to elsaticsearch.Elasticsearch.

Testing

To run the tests for this project:

python -m unittest discover

The tests cover the following scenarios:

  • Successful connection to Elasticsearch.

  • Failed connection to Elasticsearch.

  • Exceptions during connection attempts.

  • Handling the absence of the elasticsearch package.

Contributing

Contributions are welcome! If you encounter any issues, have ideas for improvements, or want to add more checks, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Acknowledgments

Thanks to the Django and Elasticsearch communities for their continued support and development of the libraries that make this project possible.

Metadata

Release files for django-alive-checks 0.3

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-alive-checks 0.3
File Size Uploaded
django_alive_checks-0.3.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-alive-checks 0.3
File Interpreter ABI Platform
django_alive_checks-0.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / django_alive_checks-0.3.tar.gz

Download URL django_alive_checks-0.3.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0491b29ed706476eb96c10f3df886f4bd673c20e8bdc5b7ec8007ba86fcac260
BLAKE2b-256 checksum
How to use checksums
f822e24dde7dc2670458110fbe2922c930ee14baf0c3d36c58e0ea391e427ff2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / django_alive_checks-0.3-py3-none-any.whl

Download URL django_alive_checks-0.3-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8782bf186bde24b7b3b6da0faa5bb2fd7d5d91c19e36c3e401f77486f597ccf2
BLAKE2b-256 checksum
How to use checksums
3720e946cd7a009798b130af3f4b1497dd693ff2bc7d0d2a5fa4c6883f6b59e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2

2 release files

0.1

2 release files

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