Skip to main content

Coffeepy prevents the system from sleeping

Project description

Supported Python versions PyPI Version

Coffeepy

Coffeepy ☕️ is a small program that prevents the system from sleeping. Works on MacOS, Windows and Linux.

coffeepy

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coffeepy-0.1.7.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

coffeepy-0.1.7-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file coffeepy-0.1.7.tar.gz.

File metadata

  • Download URL: coffeepy-0.1.7.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for coffeepy-0.1.7.tar.gz
Algorithm Hash digest
SHA256 7ea7cdaa968f080b0a3f52eb0732b99b33f5c56d11ac74d89e742cd8e26f9594
MD5 17ade3cdd208f9b0155fc0def1211033
BLAKE2b-256 0c446e6187b6d434e371d9397637035a0be61ac3b7cf7c764c96e56284fbc37a

See more details on using hashes here.

File details

Details for the file coffeepy-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: coffeepy-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for coffeepy-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ecdec9d5aa235e88c99aa57124430f642d70adb845e346a4605e21d0dc44c5a3
MD5 b96ba008f9320d3ee48096e9b1de5378
BLAKE2b-256 06b3e8b56047cbe02e9e7a4c9ca219fcb3bae73a3f7d964f0558e8aae6dc4c59

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page