Skip to main content

Quickstart

Documentation Status black passing pytest passing PyPI - Version PyPI - License

Sentry.io is an error tracking platform that helps you monitor and resolve issues in real-time.

sentrypy is a Python wrapper for the Sentry API to:

  • Retrieve error data
  • Automate incident responses
  • Integrate with your workflow

Installation

First create a sentry token (official tutorial).

Then install by one of the options below.

Installing from PyPI
pip install sentrypy
Installing from source
git clone git@github.com:perfect-operations/sentrypy.git
pip install -e sentrypy

Usage

from sentrypy import Sentry

# Connect to Sentry API
sentry = Sentry(token="your-secret-token")

# Retrieve a project
org = sentry.organization("your-org-slug")
project = org.project("your-project-slug")

# Inspect the issues
for issue in project.issues():
    print(issue.title)

Example output:

IndexError: list index out of range
WebDriverException: Message: unknown error: session deleted because of page crash
AttributeError: 'NoneType' object has no attribute 'startswith'

Do this and much more. Install and explore!

Documentation

Read the full documentation on ReadTheDocs.

Feature Requests & Issues

Please let me know here on GitHub!

Support

Metadata

Release files for sentrypy 0.1.8

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

Source distribution (sdist)

Source distribution for sentrypy 0.1.8
File Size Uploaded Provenance Actions
sentrypy-0.1.8.tar.gz 8.4 kB Without provenance Details for sentrypy-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sentrypy 0.1.8
File Interpreter ABI Platform Actions
sentrypy-0.1.8-py3-none-any.whl Python 3 none any Details for sentrypy-0.1.8-py3-none-any.whl

Total release size: 27.7 kB

Release files / sentrypy-0.1.8.tar.gz

Download URL sentrypy-0.1.8.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
95a6ff58eb85f9536829b218b9583543d59c039eb8a2bff3aca8671b68416281
BLAKE2b-256 checksum
How to use checksums
204f8156367e6936c8e768573246e649c06828bdcbe9c00f09575aedf50332b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release files / sentrypy-0.1.8-py3-none-any.whl

Download URL sentrypy-0.1.8-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
202dd7348a5a49061d2948ab0c4e3ef2494897f014330bc28be112bb3b722f44
BLAKE2b-256 checksum
How to use checksums
d685cb8a4329b91dd027b2c4d70ba7441e00f1ac22c4da9ec3f4d2efef8d903a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Security for sentrypy 0.1.8

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