Skip to main content

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

Project description


Don't let your computer go to sleep while training your models

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.


Using pip:

pip install caffeinate

Using pip3:

pip3 install caffeinate


: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

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


To terminate the process, press Esc key 3 consecutive times.

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.0.2.tar.gz (4.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page