https://github.com/jpetrucciani/pybugsnag
A python wrapper for the Bugsnag Data Access API
https://github.com/jpetrucciani/pybugsnag
bugsnag library python3
Last synced: about 1 year ago
JSON representation
A python wrapper for the Bugsnag Data Access API
- Host: GitHub
- URL: https://github.com/jpetrucciani/pybugsnag
- Owner: jpetrucciani
- License: mit
- Created: 2018-09-17T20:54:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-29T18:00:51.000Z (almost 8 years ago)
- Last Synced: 2024-10-18T23:21:28.912Z (over 1 year ago)
- Topics: bugsnag, library, python3
- Language: Python
- Size: 33.2 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
pybugsnag
=========
.. image:: https://badge.fury.io/py/pybugsnag.svg
:target: https://badge.fury.io/py/pybugsnag
:alt: PyPI version
.. image:: https://travis-ci.org/jpetrucciani/pybugsnag.svg?branch=master
:target: https://travis-ci.org/jpetrucciani/pybugsnag
:alt: Build Status
.. image:: https://coveralls.io/repos/github/jpetrucciani/pybugsnag/badge.svg?branch=master
:target: https://coveralls.io/github/jpetrucciani/pybugsnag?branch=master
:alt: Coverage Status
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/ambv/black
:alt: Code style: black
.. image:: https://readthedocs.org/projects/pybugsnag/badge/?version=latest
:target: https://pybugsnag.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
A python wrapper for the Bugsnag Data Access API
Quick start
-----------
Installation
^^^^^^^^^^^^
.. code-block:: bash
# install
pip install pybugsnag
Basic Usage
^^^^^^^^^^^
.. code-block:: python
from pybugsnag import BugsnagDataClient
from pybugsnag.models import Error
client = BugsnagDataClient("$AUTH_TOKEN")
organization = client.organizations[0] # first organization for the auth token
project = organization.projects[0] # first project in the organization
project.get_errors(
sort=Error.Sort.LAST_SEEN,
direction=Error.Sort.Direction.DESCENDING,
per_page=30,
) # gets errors for this project,
project.get_trend_buckets() # data for a trend histogram