Configure python warnings for the Pyramid web framework
Project description
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 = ... your other plugins ... pyramid_filterwarnings # configure the warning level, default is ignore filterwarnings.level = 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.category = DeprecationWarning filterwarnings.1.module = sqlalchemy\..* filterwarnings.1.level = notice filterwarnings.2.category = Warning filterwarnings.2.module = pyramid\..* filterwarnings.2.level = ignore # and more if necessary...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for pyramid_filterwarnings-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59e13306c053534246c26c5571c7105c798b4821569b53e3215aada5068cc22d |
|
MD5 | 52540dd00504fa526ee28aea00d40633 |
|
BLAKE2b-256 | f9e19c3d39ef6bfc0b6929ce7229f924600021934c9ef0e7398c5784f08086ae |