Rich traceback adapted for PyCharm IDE by JetBrains
Project description
🐍 Charming Traceback
Rich traceback adapted for PyCharm IDE by JetBrains.
Differences from the original
- File paths are rendered in the format which allows PyCharm to automatically detect them as links.
CharmingTraceback'ssuppressargument accepts string module names in addition to paths and Python modules already supported byRichTraceback.
Installation
Install with pip:
pip install charming-traceback
Usage
To install as the default traceback handler:
from charming_traceback import install
install(show_locals=True)
To print the exception traceback manually:
from charming_traceback import Traceback
try:
do_something()
except Exception as e:
Traceback.print_exception(show_locals=True)
Essentially, Traceback class is designed to be a drop-in replacement for Traceback from Rich. You can refer to the official Rich traceback documentation for more usage info.
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
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 charming_traceback-0.1.5.tar.gz.
File metadata
- Download URL: charming_traceback-0.1.5.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b61cb0ad64b70f535437e81b862c6aeb66a32374ccf9e9d80022bcb5c292b480
|
|
| MD5 |
e5f9dba0b5d8e0355b2b5b51260a4c19
|
|
| BLAKE2b-256 |
b8709db659335965aa34e0022412ed7af3b0289c760572a26dc2421c13ac2a25
|
File details
Details for the file charming_traceback-0.1.5-py3-none-any.whl.
File metadata
- Download URL: charming_traceback-0.1.5-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64215279e86139cb94aa911030dba5c5af9b121c0adebe5d97c7f55afa73a159
|
|
| MD5 |
288f1780350311215395acd32e20aa6f
|
|
| BLAKE2b-256 |
27b419d5d6ab9325b756a17cff8685c6d601fd50286ab1db7187843181c4ad87
|