The pythonic API wrapper for Sentry.io
Project description
Quickstart
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'
Bonus
This is an early stage project. Your ideas are welcome!
Meet me on Twitter!
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.2.tar.gz
(4.2 kB
view details)
Built Distribution
sentrypy-0.1.2-py3-none-any.whl
(14.2 kB
view details)
File details
Details for the file sentrypy-0.1.2.tar.gz
.
File metadata
- Download URL: sentrypy-0.1.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c12c7f446be495a7b6cd49f8b12ab7d20e69aa0078b9b348df6bbdf4f8adba48 |
|
MD5 | d3d571f81bdc0a4ba628c73d980c6d0b |
|
BLAKE2b-256 | 7e95777a426b6b0062da9bd1ec9d4e54afe4ebd1aeb6ca5db9c9ef35dc42d8b0 |
File details
Details for the file sentrypy-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: sentrypy-0.1.2-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b0a29aec93966677df97424ef6e3af3e3302a441c65de9aa89a7432cd8a9354 |
|
MD5 | d4f785e9cf926e74f8b0cf24eb2e4c08 |
|
BLAKE2b-256 | 42f422e6c79ee46e95701e63f1c6edc3008b6eea3f27c0a168699b2801555299 |