http context compliant automatic raven integration for pyramid
Project description
pyramid_crow provides a pyramid package for integrating with raven that is both automatic and complies with raven’s http_context standard.
Usage
Include pyramid_crow using either the pyramid.includes configuration file setting or config.include('pyramid_crow')
Include a DSN in your config file as raven.dsn
No special handling or explicit invocation is required, even if using an exception view. pyramid_crow automatically employs raven’s password sanitization to strip sensitive values from submitted data. The raven client is accessible as request.raven. Any configuration file values starting with raven. will be provided as keyword arguments when creating the client. No automatic type conversion is performed; if any of the values you want to provide should be anything other than a string, you should convert them appropriately.
Ignoring Exceptions
Not every exception needs to be captured by raven. Some – like pyramid.httpexceptions – indicate exceptional but expected conditions. pyramid_crow always ignores pyramid.httpexceptions. You can ignore other exceptions as well by providing a list of importable dotted names as pyramid_crow.ignore in your configuration.
For example:
pyramid_crow.ignore = yourpackage.YourException yourpackage.YourOtherException
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
Built Distribution
File details
Details for the file pyramid_crow-0.4.2.tar.gz
.
File metadata
- Download URL: pyramid_crow-0.4.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ffb5ec08bfa300b51f4b5f5be0c809dddce2ee9ec4bb06a2eeecf4cbeed0eaa |
|
MD5 | 58b4f97565ebd0ddd4135d2371d347cd |
|
BLAKE2b-256 | cc9181a4b1618a48fc1cf539f3733eb7ba7e27bc118dcd4203e2a6fccd108821 |
File details
Details for the file pyramid_crow-0.4.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pyramid_crow-0.4.2-py2.py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51b2f39b3f5196299e0452a50ed1a6243a031c091762640b36414b5b25b2d314 |
|
MD5 | 2e8619cbb056a239ea9e321f20d46b2e |
|
BLAKE2b-256 | e8312ece320ec3e87255b154d928669e6b0de8502caeff327ad1b644e4dc7ff8 |