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.6.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.6.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: customtraceback-0.6.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.6.0.tar.gz
Algorithm Hash digest
SHA256 31c680ab0b759bedccdb49af24f79240083f2fb5a53f6ac54c983b9a91099f4d
MD5 0c348f0157e61df3321342a0d2cd1a11
BLAKE2b-256 22052d68e04c80b599c6ff1654d19521f36c72bc429ac2f8ae38774bfb156f59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for customtraceback-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8608b4b5ff56fdcacd60e61381e64fe4b723c2d6fef51081b0e1ebef29509a4d
MD5 fe0d934d1a7ab9e4790accb3bbeac9fc
BLAKE2b-256 31649ed08952e7f943c5f6b059f6d389b57dbcda56d9123046ff481b3d9d2b30

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