Welcome to busypie!
busypie is an easy and expressive utility to do busy-waiting in Python

Although, most of the time, you wouldn’t want to do much busy waiting in your production code, testing is a different matter. When testing asynchronous systems, it’s very helpful to wait for some scenario to finish its course.
busypie helps you perform busy waiting easily and expressively.
Getting Started