Metadata-Version: 1.1
Name: async-retrying
Version: 0.2.0
Summary: Simple retrying for asyncio
Home-page: https://github.com/wikibusiness/async_retrying
Author: OCEAN S.A.
Author-email: osf@ocean.io
License: UNKNOWN
Description: async_retrying
        ==============
        
        :info: Simple retrying for asyncio
        
        .. image:: https://img.shields.io/travis/wikibusiness/async_retrying.svg
            :target: https://travis-ci.org/wikibusiness/async_retrying
        
        .. image:: https://img.shields.io/pypi/v/async_retrying.svg
            :target: https://pypi.python.org/pypi/async_retrying
        
        Installation
        ------------
        
        .. code-block:: shell
        
            pip install async_retrying
        
        Usage
        -----
        
        .. code-block:: python
        
            import asyncio
        
            from async_retrying import retry
        
            counter = 0
        
            @retry
            @asyncio.coroutine
            def fn():
                global counter
        
                counter += 1
        
                if counter == 1:
                    raise RuntimeError
        
            @asyncio.coroutine
            def main():
                yield from fn()
        
            loop = asyncio.get_event_loop()
        
            loop.run_until_complete(main())
        
            assert counter == 2
        
            loop.close()
        
        
        Python 3.3+ is required
        
Keywords: asyncio,retrying
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
