Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pior/pyramid_bugsnag

Pyramid extension to configure and integrate the Bugsnag client
https://github.com/pior/pyramid_bugsnag

bugsnag exceptions pyramid

Last synced: 2 days ago
JSON representation

Pyramid extension to configure and integrate the Bugsnag client

Awesome Lists containing this project

README

        

# Pyramid extension for Bugsnag

[![Version](https://img.shields.io/pypi/v/pyramid-bugsnag.svg)](https://pypi.python.org/pypi/pyramid-bugsnag)
[![License](https://img.shields.io/pypi/l/pyramid-bugsnag.svg)](https://pypi.python.org/pypi/pyramid-bugsnag)
[![PythonVersions](https://img.shields.io/pypi/pyversions/pyramid_bugsnag.svg)](https://pypi.python.org/pypi/pyramid-bugsnag)
[![Build](https://travis-ci.org/pior/pyramid_bugsnag.svg?branch=multi-python-ci-travis)](https://travis-ci.org/pior/pyramid_bugsnag)

Send error from a Pyramid application to [Bugsnag](https://www.bugsnag.com/)

## Installing

```shell
$ pip install pyramid_bugsnag
```

## Usage

Include *pyramid_bugsnag* either in your paster config:

```ini
[app:main]
pyramid.includes = pyramid_bugsnag
```

or on your Pyramid configurator:

```python
config = Configurator()
config.include('pyramid_bugsnag')
```

The *Bugsnag* client can be configured through the Paster settings:

```ini
bugsnag.api_key = 0123456789abcdef0123456789abcdef

bugsnag.release_stage = production
bugsnag.notify_release_stages = stage production

bugsnag.ignore_classes =
KeyboardInterrupt
pyramid.httpexceptions.HTTPNotFound

bugsnag.send_code = true
```

But nothing stops you from configuring the client directly:

```python
bugsnag.configure(api_key='0123456789abcdef0123456789abcdef')
```

Full list of options on [docs.bugsnag.com](https://docs.bugsnag.com/platforms/python/other/configuration-options/)

## Development

Development dependencies are managed by [Pipenv](https://docs.pipenv.org/)

Install Pipenv:
```shell
$ pip install pipenv
```

Create/update your development environment:
```shell
$ pipenv install --dev
...

$ pipenv shell
(new shell)

$
```

Run the tests:
```shell
$ pytest -v
```

Run the linters:
```shell
$ pylama
```