Skip to content

Common infrastructure (logger, docker-compose, yaml reader, serializer, clock)

License

Notifications You must be signed in to change notification settings

aleasoluciones/infcommon3

Repository files navigation

infcommon3

CI Python versions supported

This library contains some utils that are commonly used in most of the Alea's projects.

Installation

mkvirtualenv infcommon3 -p $(which python3)
workon infcommon3
source dev/env_develop
dev/setup_venv.sh

Running the tests

all_tests

Usage of this library in another project

To use this library add the line below to your requirements.txt:

-e git+https://github.com/aleasoluciones/infcommon3.git@#egg=infcommon

Then install the dependencies:

python -m pip install -r requirements.txt

Logging configuration

  • You can set the SENTRY_DNS environment variable to use Sentry as logger handler.
  • To disable the logs, set the environment variable TEST_MODE (e.g. when executing the tests we don't want logs to be printed or breaking the execution).

USR signals

  • You can activate/deactivate DEBUG logs with USR1/USR2 signals
  • You can activate/deactivate SENTRY TRACE SAMPLING with SIGRTMIN/SIGRTMAX signals. Sentry trace sampling is disable by default

About

Common infrastructure (logger, docker-compose, yaml reader, serializer, clock)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published