Coffeepy prevents the system from sleeping
Project description
Coffeepy
Coffeepy ☕️ is a small program that prevents the system from sleeping. Works on MacOS, Windows and Linux.
Installation
pip install -U coffeepy
Usage
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
.
Python module
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)
License
This project is licensed under the MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file coffeepy-0.2.0.tar.gz
.
File metadata
- Download URL: coffeepy-0.2.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55790c31ced276dd5cc866cd95c031f1eafb4a45573104dc0a9beef31d5d87e8 |
|
MD5 | 238f8c7125e1b52850c545339dee8dd9 |
|
BLAKE2b-256 | 8b702563ea1f2216de6be084fca6d5cc94b33e17134467f7aec8626a45667b56 |
File details
Details for the file coffeepy-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: coffeepy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b89fab523c492de610bda04a80577f95776bfabd6a8962ee14f08506106bf211 |
|
MD5 | 73e397d10715f8f269cd50e9b9beae8e |
|
BLAKE2b-256 | 09714d559b35eeb53b7a8cfa257d0cf522ba4411f080f0086aff5064a15507c1 |