Coffeepy ☕️ is a small program that prevents the system from sleeping. Works on MacOS, Windows and Linux.
pip install -U coffeepy
Simply run the program from command line
coffeepy
By default the program runs indefinitely. Press Ctrl-C
to quit
Optional: You can set the time in minutes with -t
or --time
flag. For example, to run the program for 1 hour, use
coffeepy -t 60
You can also disable animation with -a
or --no-animation
flag.
coffeepy -a
You can view the full parameter list with -h
or --help
.
You can also import coffeepy as a python module
import coffeepy
coffeepy.run()
Optional settings when run as a python module:
import coffeepy
# you can also specify the time in minutes
# if no time is provided or time = 0, the program will run indefinitely
coffeepy.run(60)
# to disable animation when run as a module, you can set the second argument to True
coffeepy.run(0, True)
This project is licensed under the MIT License