Skip to content

A python wrapper for the Bugsnag Data Access API

License

Notifications You must be signed in to change notification settings

plangrid/pybugsnag

 
 

Repository files navigation

pybugsnag

PyPI version Build Status Coverage Status Code style: black Documentation Status

A python wrapper for the Bugsnag Data Access API

Quick start

Installation

# install
pip install pybugsnag

Basic Usage

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

About

A python wrapper for the Bugsnag Data Access API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.8%
  • Makefile 1.2%