Changelog#
[0.7.2] (2023-09-27)#
Fixed#
[0.7.1] (2023-06-11)#
Fixed#
keep.runningandkeep.presentingreturn an objectmwithsuccessvalue ofTrue.
[0.7.0] (2023-06-11)#
Added#
New API:
keep.running()andkeep.presenting()context managers. These are currently simple wrappers of the old methods but the internals will be re-written in a future version.The context managers now return the result of the action,
m. Users may check withm.successif changing the mode was succesful.Possibility to fake succesful change of mode with
WAKEPY_FAKE_SUCCESS(for CI / tests).
Fixed#
No exceptions anymore on import-time. All exceptions should be handled now gracefully, and user is informed if switching to a
keep.runningorkeep.presentingmode failed.
Deprecated#
Old Python API: The
keepawake(),set_keepawakeandunset_keepwake. These will be removed in a future version of wakepy. Usekeep.running()orkeep.presenting(), instead.The
-s, --keep-screen-awakeoption of thewakepyCLI command. Use-p, --presentationoption, instead.
[0.6.0] (2023-02-27)#
Added#
Support for using wakepy without sudo on linux! There are now D-bus solutions (1) using jeepney and (2) using dbus-python (libdbus). Thanks to Stehlampe2020 for the dbus-python based solution (PR #22) and NicoWeio for raising Issue #17.
Changed#
Linux+systemd approach has sudo check. The program won’t start without
SUDO_UIDenvironment variable set.
[0.5.0] (2021-12-15)#
Added#
wakepy ascii art text, version and options will be printed in console if wakepy launched with the CLI
The
wakepyexecutable for CLI is installed whenwakepyis installed withpip.
[0.4.4] (2021-08-30)#
Fixed#
Keeping screen awake on Mac Issue #13 (fixed in PR #15). Thanks to mikeckennedy.
[0.4.3] (2021-08-28)#
Fixed#
Raising
TypeError: a bytes-like object is required, not 'str'if trying to use on MacOS (Python 3.9). Issue #11 Thanks to mikeckennedy for PR #12.
[0.4.2] (2021-08-10)#
Fixed#
[0.4.1] (2021-06-15)#
Fixed#
Raising
NotImplementedErrorif trying to use on Linux withoutsystemctl. Previous implementation had a bug. Issue 8
[0.4.0] (2021-06-09)#
Added#
keepawakecontext manager. [PR #6]. Thanks to HoustonFortney.
[0.3.2] (2021-06-06)#
Fixed#
Raising
NotImplementedErrorif trying to use on Linux withoutsystemctl. [#3]
[0.3.1] (2021-06-02)#
Fixed#
The package in PyPI did not have any content
[0.3.0] (2021-05-05)#
Added#
Linux & OSX support. Thanks for rileyyy.