async_retrying
- 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
Metadata
Release files for async_retrying 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| async_retrying-0.2.2.tar.gz | 3.1 kB | Without provenance | Details for async_retrying-0.2.2.tar.gz |
Release files / async_retrying-0.2.2.tar.gz
| Download URL | async_retrying-0.2.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8de0d80438b1d6c0c7a3e42c8967ec34b65b3e3a04c017677b2e7fe62952199
|
|
BLAKE2b-256 checksum How to use checksums |
579d195a93e7503fc8173516d59e38f0702f6753015ac99b807b514a701e4f33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for async_retrying 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.