Tenacity

Latest version: v9.0.0

Safety actively analyzes 701442 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

9.0.0

What's Changed
* Respects `min` argument for `wait_random_exponential` by yxtay in https://github.com/jd/tenacity/pull/425
* Bump major version to warn API breakage on statistics attribute

**Full Changelog**: https://github.com/jd/tenacity/compare/8.5.0...9.0.0

8.5.0

What's Changed
* fix: Restore contents of retry attribute for wrapped functions by hasier in https://github.com/jd/tenacity/pull/484

**Full Changelog**: https://github.com/jd/tenacity/compare/8.4.2...8.5.0

8.4.2

What's Changed
* 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

8.4.1

What's Changed
* Include `tenacity.asyncio` subpackage in release dist by cdce8p in https://github.com/jd/tenacity/pull/474

**Full Changelog**: https://github.com/jd/tenacity/compare/8.4.0...8.4.1

8.4.0

What's Changed
* Add async strategies by hasier in https://github.com/jd/tenacity/pull/451
* Support Trio out-of-the-box by jakkdl in https://github.com/jd/tenacity/pull/463

**Full Changelog**: https://github.com/jd/tenacity/compare/8.3.0...8.4.0

8.3.0

New Features
- 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. 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.

Bug Fixes
- Preserve __defaults__ and __kwdefaults__ through retry decorator


Other Notes
- Add a \"test\" extra

Links

Releases

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.