semvec/pypi-packages huggingface dataset:
django-alive-checks 0.2
Additional health checks for django-alive



django-alive-checks
===================

.. image:: https://img.shields.io/pypi/v/django-alive-checks.svg
   :target: https://pypi.org/project/django-alive-checks/
   :alt: PyPI version

.. image:: https://github.com/PetrDlouhy/django-alive-checks/workflows/Django%20Tests/badge.svg
   :target: https://github.com/PetrDlouhy/django-alive-checks/actions
   :alt: 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 <https://github.com/pinax/django-alive>`_ package but include dependencies that cannot be part of `django-alive` itself.

Installation
------------

You can install the base package with:

.. code-block:: bash

    pip install django-alive-checks

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

.. code-block:: bash

    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:

.. code-block:: python

    # 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:

.. code-block:: bash

    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.
Mits-AI-Dreamers 2024.0.1
This is Hamming distance, Jaccard coefficient, overlap
Requires Python: >=3.5

![License: MITS](https://img.shields.io/badge/License-MIT-green.svg)
[![License](https://img.shields.io/badge/License-Boost_1.0-lightblue.svg)](https://www.boost.org/LICENSE_1_0.txt)
[![Documentation Status](https://readthedocs.org/projects/mits-ai-dreamer/badge/?version=latest)](https://mits-ai-dreamer.readthedocs.io/en/latest/?badge=latest)
sbcli-snode 1.0.9
CLI for managing SimplyBlock cluster


# Simply Block
[![Docker Image Build](https://github.com/simplyblock-io/sbcli/actions/workflows/docker-image.yml/badge.svg)](https://github.com/simplyblock-io/sbcli/actions/workflows/docker-image.yml)

[![Python Unit Testing](https://github.com/simplyblock-io/sbcli/actions/workflows/python-testing.yml/badge.svg)](https://github.com/simplyblock-io/sbcli/actions/workflows/python-testing.yml)


## Install
Add the package repo from AWS CodeArtifact using [awscli](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)

```bash
aws codeartifact login --tool pip --repository sbcli --domain simplyblock --domain-owner 565979732541 --region eu-west-1
```
Install package
```bash
pip install --extra-index-url https://pypi.org/simple sbcli-dev
```

# Components

## Simply Block Core
Contains core logic and controllers for the simplyblock cluster

## Simply Block CLI
Please see this document
[README.md](../main/simplyblock_cli/README.md)


## Simply Block Web API
Please see this document
[README.md](../main/simplyblock_web/README.md)



### local development

FoundationDB requires a client library (libfdb_c.dylib) for the Python bindings to interact with the database.
Depending on the OS architecture, please install the appropriate version from the official github repo

```
wget https://github.com/apple/foundationdb/releases/download/7.3.3/FoundationDB-7.3.3_arm64.pkg
```

setup the code on a management node and the webApp code can be developed by building the `docker-compose-dev.yml` file.


```
sudo docker compose -f docker-compose-dev.yml up --build -d
```