Skip to content

dttb

license lint test codecov pypi-v pypi-dm sponsors

python uv ruff ty

DateTime TraceBack


A lightweight Python package that attaches timestamps to exception tracebacks, making it easier to debug and correlate errors with logs.

Before:

Traceback (most recent call last):
  ...
Error: something wrong

After:

[2026-01-28 14:30:15.123456+08:00]
Traceback (most recent call last):
  ...
Error: something wrong

Quick Start

import dttb

dttb.apply()

1 / 0
[2026-01-15 22:37:09.882049]
Traceback (most recent call last):
  File "demo.py", line 5, in <module>
    1 / 0
ZeroDivisionError: division by zero

Next Steps