Skip to main content

customTraceback

A quick and easy way to customize your Python tracebacks

import customTraceback

def myTraceback(name, value, tb, line): 
    print(f"🔥 Exception: {name}") # name: name of the exception
    print(f"💬 {value}") # value: Value (description) of the exception
    print(f"📜 Trace: {tb}") # tb: Traceback (default traceback without colors)
    print(f"📄 At Line: {line}") # line: the line number (string)

customTraceback.setTraceBack(myTraceback)

1 / 0

This replaces any Exception with a custom traceback, but in this example, it raises zerodevisionerror

This is a basic example this package is a fun package to make cool tracebacks

Metadata

Release files for customTraceback 0.8.2

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

Source distribution (sdist)

Source distribution for customTraceback 0.8.2
File Size Uploaded Provenance Actions
customtraceback-0.8.2.tar.gz 2.1 kB Without provenance Details for customtraceback-0.8.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for customTraceback 0.8.2
File Interpreter ABI Platform Actions
customtraceback-0.8.2-py3-none-any.whl Python 3 none any Details for customtraceback-0.8.2-py3-none-any.whl

Total release size: 4.4 kB

Release files / customtraceback-0.8.2.tar.gz

Download URL customtraceback-0.8.2.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
64af1c779c56fd947606403757de4e02c0d52c6d8e465221f39ef2a06f7337a6
BLAKE2b-256 checksum
How to use checksums
7b320e589a76b35610d8749aced38d37e726f5b5b57adf17ff852d0f5744dcb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / customtraceback-0.8.2-py3-none-any.whl

Download URL customtraceback-0.8.2-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33b4924492cba4d67b0ef76f15a00960988369604af1d7b3482f8abd48674def
BLAKE2b-256 checksum
How to use checksums
d19173088e6c34e178f234db2dd6d6fbe3e165eed05207cdd97996875478c5df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for customTraceback 0.8.2

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.

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