busypie 0.5.1
pip install busypie
Released:
Easy and expressive busy-waiting for Python
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache License 2.0)
- Author: Eli Segal
- Tags busy, wait, tdd, test, builder, sleep, wait, pytest
- Requires: Python >=3.6
Classifiers
- License
- Operating System
- Programming Language
Project description
Easy and expressive busy-waiting for Python
Although you 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 require 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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache License 2.0)
- Author: Eli Segal
- Tags busy, wait, tdd, test, builder, sleep, wait, pytest
- Requires: Python >=3.6
Classifiers
- License
- Operating System
- Programming Language
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
File details
Details for the file busypie-0.5.1.tar.gz
.
File metadata
- Download URL: busypie-0.5.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a6ec2a60973a9708a2b6aada5d9904ab73636f2432f19db2940c811af559d02 |
|
MD5 | d0645577cc2410c64a52ef004f27bfa6 |
|
BLAKE2b-256 | 2877bc40c3e4c6d4b8b04e4dae372cdcdca46ba5e63deb958cefcb55abd0e165 |
File details
Details for the file busypie-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: busypie-0.5.1-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f7d6a3e549357a8d59087985919af11276cd11a6be162dadd7f8d60a4718a86 |
|
MD5 | 026197bf9e9a9fbf5b83ebc334b3f2b0 |
|
BLAKE2b-256 | 3d60c7b775280e4550b4f1056f5767543d353238c6dfa1afc2cca88605da6a81 |