Skip to main content

helper library which waits

Project description



Travis Build

Build Status

Code and Test Quality

codecov BCH compliance CodeFactor


Quality Gate Status Code Smells Bugs Vulnerabilities


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\", 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

0.0.7: first release

0.0.8: adding timeout functionality

0.0.9: adding be false

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wait-for-it-to, version 0.0.9
Filename, size File type Python version Upload date Hashes
Filename, size wait_for_it_to-0.0.9-py3-none-any.whl (15.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size wait_for_it_to-0.0.9.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page