{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/4"}],"enrichment":{"capability":"Provides a decorator and function wrapper to automatically retry failed function calls with configurable delays, backoff, and exception handling.","skillfed_tags":["resilience","decorator","backoff"],"use_cases":["Wrap API calls to handle transient network failures with exponential backoff.","Retry database operations that may fail due to temporary locks or connection issues.","Implement resilience in web scraping or data-fetching tasks with configurable delays.","Add retry logic to background jobs or scheduled tasks without rewriting the function.","Dynamically adjust retry behavior at runtime using retry_call() based on application state."],"what_it_does":"retry2 is a decorator-based retry library that wraps function calls to automatically re-execute them when they fail with specified exceptions. It lets you configure the number of attempts, delay between retries, exponential backoff multipliers, random jitter, and optional logging of failures. The package is a maintained fork of an unmaintained original and aims to keep retry logic simple and dependency-light.\n\nYou use it by decorating a function with @retry() and specifying which exceptions to catch, how many times to try, and how long to wait between attempts. It also provides a retry_call() function for cases where you need to apply retry logic dynamically rather than at definition time. The library preserves original tracebacks for debugging and can optionally use decorator to preserve function signatures.","worth_installing":"Yes, if you need straightforward retry logic with minimal dependencies. The low install friction, permissive license, and zero known vulnerabilities make it safe to adopt. However, the dormant maintenance status (last release 2023-01-11) means you should verify it handles your specific exception types and retry patterns before relying on it in production."},"id":"retry2","links":{"html":"https://skillfed.io/packages/retry2","md":"https://skillfed.io/packages/retry2.md","pypi":"https://pypi.org/project/retry2/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-01-11","license_spdx":null,"license_treatment":"permissive","name":"retry2","python_support":"supports_current","summary":"Easy to use retry decorator."},"popularity":{"monthly_downloads":2237076,"position":3195,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.9.5"}
