{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/18"}],"enrichment":{"capability":"Provides a decorator-based retry mechanism for async functions in Python, allowing you to define custom retry policies that control when to retry, how long to wait between attempts, and when to give up.","skillfed_tags":["async-utilities","resilience-patterns","decorator-based"],"use_cases":["Retry HTTP requests or API calls with exponential backoff when network timeouts or transient errors occur.","Automatically retry database connection attempts with configurable delays during service startup.","Implement circuit-breaker-like behavior by abandoning retries after a maximum failure count.","Log or monitor each retry attempt via a before_retry callback to track failure patterns.","Selectively retry only certain exception types while immediately failing on others."],"what_it_does":"aioretry is a decorator library that wraps async functions to automatically retry them on failure according to a policy you define. You supply a retry policy function that receives information about each failure (attempt count, exception, elapsed time) and returns a decision: either abandon and raise the exception, or sleep for a specified delay before retrying. The decorator handles the async sleep and retry loop for you.\n\nIt supports flexible policy definitions\u2014functions, methods, class methods, or static methods\u2014and optional before-retry callbacks for logging or side effects. The library works with instance methods, class methods, and standalone async functions, making it suitable for network operations, database queries, or any async task that might transiently fail.","worth_installing":"Yes, if you need retry logic for async code. The library is lightweight, dependency-free, and straightforward to integrate. The aging maintenance status (540 days since release) is not a blocker\u2014the API is stable and the recent repository activity suggests the maintainer is responsive. No known vulnerabilities. Install if your async workload benefits from configurable retry policies; skip if you prefer a heavier framework or have simple fixed-delay retry needs."},"id":"aioretry","links":{"html":"https://skillfed.io/packages/aioretry","md":"https://skillfed.io/packages/aioretry.md","pypi":"https://pypi.org/project/aioretry/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-02-20","license_spdx":null,"license_treatment":"permissive","name":"aioretry","python_support":"supports_current","summary":"Asyncio retry utility for Python 3.7+"},"popularity":{"monthly_downloads":130941,"position":11618,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"6.3.1"}
