Sentry's Python SDK Supports Typer
Typer is a library for building user friendly CLI applications in Python. Now, with the 2.20.0 release of Sentry's Python SDK there is an official integration to support error tracking in your CLI tools built with Typer.
Try it out yourself, check out our docs here, install, configure, and verify.
pip install --upgrade "sentry-sdk" typer
import sentry_sdk
from sentry_sdk.integrations.typer import TyperIntegration
sentry_sdk.init(
dsn=SENTRY_DSN,
integrations=[TyperIntegration()],
)