Welcome to busypie!
busypie is an easy and expressive busy-waiting library for Python.

Although you typically wouldn’t want to do much busy-waiting in production code, testing is a different matter. When testing asynchronous systems, it’s very helpful to wait for a scenario to complete.
busypie helps you perform busy waiting easily and expressively.
Getting Started