Skip to main content

Drop-in error reporter for ghosttrap.io

Project description

ghosttrap-sdk

Error reporting for Python apps, built for AI agents. Part of ghosttrap.

Install

pip install ghosttrap-sdk

Use

import ghosttrap
ghosttrap.init("t_your_token_here")

Get your token by running ghosttrap setup from ghosttrap-cli.

What it hooks into

  • sys.excepthook — unhandled exceptions
  • Python logginglogger.exception() and logger.error(..., exc_info=True)
  • Celery — task failures via celery.signals.task_failure (auto-detected)

Django

INSTALLED_APPS = [
    ...
    "ghosttrap.django.GhostTrapApp",
]

MIDDLEWARE = [
    "ghosttrap.django.GhostTrapMiddleware",
    ...
]

Zero dependencies

Pure Python stdlib. No transitive dependencies in your production image.

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

ghosttrap_sdk-0.4.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ghosttrap_sdk-0.4.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file ghosttrap_sdk-0.4.1.tar.gz.

File metadata

  • Download URL: ghosttrap_sdk-0.4.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ghosttrap_sdk-0.4.1.tar.gz
Algorithm Hash digest
SHA256 ff77913862ff98df822f8cdf1405432f37c40dbc62824fa731e2c991af64460f
MD5 c9c6910c1f1ec0986b720c9670f08cf0
BLAKE2b-256 71ebf94c6a064867321b8a3844ef94f2d9868abd110b8495c3d976839fa46683

See more details on using hashes here.

File details

Details for the file ghosttrap_sdk-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: ghosttrap_sdk-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ghosttrap_sdk-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1bbcc54cb05ebf02f61e320302318be2979c68df72b55dd9d6e4a31d484b96c
MD5 9a5d7dd77f7d375a728cefd10d69c571
BLAKE2b-256 b95f70d8cc7193bdfa9567fa81983ec3d0ca31d8224ede684956df0285f3e079

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