Skip to main content

A quick way to customize your Tracebacks

Project description

  1. # customTraceback
  2. ## A quick and easy way to customize your Python tracebacks.
  3. ```py
  4. import customTraceback
  5. def myTraceback(name, value, tb):
  6. print(f"🔥 Exception: {name}")
  7. print(f"💬 {value}")
  8. print(f"📜 Trace: {tb}")
  9. customTraceback.setTraceBack(myTraceback)
  10. 1 / 0
  11. ```
  12. ### This replaces the division by 0 error with a custom traceback
  13. 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.4.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.4.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: customtraceback-0.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 3d68edf51bbe9e7b0052dee11dd1d0048c688f21702f0fa571a87d4530a4360b
MD5 6e7bfd6851f7d77c0fd173d00fed36a5
BLAKE2b-256 fcb4b906602c9107f4c2673fedfc690e407d4a07b2575ada22e66fd244c3dee8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for customtraceback-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6dbbdc73eb6e60345331ce7deb1f8cc816b79b75a8e8e7a54bc445aaeb7f4023
MD5 dc96247d158aeaca04d560f2902cdd96
BLAKE2b-256 996d46ecfb7f979914fbd5cc43e74baa31598a1e9bbc71f080d84e3eda20eb0e

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