Skip to main content

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.
  • suppress argument accepts string module names in addition to paths and Python modules already supported by Rich's Traceback.

Installation

Add to your project with uv:

uv add 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

charming_traceback-0.1.7.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

charming_traceback-0.1.7-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file charming_traceback-0.1.7.tar.gz.

File metadata

  • Download URL: charming_traceback-0.1.7.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for charming_traceback-0.1.7.tar.gz
Algorithm Hash digest
SHA256 999f41ba7912fd22b1007c4eeab899bb043aff3ff0a531e2fca0c758d3f18eb0
MD5 be7be58c59043351ca2fbe2204919bdc
BLAKE2b-256 85a0f58c7855a3afc6c2985e4813dc60d088c031ed8002370ee429bfaf8a597e

See more details on using hashes here.

File details

Details for the file charming_traceback-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for charming_traceback-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2bb3248a3b006407c1a2d7e1c0af8ad1d1b218ca75dfb60cb8231566581ead6f
MD5 5d06e29efb8fd037e9347240bc7d932f
BLAKE2b-256 9bf6cf283953444f371000863aa82f6628701c930e7901c76d9b8dbbe1e53e03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page