ErrMap
A tree-style Python error formatter that replaces the default traceback printer with a clean, colour-coded call tree.
[ERR-MAP] Traceback detected
root
└── main_loop (line 12)
> game_update()
│ └── game_update (line 9)
> physics_calc()
│ │ └── physics_calc (line 6)
> return 1 / 0
ZeroDivisionError: division by zero
Install
pip install errmap
Usage
from errmap import ErrMap
errmap = ErrMap()
errmap.install()
That's it. From that point on any unhandled exception will print as a tree instead of the default traceback.
API
ErrMap()
Creates a new ErrMap instance.
errmap.install()
Replaces sys.excepthook with the tree formatter.
errmap.active
Set to False to temporarily disable ErrMap and fall back to the default traceback printer.
errmap.active = False # default traceback
errmap.active = True # tree formatter
License
MIT
Release files for errmap 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| errmap-1.0.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| errmap-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / errmap-1.0.0.tar.gz
| Download URL | errmap-1.0.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f28fa63bed9682a368c9ad17f09c83b1378c5c23cd24c7b3d988901fd94b7941
|
|
BLAKE2b-256 checksum How to use checksums |
52235ce87f76003d8033c935f6527b84c87955c500f587bbb1ba71eb56cc0d16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / errmap-1.0.0-py3-none-any.whl
| Download URL | errmap-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be64e985e40fa770077d275835b7f6351c5835352b47fba9f1a65df0ac3d197d
|
|
BLAKE2b-256 checksum How to use checksums |
1e537da3968190d78c0a3b54b20a5b1acf09663a4e34bedca3249468e104f001
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|