Skip to main content

A quick way to customize your Tracebacks

Project description

customTraceback

A quick and easy way to customize your Python tracebacks

import customTraceback

def myTraceback(name, value, tb):
    print(f"🔥 Exception: {name}")
    print(f"💬 {value}")
    print(f"📜 Trace: {tb}")

customTraceback.setTraceBack(myTraceback)

1 / 0

This replaces the division by 0 error with a custom traceback

This is a basic example this package is a fun package to make cool tracebacks

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

customtraceback-0.5.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

customtraceback-0.5.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file customtraceback-0.5.0.tar.gz.

File metadata

  • Download URL: customtraceback-0.5.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for customtraceback-0.5.0.tar.gz
Algorithm Hash digest
SHA256 c66b10add1a37ce9f1491136135f89d03b9e9b6123f7b8c9929f2c68ecdbc395
MD5 7cd00a02bd57daa08e026d558e75295f
BLAKE2b-256 12fa591170d72b6be2a8ea76611b91d0f68ff275eed7cd934dc39d71d2197420

See more details on using hashes here.

File details

Details for the file customtraceback-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for customtraceback-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46505bb737632b2beae4f2bbfe320a4caa7a3586c8f3b211d8a71c7d1b41754c
MD5 7774c648348058e47228e8dc5769e870
BLAKE2b-256 55e270aae87eda98e87969381b298520ae9b46e66c250312f5b625dbd5a73bb7

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