Skip to main content

Monitor system stats and prevent system sleep when significant activity is detected.

Project description

Sleep Guard

Other tools such as Caffeine for Linux and Caffeinate for the Mac will keep your system awake, but require explicit action by the user. If you are like me, I often start a long running process, but forget to actually take the explicit action and come back to a sleeping system with no work done.

sleepguard is a program that monitors several system resources and prevents the computer from sleeping automatically if it detects significant activity (as defined by the user).

Installation

pip install sleepguard

To enable GPU monitoring you must install one (or both) of the optional variants: amd for AMD or nvidia for NVIDIA cards.

pip install sleepguard[amd,nvidia]

Basic Usage

The main application is implemented in the sleepguard.guard module and can be run like any other python application. This will start an infinite loop that periodically polls the desired system resources and will prevent the system from sleeping [1] if any of the values are above their configured thresholds.

python -m sleepguard.gaurd

Full Documentation

See read the docs for the full documentation and configuration options.

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

sleepguard-0.1.4.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sleepguard-0.1.4-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file sleepguard-0.1.4.tar.gz.

File metadata

  • Download URL: sleepguard-0.1.4.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for sleepguard-0.1.4.tar.gz
Algorithm Hash digest
SHA256 97b18c9296beab7900c521ebe5a8b7d4af1fd35a2d573a47fb124da726919c72
MD5 4e18376cd2a80a7e3efa0de5314e04e3
BLAKE2b-256 74a39c17496f4ee1d686b46ac97ee524c2e65d528197f8904b9dbe605a2bb18d

See more details on using hashes here.

File details

Details for the file sleepguard-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sleepguard-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for sleepguard-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 703779b0645304d54b937cb3dea6c91bd9053d15abbf5ef422aa0061f2482ddc
MD5 d58686407aeb0c84fb1b748cdc7d3088
BLAKE2b-256 56e3f9b70b6b3f4eeb8d7ea1e37ad8b1402f7aa5805791ec3e2b26ff581ce46b

See more details on using hashes here.

Supported by

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