No project description provided
Project description
PyNom
A simple library to eat exceptions, until enough of a given exception type has been raised. The name has the word 'Nom' in it because it can sometimes sound like a person eating.
Installation
pip install pynom
Simple Usage Example
from pynom import PyNom
pn = PyNom([ValueError], 5)
while True:
# This block will raise after 5 (so on the 6th) ValueErrors.
# It will raise an Exception containing tracebacks, exceptions, approx timestamps for each ValueError
# If a non-ValueError is raised, it will be immediately raised (and not eaten)
with pn:
do_something()
See https://csm10495.github.io/pynom/ for full API documentation.
License
MIT License
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
pynom-0.0.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
pynom-0.0.1-py3-none-any.whl
(3.9 kB
view hashes)