Skip to main content

disptrace - trace Python statement execution HTML

Disptrace traces Python code execution, generating HTML file to display execused line of codes. The resulting HTML has navigation menu to collapse function calls or hide paticuler modules and functions.

Usage

Create disptrace.Disptrace object as trace module in Python standard library, and invoke target function to be traced as follow:

import disptrace
t = disptrace.DispTrace()
t.runfunc(myfunc)
with open("trace.html", "w") as f:
    f.write(t.render())

DispTrace.render() method generates HTML string of the information.

~/.disptrace file

You can create ~/.disptrace file to specify default value of ignoremods and ignoredirs in ConfigParser style ini file:

[disptrace]
ignorepath=/usr/local/lib/python2.6/dist-packages/:/usr/lib/python2.6/plat-linux2
ignoremodule=sys, os

ignorepath is a list of directories whose modules or packages should be ignored. Each path should deilmited by os.path.pathsep character (‘:’ in Unixes, ‘;’ in Windows).

ignoremodule list of modules or packages to ignore. Each modules should be delimited by ‘,’ character.

Metadata

Release files for disptrace 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for disptrace 0.4
File Size Uploaded Provenance Actions
disptrace-0.4.tar.gz 7.3 kB Without provenance Details for disptrace-0.4.tar.gz

Release files / disptrace-0.4.tar.gz

Download URL disptrace-0.4.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d2c6f194e002f1d4e5c0743c4f32969cd1413077a3b32ae5224606ac715fd3c6
BLAKE2b-256 checksum
How to use checksums
859c0093598595d42266bc96de808b7476415d1d7dd387dfa25f117a83a130a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for disptrace 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page