Pyramid extension to configure and integrate the Bugsnag client
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pyramid_bugsnag
tests
.gitignore
.travis.yml
LICENSE
MANIFEST.in
Pipfile
Pipfile.lock
README.md
dev.yml
setup.cfg
setup.py

README.md

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