Skip to main content

DESCRIPTION

sentry-wrapper calls a setuptools entrypoint and sends exceptions to sentry. It is useful to log the exceptions of a correctly packaged but not sentry-capable program.

Usage:

usage: sentry-wrapper [options] [-- entrypoint options]

positional arguments:
  name                  Entry point name (eg. my-entrypoint)
  dist                  Distribution name (eg. my-project==1.2.4, default:
                        same value than name)
  group                 Entry point group (default: console_scripts)

optional arguments:
  -h, --help            show this help message and exit
  --dsn SENTRY_DSN      Sentry DSN
  -t timeout, --timeout timeout
                        Timeout. After this value, TimeoutError is raised to
                        Sentry.

For example, if the setup.py file of the package mypackage contains:

...
name='my-package',
entry_points={
    'console_scripts': [
        'my-entrypoint = mypackage:main',
    ],
},
...

Call my-entrypoint with:

sentry-wrapper --dsn SENTRY_DSN my-entrypoint my-package console_scripts

INSTALLATION

To install in a virtualenv:

$> virtualenv myenv
$> source myenv/bin/activate
$> pip install sentry-wrapper
$> pip install path/to/your/project
$> sentry-wrapper -h

DEVELOP

To start hacking on sentry-wrapper using Docker:

$> make

Then:

  • Visit http://localhost:9000 with the credentials test/test

  • Create a project and copy the DSN

  • Test sentry-wrapper against the test project of this repository:

    sentry-wrapper --dsn [...] whatever_ok whatever console_scripts
    sentry-wrapper --dsn [...] whatever_exception whatever console_scripts

CONTRIBUTORS

Metadata

Release files for sentry-wrapper 3.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sentry-wrapper 3.0.1
File Size Uploaded Provenance Actions
sentry_wrapper-3.0.1.tar.gz 4.1 kB Without provenance Details for sentry_wrapper-3.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sentry-wrapper 3.0.1
File Interpreter ABI Platform Actions
sentry_wrapper-3.0.1-py3-none-any.whl Python 3 none any Details for sentry_wrapper-3.0.1-py3-none-any.whl

Total release size: 9.4 kB

Release files / sentry_wrapper-3.0.1.tar.gz

Download URL sentry_wrapper-3.0.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
054329fa72bcaa7ff5d2b6c947f4d2e37c8f014fb2e22ffe3da233130ddd85e3
BLAKE2b-256 checksum
How to use checksums
810623b3651d470366e6a63ec772625352b67681253ca9fe9288727bf6c8f0bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.5 Darwin/24.1.0

Release files / sentry_wrapper-3.0.1-py3-none-any.whl

Download URL sentry_wrapper-3.0.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98ca3f740a88cb46f3b7aeaffdc415d0ad9bb712a8ff28d929eab75638ff83f0
BLAKE2b-256 checksum
How to use checksums
0a1621613e79bb5e45d549cde96fdd9de9876c6076df3c27205b60e918248aed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.5 Darwin/24.1.0

Security for sentry-wrapper 3.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page