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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for PrintDebug-0.0.4.tar.gz
Algorithm Hash digest
SHA256 96661ed23bd87cff2243428103492f1d80f3d7ee3c0cbc7aee6f65f7e3f83cd0
MD5 d77b3adc01cef5accdf45cd6bcc644b1
BLAKE2b-256 8b469a33ca3f52f74f15ebaaa2dd34fcc95efbc2ac1e7ce378f01b7318ea1b13

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