Skip to main content

A library to dynamically enable debug through configuration

Project description

DynDebug - Dynamic Debug

This library provides the ability to dynamically enable or disable debug through environment configuration.

Usage

Use the factory method to create a debug instance. You provide a context value which is used to enable/disable debug through configuration.

debug = Debug('MyContext1')

Use the debug instance to produce debug content

debug('This is some debug')    

Enable the debug at run time by setting the DEBUG environment property to the list of contexts for which you want debug enabled.

export DEBUG=MyContext1,MyContext2,...

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

dyndebug-0.2.1.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dyndebug-0.2.1-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file dyndebug-0.2.1.tar.gz.

File metadata

  • Download URL: dyndebug-0.2.1.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-31-generic

File hashes

Hashes for dyndebug-0.2.1.tar.gz
Algorithm Hash digest
SHA256 734d42f69d06609a1c9b480516e9a2347ce7f85f06bab15f2de5d9d891f89441
MD5 51d050d91972f0e11064ac5728570d56
BLAKE2b-256 ca5c28ca8fb5f786e217f673d8213ea80bc7cb71ba8307c5695c78d9851a03a9

See more details on using hashes here.

File details

Details for the file dyndebug-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: dyndebug-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-31-generic

File hashes

Hashes for dyndebug-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0eb3387dfc462f383b3901a1027400c838efb582eace65f038ca5321644e8163
MD5 6c7d3bc3e1d8e58165e3b4d8062161b7
BLAKE2b-256 74d43e3d546a565d52bb963493e93af54537ad53520ad13ac799f317b5ffab82

See more details on using hashes here.

Supported by

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