NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #82 most downloaded on PyPI
Retry code until it succeeds
Latest stable
9.2.1
Last release 1 months ago
07 Oct 2026
Release timing varies
gaps range from 2 weeks to 1.2 years
Some releases are documented
notes for 18 of 60 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
62 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
test: fix possibly-undefined and deprecated call sites by @jd in #681
9.2.0 was tagged but never reached PyPI: the upload rejected its package description (#714). 9.2.1 is the first release on PyPI with everything in 9.2.0, plus the changes below.
strict leaves off by @jd in #678Full Changelog: 9.2.0...9.2.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix retry() annotations with async sleep= function by @Zac-HD in #555
Full Changelog: 9.1.3...9.1.4
Apply formatting to num seconds in before_sleep_log by @aguinane in #489
wait_exception strategy by @capitan-davide in #541Full Changelog: 9.1.2...9.1.3
Full Changelog : 9.1.1...9.1.2
Full Changelog: 9.1.1...9.1.2
Respects min argument for wait_random_exponential by @yxtay in https://github.com/jd/tenacity/pull/425
min argument for wait_random_exponential by @yxtay in https://github.com/jd/tenacity/pull/425Full Changelog: https://github.com/jd/tenacity/compare/8.5.0...9.0.0
min argument for wait_random_exponential by @yxtay in #425Full Changelog: 8.5.0...9.0.0
fix: Restore contents of retry attribute for wrapped functions by @hasier in #484
Full Changelog: 8.4.2...8.5.0
fix: Avoid overwriting local contexts with retry decorator by @hasier in https://github.com/jd/tenacity/pull/479
Full Changelog: https://github.com/jd/tenacity/compare/8.4.1...8.4.2
Include tenacity.asyncio subpackage in release dist by @cdce8p in https://github.com/jd/tenacity/pull/474
tenacity.asyncio subpackage in release dist by @cdce8p in https://github.com/jd/tenacity/pull/474Full Changelog: https://github.com/jd/tenacity/compare/8.4.0...8.4.1
Add async strategies by @hasier in https://github.com/jd/tenacity/pull/451
Full Changelog: https://github.com/jd/tenacity/compare/8.3.0...8.4.0
Added a new stop function: stop_before_delay, which will stop execution if the next sleep time would cause overall delay to exceed the specified delay
stop_before_delay, which will stop execution if the next sleep time would cause overall delay to exceed the specified delay. Useful for use cases where you have some upper bound on retry times that you must not exceed, so returning before that timeout is preferable than returning after that timeout.Nothing published for this version
Argument wait was improperly annotated, making mypy checks fail. Now it’s annotated as typing.Union[wait_base, typing.Callable[[“RetryCallState”], typ
and wait_exponential_jitter to all of init.pyNothing published for this version
Clarify usage of reraise keyword argument
Clarify usage of reraise keyword argument
Explicitly export convenience symbols from tenacity root module
accept datetime.timedelta instances as argument to tenacity.stop.stop_after_delay
Fix async loop with retrying code block when result is available.
AsyncRetrying was erroneously implementing iter() , making tenacity retrying mechanism working but in a synchronous fashion and not waiting as expected. This interface has been removed, aiter() should be used instead.
Add a new retry_base class called retry_if_exception_cause_type that checks, recursively, if any of the causes of the raised exception is of a certain
Add a new retry_base class called retry_if_exception_cause_type that checks, recursively, if any of the causes of the raised exception is of a certain type.
Add datetime.timedelta as accepted wait unit type.
Implement a wait.wait_exponential_jitter per Google’s storage retry guide. See https://cloud.google.com/storage/docs/retry-strategy
Fix after_log logger format: function name was used with delay formatting.
Removed BaseRetrying.call : was long time deprecated and produced DeprecationWarning
Add retry_if_not_exception_type() that allows to retry if a raised exception doesn’t match given exceptions.
Most part of the code is type annotated.
Python 3.10 support has been added.
Add a repr method to RetryCallState objects for easier debugging.
Removed BaseRetrying.call : was long time deprecated and produced DeprecationWarning
Removed BaseRetrying.fn : was noted as deprecated
API change: BaseRetrying.begin() do not require arguments anymore as it not setting BaseRetrying.fn
Fix issue #288 : name and other attributes for async functions
Use str.format to format the logs internally to make logging compatible with other logger such as loguru.
Use black for code formatting and validate using black –check . Code compatibility: py26-py39.
Enforce maximal line length to 120 symbols
Add type annotations to cover all public API.
Do not package tests with tenacity.
Drop support for deprecated Python versions (2.7 and 3.5)
Corrected the PyPI-published wheel tag to match the metadata saying that the release is Python 3 only.
Nothing published for this version
Nothing published for this version
Unit tests can now mock nap.sleep() for testing in all tenacity usage styles
Add an exc_info option to the before_sleep_log() strategy.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
### New Features - Add reno (changelog system)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.