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.3.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.3.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: customtraceback-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 b322bd97a4d54e23fd5cd3f02883bdb77a6db8d0c3824ee7b8a910c03e7f4227
MD5 a4a98d4a1475796b38748b2583b23be1
BLAKE2b-256 3a9cc5700cf29ac07d8f27c40e533c6bc7b36820913df6530992929bc18890ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for customtraceback-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e40b65d5a62912600eea07141a85f7e929e3df86356e0740fb0993216315530c
MD5 4448123db56ad7d5450cf92f60c270ea
BLAKE2b-256 2ebcfef98e03997870cdd5e042522fa54a97d9ae413b9e6c09e709d14e59fbba

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