Tenacity is a Python library that enables automatic retrying of functions with customizable strategies. It replaces the now-deprecated retrying library and supports exponential backoff, fixed delays, stop and wait conditions, and exception filtering. Useful for network operations, API calls, or any unstable process, Tenacity helps increase reliability in Python applications by handling transient failures gracefully and robustly.

Features

  • Retry on exceptions or result conditions
  • Supports exponential backoff and jitter
  • Configurable wait and stop strategies
  • Retry logging and statistics collection
  • Works with synchronous and async functions
  • Simple decorator-based API

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Tenacity Python

Tenacity Python Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Tenacity Python!

Additional Project Details

Programming Language

Python

Related Categories

Python Libraries

Registered

2025-07-03