Skip to content

Initial release: retrytools v0.0.3.post1

Latest

Choose a tag to compare

@umar-anzar umar-anzar released this 09 Jun 09:46

πŸš€ 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-extensions support

πŸ“¦ 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.