Skip to main content

retry-function-plugin

A reusable async retry handler with exponential backoff and structured logging.

🚀 Features

  • Handles retries automatically with exponential backoff and jitter.
  • Logs all attempts with correlation IDs for traceability.
  • Supports timeout and async/await-based retry patterns.

🧩 Example Usage

import asyncio
from retry_function_plugin import execute_with_retry

async def unstable_task():
    import random
    if random.random() < 0.7:
        raise Exception("Random failure!")
    return "Success!"

async def main():
    result, error = await execute_with_retry(unstable_task, max_retries=3, base_delay=1)
    if error:
        print(f"Task failed: {error}")
    else:
        print(f"Task succeeded: {result}")

asyncio.run(main())

Metadata

Release files for retry-function-plugin 0.1.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 retry-function-plugin 0.1.0
File Size Uploaded Provenance
retry_function_plugin-0.1.0.tar.gz 2.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for retry-function-plugin 0.1.0
File Interpreter ABI Platform
retry_function_plugin-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / retry_function_plugin-0.1.0.tar.gz

Download URL retry_function_plugin-0.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
07498acb5611d8050b5021e9a26b2a8e74547362df220eb403a2a18a64f8439a
BLAKE2b-256 checksum
How to use checksums
4b57c13fce71225f302543197f9becc5c74c98f2a3ab54f415de4c2b29517dd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / retry_function_plugin-0.1.0-py3-none-any.whl

Download URL retry_function_plugin-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bed0b1706a7e3280c3ec84431d3c1eef0acd1b060e5d6619525f7ff9906882a
BLAKE2b-256 checksum
How to use checksums
ed6ae7ed8973e7c6b053112e46599262220972b4da9c4012e74823c2eba6b740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for retry-function-plugin 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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