Skip to main content

trprint

Custom Traceback printer

No Dependencies

Install

pip install trprint

Usage

>>> from trprint import tprint
>>> try:
       print(sys.argv[1])
    except:
       tprint()

>>> # output with colors:
 2026-09-30 20:08:52.888009 - <class 'IndexError'> : list index out of range
    File "<ipython-input-4-05d459f38238>", line 2, in <module>
      print(sys.argv[1])
            ~~~~~~~~^^^

 2026-09-30 20:08:52.888009 - <class 'IndexError'> : list index out of range

Screenshot

👤 Author

Hadi Cahyadi

Buy Me a Coffee

Donate via Ko-fi

Support me on Patreon

Metadata

Release files for trprint 1.0.5

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

Source distribution (sdist)

Source distribution for trprint 1.0.5
File Size Uploaded
trprint-1.0.5.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trprint 1.0.5
File Interpreter ABI Platform
trprint-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / trprint-1.0.5.tar.gz

Download URL trprint-1.0.5.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
833ba387e5618e8445537b43f076b00f663110ee619941234bb67716f7201001
BLAKE2b-256 checksum
How to use checksums
189ca8f36c5ff788cd21b865f8517f7f9b20265cf9a8d14de3d803dc2cccc4ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / trprint-1.0.5-py3-none-any.whl

Download URL trprint-1.0.5-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d36f0cccfa85a4370391ce70bd9095bae10ae612ba78f24af58d13bc5e564740
BLAKE2b-256 checksum
How to use checksums
4042618fa6f41cd727fd457dc3c731276263463b11858db0db10bc8142bfb2df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

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