Polling2: Never write another polling function

Release v0.4.6.

https://travis-ci.com/ddmee/polling2.svg?branch=master https://img.shields.io/pypi/dm/polling2.svg http://hits.dwyl.io/ddmee/polling2.svg https://img.shields.io/pypi/pyversions/polling2.svg

Polling2 is a powerful python utility used to wait for a function to return when the specified condition is met.

Install

polling2 is available from Pypi.:

python -m pip install polling2

Examples

Watch polling do some arbitrary dances:

>> import polling2, time
>> # Wait until the number of seconds (ignoring milliseconds) is divisible by 5.
>>  polling2.poll(target=time.time, check_success=lambda x: int(x) % 5 == 0, step=0.5, timeout=6)
1599737060.4507122

View all the examples:

Contributor Guide

If you want to contribute to the project…

Release notes

The change log for each released version.

Indices and tables