Repository navigation
π Initial Release β retrytools v0.0.3.post1
This is the first official release of retrytools, a simple and flexible retry decorator for both sync and async Python functions.
π§ Features
- β Retry failed function calls with exponential backoff
- π Supports both sync and async functions
- βοΈ Customize:
- Maximum retry attempts
- Backoff factor
- Maximum wait time
- Optional jitter
- Retry specific exceptions
- π¦ Typed and tested, compatible with:
- Python 3.7+
- Modern
typing-extensionssupport
π¦ Installation
pip install retrytools
# or
uv add retrytools
# or
poetry add retrytoolsπ Usage
from retrytools import retry
@retry(catch_errors=(RuntimeError, ValueError), delay=2)
def flaky_function():
# ...See full documentation at GitHub Repository
β€οΈ Thanks for trying it out!
If you like the project, consider starring β the repo or submitting feedback/issues.