NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #5810 most downloaded on PyPI
Function decoration and context managers for backoff and retry
Latest stable
3.1.0
Last release 12 days ago
10 Nov 2026
Ships unpredictably
gaps range from 2 weeks to 8 months
Nearly every release is documented
notes for 6 of 6 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
8 releases · first in 2025
Drag across the ruler to compare, or tap a release to open it.
feat: Add a capping wrapper for wait generators #211 (from @edgarrmondragon)
/llms.txt route in the documentation #223 (from @edgarrmondragon)mkdocs-autoapi to auto-generate API documentation #222 (from @edgarrmondragon)anyio instead of pytest-asyncio to run async tests #230 (from @edgarrmondragon)Your coding agent can read these notes before it upgrades. Set up the MCP server →
chore: Use ! in PR titles to indicate breaking changes #197 (from @edgarrmondragon)
on_try callback #201 (from @edgarrmondragon)_Attempt to backoff.Attempt and make it part of the public API #210 (from @edgarrmondragon)on_exception or on_predicate #202 (from @MeisQuietude)backoff.runtime() #209 (from @edgarrmondragon)test: Update parametrized tests to address pytest 9.1.0 deprecations #170 (from @edgarrmondragon)
exception argument in on_exception, on_predicate, retry_context and aretry_context to correctly expect an exception type or a tuple of exception types #192 (from @edgarrmondragon)expo, decay, and fibo wait generators #188 (from @edgarrmondragon)backoff.constant wait generator implementation #181 (from @edgarrmondragon)ty and update some type annotations #179 (from @edgarrmondragon)FA rules #104 (from @edgarrmondragon)B rules #100 (from @edgarrmondragon)I rules #99 (from @edgarrmondragon)RET rules #92 (from @edgarrmondragon)ty and update some type annotations #179 (from @edgarrmondragon)Changed the type of the target key in the Details dictionary to represent an actual function #72 (from @edgarrmondragon)
target key in the Details dictionary to represent an actual function #72 (from @edgarrmondragon)__version__ value in __init__.py with package version #76 (from @edgarrmondragon)requests documentation hosted on "Read the Docs" #67 (from @edgarrmondragon)UP (pyupgrade) Ruff rules and use Python 3.8+ code, including in docs #73 (from @edgarrmondragon)Use time.monotonic instead of datetime.datetime.now https://github.com/python-backoff/backoff/pull/23 (from @luccabb)
time.monotonic instead of datetime.datetime.now https://github.com/python-backoff/backoff/pull/23 (from @luccabb)Use inspect.iscoroutinefunction instead of asyncio.iscoroutinefunction to avoid Python 3.14 deprecation warning by @edgarrmondragon in https://github.…
inspect.iscoroutinefunction instead of asyncio.iscoroutinefunction to avoid Python 3.14 deprecation warning by @edgarrmondragon in https://github.com/python-backoff/backoff/pull/3tool.poetry.group dependency format by @edgarrmondragon in https://github.com/python-backoff/backoff/pull/5<4 constraint by @edgarrmondragon in https://github.com/python-backoff/backoff/pull/6tests directory in SDist by @edgarrmondragon in https://github.com/python-backoff/backoff/pull/13.python-version file by @edgarrmondragon in https://github.com/python-backoff/backoff/pull/31logging.LoggerAdapter to backoff._typing._MaybeLogger union by @edgarrmondragon in https://github.com/python-backoff/backoff/pull/34exception to the typing-only Details dictionary for cases when on_exception is used by @edgarrmondragon in https://github.com/python-backoff/backoff/pull/35exception key is available for the on_backoff handler by @edgarrmondragon in https://github.com/python-backoff/backoff/pull/36backoff to python-backoff by @edgarrmondragon in https://github.com/python-backoff/backoff/pull/42Full Changelog: https://github.com/python-backoff/backoff/compare/v2.2.1...v2.2.2
inspect.iscoroutinefunction instead of asyncio.iscoroutinefunction to avoid Python 3.14 deprecation warning #3 (from @edgarrmondragon)logging.LoggerAdapter to _MaybeLogger union #34 (from @jcbertin)exception to the typing-only Details dictionary for cases when on_exception is used #35 (from @edgarrmondragon)backoff from python-backoff #42 (from @edgarrmondragon)Nothing published for this version
Signed-off-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
chore: Bump to v2.2.2rc1
Signed-off-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
One column per month.