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):
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)
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.7.0.tar.gz
(2.0 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.7.0.tar.gz.
File metadata
- Download URL: customtraceback-0.7.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9fa83f60f8e37a335ec438cde2101407ea9cdd6f8ea715021ad49ca45b919f3
|
|
| MD5 |
36005a6eeec3cc8f685fbeea5197feb4
|
|
| BLAKE2b-256 |
04c5f09f6c76f142b3b11f54bf148a6849e4e3e5607ba0689109b21ff08c051f
|
File details
Details for the file customtraceback-0.7.0-py3-none-any.whl.
File metadata
- Download URL: customtraceback-0.7.0-py3-none-any.whl
- Upload date:
- Size: 2.1 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 |
1fd04792b374ce49abd6dd5878594ba4cdda8b34202b5788e6b4d0e49072337e
|
|
| MD5 |
c14c090af542222febe1cbc6a2bb84c0
|
|
| BLAKE2b-256 |
c30ed31f0e185222d933f8bd2452ab059823f422104239e90b98e31498cb91eb
|