Sentry integration to sanic web server
Project description
Sanic-Sentry
============
Sanic-Sentry -- Sentry integration to sanic web server.
Requirements
------------
- python >= 3.5
Installation
------------
**Sanic-Sentry** should be installed using pip: ::
pip install sanic-sentry
Usage
-----
**SENTRY_DSN** - Sentry DSN for your application
To begin we'll set up a Sanic app:
.. code:: python
>>> from sanic import Sanic
>>> from sanic_sentry import SanicSentry
>>> app = Sanic(__name__)
>>> app.config['SENTRY_DSN'] = 'http://public:secret@example.com/1'
To initialize plugin you can pass 'app' to __init__:
.. code:: python
>>> plugin = SanicSentry(app)
Or use `init_app` to reverse dependency:
.. code:: python
>>> plugin = SanicSentry()
>>> SanicSentry().init_app(app)
============
Sanic-Sentry -- Sentry integration to sanic web server.
Requirements
------------
- python >= 3.5
Installation
------------
**Sanic-Sentry** should be installed using pip: ::
pip install sanic-sentry
Usage
-----
**SENTRY_DSN** - Sentry DSN for your application
To begin we'll set up a Sanic app:
.. code:: python
>>> from sanic import Sanic
>>> from sanic_sentry import SanicSentry
>>> app = Sanic(__name__)
>>> app.config['SENTRY_DSN'] = 'http://public:secret@example.com/1'
To initialize plugin you can pass 'app' to __init__:
.. code:: python
>>> plugin = SanicSentry(app)
Or use `init_app` to reverse dependency:
.. code:: python
>>> plugin = SanicSentry()
>>> SanicSentry().init_app(app)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sanic-sentry-0.1.2.tar.gz
(2.7 kB
view details)
File details
Details for the file sanic-sentry-0.1.2.tar.gz
.
File metadata
- Download URL: sanic-sentry-0.1.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9da72cd9f710c67cf110914b3535c7470c3ad09fb3ad106c37820c5196a2a715 |
|
MD5 | bfbeaabf2bf18a0e5b6c7ce873c3d1c4 |
|
BLAKE2b-256 | 8c89687b5bd9007f1b1ca80605b007f5524f14431ac64eb071f8636f519bae54 |