helper library which waits


Keywords
python, tooling, wait
License
GPL-2.0+
Install
pip install wait-for-it-to==0.0.7

Documentation

waitforit

Badges

Travis Build

Build Status

Code and Test Quality

codecov BCH compliance CodeFactor

SonarQube

Quality Gate Status Code Smells Bugs Vulnerabilities

PyPI

PyPI - Downloads

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

https://github.com/studioj/wait_for_it/releases