async_retrying 0.2.2
pip install async_retrying
Latest version
Released:
Simple retrying for asyncio
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: OCEAN S.A.
- Tags asyncio
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
Project description
- info:
Simple retrying for asyncio
Installation
pip install async_retrying
Usage
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
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: OCEAN S.A.
- Tags asyncio
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file async_retrying-0.2.2.tar.gz
.
File metadata
- Download URL: async_retrying-0.2.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8de0d80438b1d6c0c7a3e42c8967ec34b65b3e3a04c017677b2e7fe62952199 |
|
MD5 | 37f2216d7bd153d0393e462ae49d69be |
|
BLAKE2b-256 | 579d195a93e7503fc8173516d59e38f0702f6753015ac99b807b514a701e4f33 |