python toolbox
Project description
Tull - python toolkit
Working, well tested utilities to be shared, and duplicated over and over again.
One line logger
Print each call on a single line,
useful for monitoring and aggregation.
Supporting AWS Lambda logging.
100% coverage
General usage:
import tuul
_logger = tuul.one_line_logger.get_logger()
_logger.debug("this would be printed")
_logger = tuul.one_line_logger.get_logger()
import logging
_logger = tuul.one_line_logger.get_logger(logging_level=logging.INFO)
_logger.debug("no print would be made")
_logger.info("this would be printed")
Specific AWS loggers:
import tuul
_logger = tuul.one_line_logger.get_logger()
import logging
logging.getLogger("boto3").debug("no print would be made")
_logger = tuul.one_line_logger.get_logger(aws_logging_level=logging.DEBUG)
logging.getLogger("boto3").debug("this would be printed")
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage
project template.
Cookiecutter: https://github.com/audreyr/cookiecutter
audreyr/cookiecutter-pypackage
: https://github.com/audreyr/cookiecutter-pypackage
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tuul-0.14.1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for tuul-0.14.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a367e3ebf857214dbdbeedbde75965b870f5f7492b41ad4e5255af81e72896a1 |
|
MD5 | 0153cb8101c684582c00c3873db2888f |
|
BLAKE2b-256 | 0b6abaedba7cfec60eb34e187a82d640f4728cce29798c1eaa596ee29a94f363 |