Easy and expressive busy-waiting for Python
Project description
Easy and expressive busy-waiting for Python
Although you typically wouldn't want to do much busy-waiting in your production code, testing is a different matter. When testing asynchronous systems, it's very helpful to wait for some scenario to finish its course. busypie helps you perform busy waiting easily and expressively.
Quickstart
Most typical usage will be in test, when we have a scenario that requires us to wait for something to happen.
from busypie import wait, SECOND
def test_create_user():
create_user_from(USER_DETAILS)
wait().at_most(2, SECOND).until(lambda: is_user_exists(USER_DETAILS))
Documentation
Links
This project drew a lot of inspiration from Awaitility.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file busypie-0.6.1.tar.gz.
File metadata
- Download URL: busypie-0.6.1.tar.gz
- Upload date:
- Size: 46.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1662a6fa2e9685aeb7c662be9438b65f15c9c4cc28e64d071e01645ad9ce6af2
|
|
| MD5 |
7ac3275d74e9a0bc14c3604b7f1a25fd
|
|
| BLAKE2b-256 |
b529851e1a266a16620b810af36aa60a8d89b9214e765980aa4c0e5684cc4411
|
Provenance
The following attestation bundles were made for busypie-0.6.1.tar.gz:
Publisher:
publish.yaml on rockem/busypie
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
busypie-0.6.1.tar.gz -
Subject digest:
1662a6fa2e9685aeb7c662be9438b65f15c9c4cc28e64d071e01645ad9ce6af2 - Sigstore transparency entry: 926771970
- Sigstore integration time:
-
Permalink:
rockem/busypie@51c102dd5f3b9199b128f702b79ebe49808bc73c -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/rockem
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@51c102dd5f3b9199b128f702b79ebe49808bc73c -
Trigger Event:
release
-
Statement type:
File details
Details for the file busypie-0.6.1-py3-none-any.whl.
File metadata
- Download URL: busypie-0.6.1-py3-none-any.whl
- Upload date:
- Size: 42.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b4673687d58249e791b4b0361a1e188fd1a35ffcacb9398437aed3394e3a3da
|
|
| MD5 |
66d045e7155638e378d73c8ba344d910
|
|
| BLAKE2b-256 |
f6230086d8fd645e2afd94589ec543a608af6eb66e40ca5bd7166efe53d99d81
|
Provenance
The following attestation bundles were made for busypie-0.6.1-py3-none-any.whl:
Publisher:
publish.yaml on rockem/busypie
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
busypie-0.6.1-py3-none-any.whl -
Subject digest:
1b4673687d58249e791b4b0361a1e188fd1a35ffcacb9398437aed3394e3a3da - Sigstore transparency entry: 926771972
- Sigstore integration time:
-
Permalink:
rockem/busypie@51c102dd5f3b9199b128f702b79ebe49808bc73c -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/rockem
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@51c102dd5f3b9199b128f702b79ebe49808bc73c -
Trigger Event:
release
-
Statement type: