Skip to main content

super simple context manager to print debug message

Project description

Debug Context Manager

Super simple context manager to wrap a block of code with a debug message.


from debug_context_manager import debug

with debug("Doing this stuff"):
    # some code

with debug("Doing other stuff", "and finished!"):
    # other code

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

debug_context_manager-0.1.tar.gz (1.3 kB view hashes)

Uploaded Source

Built Distributions

debug_context_manager-0.1-py2.py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 2 Python 3

debug_context_manager-0.1-py2.7.egg (1.4 kB view hashes)

Uploaded Source

Supported by

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