Sleep Hotkey
Installation
pip install sleep-hotkey
How to Use
Call the sleep function and hold onto the ESC key if you want to stop the sleeping at any time.
Examples
from sleep_hotkey.sleep_hotkey import sleep
sleep(10)
Sleep Hotkey is like Python's time.sleep() but with the ability to stop in the middle of a sleep on the press of a hotkey.
PythonGPL-3.0