Skip to main content

async_retrying

info:

Simple retrying for asyncio

Installation

pip install retrying-async==1.1.0 -i https://pypi.org/pypi

Usage

import asyncio

from retrying_async import retry

counter = 0

@retry(attempts=3, delay=3)
async def fn():
    global counter

    counter += 1

    if counter == 1:
        raise RuntimeError

async def main():
    await fn()

loop = asyncio.get_event_loop()

loop.run_until_complete(main())

assert counter == 2

loop.close()

Python 3.5+ is required

Metadata

Release files for retrying-async 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for retrying-async 2.0.0
File Size Uploaded Provenance Actions
retrying-async-2.0.0.tar.gz 3.0 kB Without provenance Details for retrying-async-2.0.0.tar.gz

Release files / retrying-async-2.0.0.tar.gz

Download URL retrying-async-2.0.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
11e795f6c247cd4659059bdb44b1926ca1fa28854154df2cc2f9f37454f90d2d
BLAKE2b-256 checksum
How to use checksums
ce13cc75f529802950ee99f35f95a93c2be7ba45430f82d52ab637d2239dd94c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5

Security for retrying-async 2.0.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page