[PR #2959] [CLOSED] Add dttb to Debugging Tools #20654

Closed
opened 2026-05-12 12:36:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/2959
Author: @rocky-d
Created: 3/12/2026
Status: ❌ Closed

Base: master ← Head: add-dttb


📝 Commits (1)

  • dc02597 Add dttb to Debugging Tools

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

What is dttb?

dttb is a lightweight Python package that adds timestamps to exception tracebacks with a single line of code:

import dttb
dttb.apply()

Before:

Traceback (most recent call last):
  ...
ZeroDivisionError: division by zero

After:

[2026-01-28 14:30:15.123456+08:00]
Traceback (most recent call last):
  ...
ZeroDivisionError: division by zero
  • Patches both sys.excepthook and threading.excepthook
  • Supports timezone configuration
  • Supports custom callbacks
  • Available on PyPI: pip install dttb

Why Debugging Tools?

When debugging long-running processes, services, or multi-threaded apps, knowing when an exception occurred is essential for correlating with logs. dttb fills this gap without requiring any logging framework changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/2959 **Author:** [@rocky-d](https://github.com/rocky-d) **Created:** 3/12/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `add-dttb` --- ### 📝 Commits (1) - [`dc02597`](https://github.com/vinta/awesome-python/commit/dc02597330bc9574a9d825e09e8675edf35a29b7) Add dttb to Debugging Tools ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description ## What is dttb? [dttb](https://github.com/rocky-d/dttb) is a lightweight Python package that adds timestamps to exception tracebacks with a single line of code: ```python import dttb dttb.apply() ``` **Before:** ``` Traceback (most recent call last): ... ZeroDivisionError: division by zero ``` **After:** ``` [2026-01-28 14:30:15.123456+08:00] Traceback (most recent call last): ... ZeroDivisionError: division by zero ``` - Patches both `sys.excepthook` and `threading.excepthook` - Supports timezone configuration - Supports custom callbacks - Available on PyPI: `pip install dttb` ## Why Debugging Tools? When debugging long-running processes, services, or multi-threaded apps, knowing *when* an exception occurred is essential for correlating with logs. dttb fills this gap without requiring any logging framework changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-12 12:36:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#20654