Skip to main content

A small debug printing module that prints extra info like filenames, function names, and line numbers. It can also recursively print lists, tuples, and dicts.

Project description

A small debug printing module that prints extra info like filenames, function names, and line numbers. It can also recursively print objects such as lists, tuples, and dicts.

More useful stuff may be added in the future.

Example Usage:

from printdebug import printdebug, printobject
def myfunction():
    printdebug('Hello from myfunction.')

myfunction()

# Output:
#   myfile.py line #3 in myfunction: Hello from myfunction.

o = {'key1': {'subkey1': 'value1', 'subkey2': 'value2'}}
printobject(o)

# Output:
#    key1:
#        subkey1:
#            value1
#        subkey2:
#            value2

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

PrintDebug-0.0.5-1.tar.gz (16.0 kB view details)

Uploaded Source

File details

Details for the file PrintDebug-0.0.5-1.tar.gz.

File metadata

File hashes

Hashes for PrintDebug-0.0.5-1.tar.gz
Algorithm Hash digest
SHA256 a03d2824f4c531effbac4aa1bb75ea4c4c6262d120de659137d510492dd766a5
MD5 c3085c274e77243834cb507702057a43
BLAKE2b-256 3fff0b427bc88516be5b43c0f22327a278dacb9a6ed1cddb9b0baf18bb1b5946

See more details on using hashes here.

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