helper library which waits
Project description
waitforit
Badges
Travis Build
Code and Test Quality
SonarQube
PyPI
This is a library for letting your python code wait for a certain action to complete
short example
import wait_for_it_to
def foo():
return True
def bar():
return False
>> wait_for_it_to.be_true(foo)
>> wait_for_it_to.be_true(bar)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "..\wait_for_it\wait_for_it_to\__init__.py", line 27, in be_true
raise TimeoutError(msg)
TimeoutError: expected something that evaluates to True, but got False instead
>> wait_for_it_to.be_true(foo, timeout=5)
Version History
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
wait_for_it_to-0.0.17.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for wait_for_it_to-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e8838ef2f5f82349cff353e30c72eb22e3d9350b2a88746fea9e660ac23e6ee |
|
MD5 | 2c7d5e75eb8efd63cc90b8d0cee960dd |
|
BLAKE2b-256 | 5339d7af5f646d55d42086b303c13eaf584f02ad7939cae216ab937750055e6e |