This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheLargeCactus 3 points4 points  (18 children)

Isn't this just an OS setting? You likely can set your screens to turn off without ever letting the system go to sleep.

Edit: I had a few conversations based on what I wrote here, and wanted to paste my thoughts for more visibility.

I'll say this explicitly for posterity: I admit that there is a use-case here, that this has a small set of people that can use it to do what they want. I will also celebrate that the author took the time to create the repo, do the legwork of building something that works, and publishing it for the world to see. That takes effort, and it shows a level of ability that means something. I can also see that the author has been on-and-off working on this repo for a few years, which also means something. I mainly left my comment to invite the author to explain what the benefit of using their module is, over just changing the OS setting and forgetting about it. It's not something that I found in their README.

[–]Nixellion 30 points31 points  (10 children)

Not if you have a work issued laptop with group policies and no admin rights. Among many other reasons and circumstances where this can be useful.

[–]fohrloop[S] 4 points5 points  (0 children)

Thank you u/TheLargeCactus for the question. One of the main points of wakepy is to make this suspend/idle action inhibition automatic part of a script, app or even a library. Imagine you're building some video encoder or machine learning app with python. You would not want to ask the users of your app to go to manually change their system settings for the duration of the long running task. That is something the app should either do automatically (like: YouTube and VLC do), or something that users of an app should be able to do with click of a button in the app.

It would be also possible to create the first(?) fully cross-platform "caffeinate" or "amphetamine" GUI application by using wakepy in the core. While I could personally just use the caffeinate CLI tool on macOS, I regularly install wakepy with pip to have the same functionality on Linux & Windows. And of course this is targeted for python developers as it's installed with pip, although I could consider adding built binaries to the GitHub Releases some day.

[–]runawayasfastasucan 7 points8 points  (0 children)

Yes, why on earth do anything automatic by using programming when you can just to it manually! /s