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.10.dev0.tar.gz (8.5 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.10.dev0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file charming_traceback-0.1.10.dev0.tar.gz.

File metadata

File hashes

Hashes for charming_traceback-0.1.10.dev0.tar.gz
Algorithm Hash digest
SHA256 931b6749bbe5f3f31e196101cfec96314f484623b1c1bc47d500905ba5ec94f6
MD5 1be8d47cf4bd4c9312dc5743ab75321c
BLAKE2b-256 90c5603bb62185445ddb86eda320023765ac7df712b3171cf95c525c62011c30

See more details on using hashes here.

File details

Details for the file charming_traceback-0.1.10.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for charming_traceback-0.1.10.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 5487ee48dcf23de48634875a3e8ddd50767eaaf86acb9fa97524fbc4c4b3428d
MD5 9ac250ddca94f92db94b79da945fa506
BLAKE2b-256 967e44cbcc6708bd3d8f6a7c73250f28ae45e8633f721f0d9d123d2e9f927c45

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