Skip to main content

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.

Files for tuul, version 0.14.1
Filename, size File type Python version Upload date Hashes
Filename, size tuul-0.14.1-py2.py3-none-any.whl (4.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size tuul-0.14.1.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page