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.8.tar.gz (8.0 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.8-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for charming_traceback-0.1.8.tar.gz
Algorithm Hash digest
SHA256 69545c6c72b0c735bb5129a752d6fa0aa4a54a06123a22588cf10c61e80c6546
MD5 cafb9cb6373822b5e2593904dcee25c8
BLAKE2b-256 1b55ce11f8d5a495b27f256fec4c28b72cae2d8d43671e284958b9c7485026a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for charming_traceback-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5c72113878f68d83b855f84f4f4b2ea2694120f9f2d314924b5fb59f89de15b6
MD5 14e4e4e10ec94e7af5818bcba5e1afb6
BLAKE2b-256 c3f5645b7e24ed2c57589509ce9f4a55f7c3fa62cc77dfec375a4851b0448f26

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