Overview of tenacity features
mainTenacity is a general-purpose retrying library for Python that provides several ways to control retry behavior:
- Generic Decorator API: Easily add retry logic to functions.
- Stop conditions: Limit retries by the number of attempts.
- Wait conditions: Control the delay between attempts (e.g., exponential backoff).
- Exception customization: Specify which exceptions trigger a retry.
- Result customization: Retry based on the value returned by the function.
- Coroutine support: Retry asynchronous functions.
- Context manager: Retry a specific block of code using a context manager.