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.
=============
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sanic-rollbar-0.1.1.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sanic-rollbar-0.1.1.tar.gz.
File metadata
- Download URL: sanic-rollbar-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c5f4870dd9c7acbb93a68967441f85457bd17cd7a7b179f1cdaf0083210a255
|
|
| MD5 |
4475e88a00c978cf2b567869fca5c77a
|
|
| BLAKE2b-256 |
509316b8f426431d50d2090d93405448b036ca91dfb6a8886aa3d0d5e4f43ced
|
File details
Details for the file sanic_rollbar-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: sanic_rollbar-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
782e7720547f2675459a0245229954db2a473ee4e5926e2114296b6c42820867
|
|
| MD5 |
e4de9c2f8f4f90ac0834129e1cd6afeb
|
|
| BLAKE2b-256 |
aa57a0821d50d625ced35b3d06cf484d0b98cf633f605e7e953767014dbcffda
|