waiter
Delayed iteration for polling and retries.
Decision gist · record as of 2026-08-14
Yes. Waiter is actively maintained, has no dependencies, supports current Python versions, carries a permissive license, and solves a real problem—retry/polling logic—in a cleaner, more flexible way than decorator-based alternatives. The iteration model is genuinely easier to reason about and customize. No known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies.
- Actively maintained with a release 19 days old; supports current Python versions (3.11–3.15) and has been stable since its first release in 2016.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-07-26 (19 days) · last repo commit 2026-07-26 · 31 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 339,282 downloads/mo, #7,427 on PyPI
Alternatives
Verify before relying
from waiter import wait
# Create a delay strategy
for elapsed in wait(1): # repeat every 1 second
try:
result = some_operation()
break
except TemporaryError:
pass # loop sleeps, then retries
# Or use exponential backoff
backoff = wait(1) * 2 # 1, 2, 4, 8, ...
for _ in backoff:
if check_condition():
break- Whether the stats interface remains stable or will change in future releases, given it is marked provisional.
- Performance characteristics when used with very large delay sequences or long-running polling loops.
What it is and what it does
Waiter is a retry and polling library that replaces decorator-based approaches with iteration. Instead of wrapping functions with retry decorators, you create a delay object (e.g., `wait(1)` for constant 1-second delays, or `wait(1) * 2` for exponential backoff) and iterate over it in a loop. Each iteration yields the elapsed time and sleeps as needed before the next attempt. The library supports common delay strategies like incremental backoff, Fibonacci, polynomial, and exponential sequences, all composable through operator overloading.
Waiter decouples delay algorithms from your application logic, making it easier to customize retry behavior per call site and to handle different exceptions or results with custom logic. It includes functional methods like `retry()`, `poll()`, and `repeat()` for common patterns, plus async support for coroutine-based retries. The iteration-based design means you control the loop body entirely—logging, exception handling, and early exit are all straightforward.
Use it for
- Retrying flaky API calls with exponential backoff and jitter to avoid thundering herd.
- Polling an external service until a condition is met, with a timeout to prevent infinite loops.
- Throttling iteration over results from a generator with configurable delays between items.
- Testing code that depends on eventual consistency by polling a predicate until it succeeds.
- Implementing circuit-breaker patterns with custom delay sequences that escalate over time.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Waiter is actively maintained, has no dependencies, supports current Python versions, carries a permissive license, and solves a real problem—retry/polling logic—in a cleaner, more flexible way than decorator-based alternatives. The iteration model is genuinely easier to reason about and customize. No known vulnerabilities.
Install
waiter on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained with a release 19 days old; supports current Python versions (3.11–3.15) and has been stable since its first release in 2016.
License in practice
Apache-2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
from waiter import wait
# Create a delay strategy
for elapsed in wait(1): # repeat every 1 second
try:
result = some_operation()
break
except TemporaryError:
pass # loop sleeps, then retries
# Or use exponential backoff
backoff = wait(1) * 2 # 1, 2, 4, 8, ...
for _ in backoff:
if check_condition():
break
Verify before relying
- Whether the stats interface remains stable or will change in future releases, given it is marked provisional.
- Performance characteristics when used with very large delay sequences or long-running polling loops.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 19 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 339,282 / month, #7,427 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: waiter-1.6-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “retry with custom delays”
- waiterWaiter provides iteration-based retry and polling with customizable…
- justbackoffImplements exponential backoff with optional jitter for retry logic,…
- pytest-retrypytest-retry is a pytest plugin that automatically retries failed…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also polling2 · reretry · waiting · timeout-sampler · retry · backoff · python-backoff · retrying · busypie · aioretry