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.

Source Distribution

tuul-0.14.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

tuul-0.14.1-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tuul-0.14.1.tar.gz.

File metadata

  • Download URL: tuul-0.14.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for tuul-0.14.1.tar.gz
Algorithm Hash digest
SHA256 a5314aa852f9f6054fd9dc3aa22fce8e8cda81383ca03c7d3b47c16fe060083a
MD5 f5c76bebacff5c15aae6d70eeafcee90
BLAKE2b-256 88b35110a20b10127b592b2b72b1dce7375a9e26dc90261d48869416e05ce31a

See more details on using hashes here.

File details

Details for the file tuul-0.14.1-py2.py3-none-any.whl.

File metadata

  • Download URL: tuul-0.14.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for tuul-0.14.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a367e3ebf857214dbdbeedbde75965b870f5f7492b41ad4e5255af81e72896a1
MD5 0153cb8101c684582c00c3873db2888f
BLAKE2b-256 0b6abaedba7cfec60eb34e187a82d640f4728cce29798c1eaa596ee29a94f363

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page