Metadata-Version: 2.1
Name: pynom
Version: 0.0.2
Summary: UNKNOWN
Home-page: http://github.com/csm10495/pynom
Author: csm10495
Author-email: csm10495@gmail.com
License: MIT License
Description: ![Run tests](https://github.com/csm10495/pynom/workflows/Run%20tests/badge.svg) [![PyPI version](https://badge.fury.io/py/pynom.svg)](https://badge.fury.io/py/pynom)
        
        # 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()
        ```
        
        # Advanced Usage Example
        ```
        from pynom import PyNom
        pn = PyNom([ValueError], 5, throw_up_action=lambda ex: print(ex))
        while True:
            # On the 6th value error will call the given throw_up_action
            #  a CombinedException will be passed to the throw_up_action.
            with pn:
                do_something()
        ```
        
        See [https://csm10495.github.io/pynom/](https://csm10495.github.io/pynom/) for full API documentation.
        
        ## License
        MIT License
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*
Description-Content-Type: text/markdown
