polling2
Updated polling utility with many configurable options
Decision gist · record as of 2026-08-14
Yes, if you need a lightweight polling utility. The package has no dependencies, low install friction, and a permissive license. However, note that it is aging—last released in 2021 and not actively developed—so it is best suited for stable, simple polling tasks rather than projects requiring ongoing maintenance or new features.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Maintenance status is aging—last release was 2021-07-19 and the last commit 2026-01-11, so the package is stable but not actively developed.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects with minimal restrictions.
last release 2021-07-19 (1852 days) · last repo commit 2026-01-11 · 61 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,028,715 downloads/mo, #3,353 on PyPI
Alternatives
Verify before relying
pip install polling2
import polling2
file_handle = polling2.poll(
lambda: open('/tmp/myfile.txt'),
ignore_exceptions=(IOError,),
timeout=3,
step=0.1
)- Whether the package works reliably with modern Python versions (classifiers list Python 2 and 3 but requires_python is unspecified)
What it is and what it does
Polling2 is a utility for repeatedly calling a function until it returns a desired result or a timeout is reached. Instead of writing custom retry loops with exception handling and timing logic, you pass a callable to polling2.poll() along with timeout and step parameters, and it handles the polling loop for you—returning the function's result when the condition is met or raising an exception if the timeout expires.
The package is useful in integration tests, waiting for external resources (files, API responses, locks), and any scenario where you need to retry an operation with configurable delays and timeouts. It's a fork of the original polling library, maintained to address issues the original project no longer handles.
Use it for
- Wait for an API endpoint to return a successful status code before proceeding in tests or deployment scripts.
- Poll for the existence or non-existence of a file on disk with a timeout to avoid indefinite hangs.
- Retry acquiring a resource lock or waiting for a thread to release a lock within a time limit.
- Check for completion of an asynchronous background task by polling a status function periodically.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a lightweight polling utility.
The package has no dependencies, low install friction, and a permissive license. However, note that it is aging—last released in 2021 and not actively developed—so it is best suited for stable, simple polling tasks rather than projects requiring ongoing maintenance or new features.
Install
polling2 on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance status is aging—last release was 2021-07-19 and the last commit 2026-01-11, so the package is stable but not actively developed.
License in practice
Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install polling2
import polling2
file_handle = polling2.poll(
lambda: open('/tmp/myfile.txt'),
ignore_exceptions=(IOError,),
timeout=3,
step=0.1
)
Verify before relying
- Whether the package works reliably with modern Python versions (classifiers list Python 2 and 3 but requires_python is unspecified)
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 1,852 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,028,715 / month, #3,353 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 3 |
Evidence: polling2-0.5.0-py2.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 › “polling retry utility”
- polling2Polling2 lets you wait for a function to return a desired condition…
- timeout-samplerPolls a function repeatedly within a timeout window, collecting…
- waitingWaiting is a lightweight library for polling a predicate function…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities 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.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
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.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also httsleep · timeout-sampler · waiter · waiting · busypie · retrying · monotonic · python-retry · wait-for-it · wait-for2