Skip to main content

Don't let your computer go to sleep while you're busy thinking

Project description

Caffeinate

Don't let your computer go to sleep while you're busy thinking.

Why would I need this?

Software engineering is more about thinking than typing. And it's very annoying when you're whiteboarding or just thinking and your work machine goes to sleep. Most of the times, we don't have admin access to change the settings so this helps prevent the computer from going to sleep.

Installation

Using pip:

pip install caffeinate

Using pip3:

pip3 install caffeinate

Usage

:memo: Tested on OSX and Windows

On windows, you might need to create a simple python file (code below) as path variable seems to be admin restricted.

from caffeinate import caffeinate

caffeinate.run()

On Linux or Mac OSX, you can simply type awake in the terminal.

Termination

To terminate the process, press Esc key 3 consecutive times (doesn't have to be terminal focused key presses).

TODO

  • Add good documentation to the usage with params explained
  • Cleanup the code, maybe use classes for extentibility

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

caffeinate-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file caffeinate-0.1.0.tar.gz.

File metadata

  • Download URL: caffeinate-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for caffeinate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 538e43faa2bedfd6559b231f0bcfc8f5156cc0d83ce2e18fc0b0a8315bff8434
MD5 4ef3f5869abd44b27445c3f10318f473
BLAKE2b-256 03df781fa0d93898a26bebf684cf9743fe4a0087fc1e2a63d9144f110464f21c

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