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()
>>> plugin.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()
>>> plugin.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.1.tar.gz
(2.7 kB
view details)
File details
Details for the file sanic-sentry-0.1.1.tar.gz
.
File metadata
- Download URL: sanic-sentry-0.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7626973748182c33f24790979ae804d9d58c551202b1a6c61dc8b9659f70293 |
|
MD5 | 5cc3e6358cad33fd912896ff01d3c67d |
|
BLAKE2b-256 | 88d46d7c6e5587548d7beba1ae34c04e55361259b762db93da3f946e71be1300 |