Skip to main content

A Rollbar plugin for Sanic

Project description

Sanic-Rollbar
=============

A Rollbar plugin for Sanic, inspired by flask-rollbar.

Free software: MIT license

## Installation

```bash
pip install sanic-rollbar
```

## Usage

Set your Rollbar token in config file, like:

```python
ROLLBAR_TOKEN = os.getenv('ROLLBAR_TOKEN')
```

In your Sanic app, initialize the plugin:

```python
from sanic import Sanic, response
from sanic_rollbar import SanicRollbar
from yourapp import config

app = Sanic(__name__)
app.config.from_object(config)
SanicRollbar(app)
```


Changelog
=========

0.1.0 (2017-12-20)
------------------

* First sketch.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
sanic_rollbar-0.1.1-py2.py3-none-any.whl (3.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3
sanic-rollbar-0.1.1.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page