Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saabeilin/sanic-rollbar
A simple Rollbar plugin for Sanic
https://github.com/saabeilin/sanic-rollbar
Last synced: about 1 month ago
JSON representation
A simple Rollbar plugin for Sanic
- Host: GitHub
- URL: https://github.com/saabeilin/sanic-rollbar
- Owner: saabeilin
- Created: 2017-12-20T20:42:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-09T10:56:41.000Z (almost 7 years ago)
- Last Synced: 2024-04-29T10:22:56.262Z (8 months ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.rst
Awesome Lists containing this project
- awesome-sanic - Sanic-Rollbar
README
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 configapp = Sanic(__name__)
app.config.from_object(config)
SanicRollbar(app)
```