busypie
Easy and expressive busy-waiting for Python
Decision gist · record as of 2026-08-14
Yes. busypie is a low-friction, zero-dependency testing utility with active maintenance and no known vulnerabilities. It solves a real problem in async test code—replacing ad-hoc sleep loops with readable, expressive waits. Permissive license and modest but stable adoption make it a safe choice for test suites that need polling logic.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later.
- No runtime dependencies and low install friction.
- Actively maintained with recent releases; last commit 2026-04-28.
License · maintenance · safety
Apache License 2.0 (permissive) — Apache License 2.0 (permissive) imposes no significant restrictions on use or redistribution in most contexts.
last release 2026-02-07 (188 days) · last repo commit 2026-04-28 · 23 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 216,384 downloads/mo, #9,380 on PyPI
Alternatives
Verify before relying
pip install busypie
from busypie import wait, SECOND
def test_something():
wait().at_most(2, SECOND).until(lambda: condition_is_true())- Whether the fluent API supports all common polling strategies (fixed delay, exponential backoff, etc.) beyond what the excerpt shows.
- Performance characteristics when polling frequently or with very short timeouts in high-concurrency test scenarios.
What it is and what it does
busypie is a lightweight testing utility that wraps busy-waiting into a readable, fluent API. It's designed specifically for test code where you need to wait for an asynchronous operation or condition to complete—for example, waiting for a user to appear in a database after an async creation call. Instead of writing manual sleep loops or complex synchronization logic, you chain method calls like `wait().at_most(2, SECOND).until(lambda: condition())` to express the intent clearly.
The package has no runtime dependencies and integrates directly into test suites. It's most useful in integration or end-to-end tests where you're verifying that side effects have occurred, rather than in unit tests. The API is inspired by Awaitility (a Java library) and is intended to make test code more readable and maintainable by encoding the wait-and-check pattern in a standard, expressive form.
Use it for
- Wait for an async database operation to complete in integration tests before asserting on the result.
- Poll for a message to appear in a queue or event stream during end-to-end test scenarios.
- Verify that a background job has finished and updated application state before proceeding with assertions.
- Test event-driven systems where you need to wait for a callback or state change within a timeout.
- Replace manual sleep() calls in test code with explicit, readable timeout-and-condition expressions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
busypie is a low-friction, zero-dependency testing utility with active maintenance and no known vulnerabilities. It solves a real problem in async test code—replacing ad-hoc sleep loops with readable, expressive waits. Permissive license and modest but stable adoption make it a safe choice for test suites that need polling logic.
Install
busypie on PyPI
Before you install
No runtime dependencies and low install friction. Actively maintained with recent releases; last commit 2026-04-28. Modest but steady adoption at top_15000 tier.
Requires Python 3.6 or later.
License in practice
Apache License 2.0 (permissive) imposes no significant restrictions on use or redistribution in most contexts.
Quickstart
pip install busypie
from busypie import wait, SECOND
def test_something():
wait().at_most(2, SECOND).until(lambda: condition_is_true())
Verify before relying
- Whether the fluent API supports all common polling strategies (fixed delay, exponential backoff, etc.) beyond what the excerpt shows.
- Performance characteristics when polling frequently or with very short timeouts in high-concurrency test scenarios.
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 188 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 216,384 / month, #9,380 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: busypie-0.6.1-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 › “busy wait testing”
- busypieProvides expressive, fluent API for busy-waiting in tests, allowing…
- spinnersProvides an enum of more than 60 pre-defined terminal spinner…
- haloHalo displays animated spinners in the terminal to indicate progress…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
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.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also waiting · polling2 · waiter · expects · wait-for-it · pytest-race · httsleep · pytest-timeout · pytest-watch · robotframework-seleniumtestability