Skip to main content

The pythonic API wrapper for Sentry.io

Project description

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

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

sentrypy-0.1.8.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

sentrypy-0.1.8-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file sentrypy-0.1.8.tar.gz.

File metadata

  • Download URL: sentrypy-0.1.8.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for sentrypy-0.1.8.tar.gz
Algorithm Hash digest
SHA256 95a6ff58eb85f9536829b218b9583543d59c039eb8a2bff3aca8671b68416281
MD5 378d273dd6347548f3e7bd0f84a3415a
BLAKE2b-256 204f8156367e6936c8e768573246e649c06828bdcbe9c00f09575aedf50332b8

See more details on using hashes here.

File details

Details for the file sentrypy-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: sentrypy-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for sentrypy-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 202dd7348a5a49061d2948ab0c4e3ef2494897f014330bc28be112bb3b722f44
MD5 788d2be2657347d6452fb8fc092889f8
BLAKE2b-256 d685cb8a4329b91dd027b2c4d70ba7441e00f1ac22c4da9ec3f4d2efef8d903a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page