{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/2"}],"enrichment":{"capability":"Redo provides decorators, functions, and a context manager to automatically retry Python callables with exponential backoff, jitter, and configurable attempt limits.","skillfed_tags":["retry-logic","async-support","error-handling"],"use_cases":["Wrap unreliable network requests with automatic retry and exponential backoff to handle transient failures gracefully.","Decorate database operations that may fail due to temporary locks or connection issues, with configurable sleep between attempts.","Use as a context manager around a block of code that needs retry logic without modifying the function definition itself.","Retry async/await functions in concurrent applications with sleep callbacks tuned to your workload.","Add retry capability to CLI tools or scripts that interact with flaky external services or resources."],"what_it_does":"Redo is a retry utility library that wraps Python functions to automatically retry them on failure with configurable backoff strategies. It offers multiple integration points: plain functions (retry, retry_async), decorators (retriable, retriable_async), and a context manager (retrying) so you can choose the pattern that fits your codebase. Each retry attempt can be separated by a sleep interval that grows exponentially with optional random jitter to avoid thundering herd problems.\n\nThe package handles both synchronous and asynchronous callables, lets you specify which exceptions trigger a retry versus which should fail immediately, and supports optional cleanup functions between attempts. It has no runtime dependencies and supports Python 3.8 through 3.12, making it lightweight to add to existing projects.","worth_installing":"Yes. Redo is a mature, dependency-free utility with active maintenance, no known vulnerabilities, and broad Python version support. It solves a common problem (retrying transient failures) with multiple clean integration patterns. The MPL-2.0 copyleft license is permissive for most use cases. Install it if you need retry logic and prefer a focused, lightweight tool over building your own."},"id":"redo","links":{"html":"https://skillfed.io/packages/redo","md":"https://skillfed.io/packages/redo.md","pypi":"https://pypi.org/project/redo/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-07-17","license_spdx":null,"license_treatment":"copyleft","name":"redo","python_support":"unspecified","summary":"Utilities to retry Python callables."},"popularity":{"monthly_downloads":1005604,"position":4528,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.0.0"}
