wakepy is a cross-platform library for keeping the system awake (preventing sleep / screen lock) and releasing the wakelock. Version 1.0.0 (requires Python >=3.7). Development is active on GitHub. It supports Windows, macOS, and Linux via DBus.
pip install wakepyVerified import paths — ran on the pinned version, not inferred.
Basic usage as a context manager to prevent sleep.
Ensure dbus service is running; use 'pip install wakepy[dbus]' for additional dependencies if needed (though not needed in 1.0.0).
Run Python with appropriate privileges or configure polkit rules for your user.
Replace 'prevent_sleep' with 'keepawake'.
No dependency data recorded yet.