Python implementation of a thread that can be started, stopped, paused, resumed, and reset.
https://github.com/ksonter95/ControllableThread
latest