Skip to content

SN as sentinel network is library for common features shared by all sentinel boxes.

License

Notifications You must be signed in to change notification settings

turris-cz/sentinel-sn

Repository files navigation

Sentinel Network

This is core Sentinel server infrastructure library implementing common functionalities for all Sentinel boxes such as:

  • ZMQ networking
  • Common configuration framework
  • Logging in standardized way (necessary to handle log messages by TM - Turris Monitoring)
  • Message queue for handling messages in safe and good-performing way
  • Boxes monitoring

Dependencies

  • pyzmq - Python bindings for ØMQ
  • msgpack - MessagePack (an efficient binary serialization format) for Python

Build system, dependency management, packaging:

Dev tools:

Tests:

Project setup

Install poetry:

curl --silent --show-error --location https://install.python-poetry.org | python3 -

Create virtual environment by tool of your choice and activate it e.g.:

poetry shell

Install the project and its dependencies in a virtual environment:

poetry install

Dev tools usage

Formating:

black .

Sorting imports:

isort .

Linting:

flake8p .

Type check:

mypy .

Tests and coverage usage

To run tests:

pytest -v

To generate coverage report:

pytest --cov=turris_sentinel_network/

Usage

To see how you can use it to implement a server infrastructure box see usage and examples folder.

About

SN as sentinel network is library for common features shared by all sentinel boxes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages