A quick way to customize your Tracebacks
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
customtraceback-0.8.2.tar.gz
(2.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file customtraceback-0.8.2.tar.gz.
File metadata
- Download URL: customtraceback-0.8.2.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64af1c779c56fd947606403757de4e02c0d52c6d8e465221f39ef2a06f7337a6
|
|
| MD5 |
3261e26a88f508820aebb00915c2aac0
|
|
| BLAKE2b-256 |
7b320e589a76b35610d8749aced38d37e726f5b5b57adf17ff852d0f5744dcb9
|
File details
Details for the file customtraceback-0.8.2-py3-none-any.whl.
File metadata
- Download URL: customtraceback-0.8.2-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33b4924492cba4d67b0ef76f15a00960988369604af1d7b3482f8abd48674def
|
|
| MD5 |
ae99428c53ea125c0c5a56ae2c46e59b
|
|
| BLAKE2b-256 |
d19173088e6c34e178f234db2dd6d6fbe3e165eed05207cdd97996875478c5df
|