pyramid-bugsnag

Pyramid extension to send exceptions to Bugsnag


Keywords
wsgi, pylons, pyramid, bugsnag, tween, exception, handler, exceptions
License
MIT
Install
pip install pyramid-bugsnag==0.4

Documentation

Pyramid extension for Bugsnag

Version License PythonVersions Build

Send error from a Pyramid application to Bugsnag

Installing

$ pip install pyramid_bugsnag

Usage

Include pyramid_bugsnag either in your paster config:

[app:main]
pyramid.includes = pyramid_bugsnag

or on your Pyramid configurator:

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

The Bugsnag client can be configured through the Paster settings:

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:

bugsnag.configure(api_key='0123456789abcdef0123456789abcdef')

Full list of options on docs.bugsnag.com

Development

Development dependencies are managed by Pipenv

Install Pipenv:

$ pip install pipenv

Create/update your development environment:

$ pipenv install --dev
...

$ pipenv shell
(new shell)

$

Run the tests:

$ pytest -v

Run the linters:

$ pylama