--- id: retry version: "0.9.2" license: Apache License 2.0 license_treatment: permissive maintenance: dormant --- # retry — Easy to use retry decorator. License: permissive · Maintenance: dormant · Popularity: top 1,000 on PyPI ## Install pip install retry uv add retry poetry add retry ## Description retry ===== .. image:: https://pypip.in/d/retry/badge.png :target: https://pypi.python.org/pypi/retry/ .. image:: https://pypip.in/v/retry/badge.png :target: https://pypi.python.org/pypi/retry/ .. image:: https://pypip.in/license/retry/badge.png :target: https://pypi.python.org/pypi/retry/ Easy to use retry decorator. Features -------- - No external dependency (stdlib only). - (Optionally) Preserve function signatures (`pip install decorator`). - Original traceback, easy to debug. Installation ------------ .. code-block:: bash $ pip install retry API --- retry decorator ^^^^^^^^^^^^^^^ .. code:: python def retry(exceptions=Exception, tries=-1, delay=0, max_delay=None, backoff=1, jitter=0, logger=logging_logger): """Return a retry decorator. :param exceptions: an exception or a tuple of exceptions to catch. default: Exception. :param tries: the maximum number of attempts. default: -1 (infinite). :param delay: initial delay between attempts. default: 0. :param max_delay: the maximum value of delay. default: None (no limit). :param backoff: multiplier applied to delay between... ## AI interpretation — verify before relying A decorator and function wrapper for implementing automatic retry logic with configurable delays, backoff strategies, and exception handling. Verdict: A stable, lightweight retry decorator suitable for straightforward retry patterns. No known vulnerabilities and permissive licensing are strengths. The long dormancy since 2016-05-11 and lack of recent releases raise questions about modern compatibility, though the simple codebase and recent repository activity suggest it may still work. Best for projects with minimal retry needs where the decorator pattern fits naturally. [View on SkillFed](https://skillfed.io/packages/retry) · [View on PyPI](https://pypi.org/project/retry/)