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.sentry import Sentry

# Connect to Sentry API
sentry = Sentry(token="your_secret_token")

# Retrieve a project
project = sentry.project(organization_slug="your_org", project_slug="your_project")

# 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.5.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

sentrypy-0.1.5-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sentrypy-0.1.5.tar.gz
  • Upload date:
  • Size: 5.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.5.tar.gz
Algorithm Hash digest
SHA256 70e3d985f2fb9e85cf32da1b6451400cd63c5e0e54f6dae477b5460bdcafd7b5
MD5 b56ed9ffea969c5877429acdc3859b35
BLAKE2b-256 2e983253ae8959b14a47f1ab722e3d65778de5cf831f51e17b4c3aa9a53816c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sentrypy-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 17.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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 39bd11a153c84a56cc7f049452adddf11557ac9223fa880d5fe128ab5cd410a3
MD5 1c277d99c7845c977ef569309450a27e
BLAKE2b-256 68ed3e6248105f9ef3426af54e15ac490979eb42aa3ffeb665f2ae26864d684e

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