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.2.tar.gz (3.4 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.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghosttrap_sdk-0.4.2.tar.gz
  • Upload date:
  • Size: 3.4 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.2.tar.gz
Algorithm Hash digest
SHA256 89e4b5a52413f95184086519e044b24e326587c9a79ae8e86e28e9c33cab2676
MD5 16c3aab64d7a19ec78edbf28fa68f7e4
BLAKE2b-256 8075ae4ce3d50dfcc5b598c83be39441af5ee36e5c51892e8f25d0c058d62ce8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ghosttrap_sdk-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 84e02dda878a9142105a87e1f4576472e47ca3ef74e68940dfcd68d12ef0d193
MD5 78bc68171550dcccd1657e56fc636373
BLAKE2b-256 cc2b13f34a4b55b192f99828493ad0ffd78fea1959bd730c23fb5788bddb0c53

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