Skip to main content

Simple wakelock / keep-awake / stay-awake

Project description

GitHub tag (latest by date) PyPI PyPI - Downloads GitHub

⏰😴 wakepy

Simple cross-platform wakelock written in Python. Comes with python API and a single executable for CLI usage.

Supports

  • Python: 3.7 to 3.12
  • OS: Windows, Linux and macOS

What it can do?

  • Prevent your system from going to sleep in the middle of a long running task (e.g. training machine learning models, video encoding, web scraping, ...)
  • Prevent starting a screensaver or screenlock automatically (showing a video, updating dashboard, monitoring apps, ...)

Used by

Documentation

👉 wakepy.readthedocs.io

⚖️👑 Key selling points

  • Wakepy supports multiple operating systems and desktop environments
  • Wakepy has permissive MIT licence
  • It has a simple command line interface and a python API
  • Wakepy has very little python dependencies:
    • Zero if using Windows or macOS or Linux + systemd
    • One if using linux + jeepney or linux + dbus-python.

Deprecation timeline (wakepy 0.7.0+)

Since deprecations may affect many users, they are communicated well before and time is given for project maintainers for migration. Timeline:

  • June 11th 2023: Release wakepy 0.7.0 with DeprecationWarnings for keepawake, set_keepawake and unset_keepawake, and the CLI option -s. Migration Guide published.
  • September 1st 2023 (or few days later): Release wakepy without the deprecated keepawake, set_keepawake and unset_keepawake; Only new API supported.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

wakepy-0.7.2-py3-none-any.whl (15.8 kB view hashes)

Uploaded Python 3

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