Skip to main content

Drop-in error reporter for ghosttrap.io

Project description

ghosttrap-sdk

Drop-in error reporter for Python apps.

Install

pip install ghosttrap-sdk

Use

import ghosttrap

# with a token (get one from `ghosttrap watch`):
ghosttrap.init("t_abc123def456")

# or with a full URL:
ghosttrap.init("https://ghosttrap.io/trap/owner/repo/")

Unhandled exceptions are POSTed to ghosttrap.io with full tracebacks. The original sys.excepthook is preserved so errors still print to stderr as normal.

For caught exceptions inside web frameworks:

try:
    do_something()
except Exception as exc:
    ghosttrap.report(exc)
    raise

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.0.tar.gz (3.0 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.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghosttrap_sdk-0.4.0.tar.gz
  • Upload date:
  • Size: 3.0 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.0.tar.gz
Algorithm Hash digest
SHA256 2e33026d13ee9daeb942a2024149ac8c31446c30fe7ecc2bf4379f9e2567a0b2
MD5 2ead779dcc0f961ddd39b4b8b01b4b9c
BLAKE2b-256 f524a569b477ac4c5d90e97f117599c09f9214d2d9c530b4af3d04a4875cb5b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ghosttrap_sdk-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 145af889ee19e2a0a6f44b286701c12b8fd9aa1df683c0b2175e864d0bc803e4
MD5 bce48b78b6a9f55cee3943328ba4fc57
BLAKE2b-256 603d28e488c2a882f85caa233de4d9acaec88b34dc721c0912958fc1b8fcd0b1

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