Waiter
Project description
air-waiter
Call a callable until the expected result. Raises TimeoutError if limit is reached. Waiter can be limited by timeout or/and by maximal calls count.
Install
# With uv
uv add air-waiter
# With poetry
poetry add air-waiter
# With pip
pip install air-waiter
Usage
Wait untill the action returns the expected value in timeout
Wait(action, timeout=10, interval=0.1).until(lambda x: check_action(x))
Wait untill the action returns the expected value with limited attempts
Wait(action, timeout=0, max_attempts=5, interval=0.1).until(lambda x: check_action(x))
Wait untill the action returns the expected value, doubling the interval after each attempt
Wait(action, timeout=10, is_exponential=True, interval=0.01).until(lambda x: check_action(x))
Project details
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 air_waiter-1.1.0.tar.gz.
File metadata
- Download URL: air_waiter-1.1.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb3c7d72b4d76a0ffe123c39e065fdba46dc38517dcb7d9d399ce3fce3e6b4a3
|
|
| MD5 |
23678198ada87da3ee42ba8fee650761
|
|
| BLAKE2b-256 |
d854d455151ebda6ca5af957e237d1a1fa290f93126612e8dc9ffc930773dfc2
|
Provenance
The following attestation bundles were made for air_waiter-1.1.0.tar.gz:
Publisher:
publish.yml on airreality/air-waiter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
air_waiter-1.1.0.tar.gz -
Subject digest:
eb3c7d72b4d76a0ffe123c39e065fdba46dc38517dcb7d9d399ce3fce3e6b4a3 - Sigstore transparency entry: 171214262
- Sigstore integration time:
-
Permalink:
airreality/air-waiter@899ea5774a072227d96a2b6f4ecc9757fccfc5d0 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/airreality
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@899ea5774a072227d96a2b6f4ecc9757fccfc5d0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file air_waiter-1.1.0-py3-none-any.whl.
File metadata
- Download URL: air_waiter-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11a5ce96fc453e65f13a32b1bf3e524cb268ec862952d6a09cf9e747fe2ed3f4
|
|
| MD5 |
986ded8bde57f968a28859d5a182518a
|
|
| BLAKE2b-256 |
53b3833c17306bfea6cd3a15a6831e85f666212342001d0389cb763556292751
|
Provenance
The following attestation bundles were made for air_waiter-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on airreality/air-waiter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
air_waiter-1.1.0-py3-none-any.whl -
Subject digest:
11a5ce96fc453e65f13a32b1bf3e524cb268ec862952d6a09cf9e747fe2ed3f4 - Sigstore transparency entry: 171214263
- Sigstore integration time:
-
Permalink:
airreality/air-waiter@899ea5774a072227d96a2b6f4ecc9757fccfc5d0 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/airreality
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@899ea5774a072227d96a2b6f4ecc9757fccfc5d0 -
Trigger Event:
push
-
Statement type: