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.tar.gz (15.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: PrintDebug-0.0.5.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PrintDebug-0.0.5.tar.gz
Algorithm Hash digest
SHA256 6db9b8e41b71dee488c1fc9faba66db71e0ab4cc4aae6f20f811c8b0d1e937b4
MD5 3e63c1320860a6790cacce0081be16ab
BLAKE2b-256 b6aee065fccbc4f7eb23af3c4628d0379ab4980d82cdca5f1922e457a10a7a0a

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