Getting Started
The aim of this project is to provide a generic way to configure python warnings.filterwarnings. Python warnings can be configured via Environment variable, Python interpreter argument, or directly in the code. This plugin provides to Pyramid application a clean way to configure the warning level via its configuration file.
Configuration
Set the pyramid_filterwarnings plugin from in the Pyramid ini file then configure the level.
pyramid.includes =
pyramid_filterwarnings
... your other plugins ...
# configure the warning level, default is ignore
filterwarnings.action = ignore
It is also possible to set category, module and message, and do many rules.
# Other optionals configurations keys # filterwarnings.category = DeprecationWarning # filterwarnings.module = pyramid\..* # Add other rules filterwarnings.1.action = once filterwarnings.1.category = DeprecationWarning filterwarnings.1.module = sqlalchemy\..* filterwarnings.2.action = ignore filterwarnings.2.module = pyramid_jinja2\.* filterwarnings.2.message = reload_templates setting is deprecated # and more if necessary...
Metadata
Release files for pyramid_filterwarnings 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyramid_filterwarnings-0.4.tar.gz | 3.6 kB | Without provenance | Details for pyramid_filterwarnings-0.4.tar.gz |
Release files / pyramid_filterwarnings-0.4.tar.gz
| Download URL | pyramid_filterwarnings-0.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64f08c4b81fbec773ed93ca4354767b51006b3db39f4e8fa2f3b0e8797ae302d
|
|
BLAKE2b-256 checksum How to use checksums |
6805dbec576e0fbdc4c13a62831f70723b41e27d07aa90e0941a9728a384462e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramid_filterwarnings 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.