Si un processus Python est en cours d'execution, garder l'ecran allume - Windows 11

Si un processus Python est en cours d’execution, garder l’ecran allume - Windows 11


Source : [Super User [windows-11]](GitHub - wakepy/wakepy: Cross-platform keep-awake with python · GitHub](GitHub - wakepy/wakepy: Cross-platform keep-awake with python · GitHub)

https://github.com/wakepy/wakepy

$ pip install wakepy

from wakepy import keep

with keep.presenting():
  ...

Cela fait la meme chose que @FranckDernoncourt mais de maniere multiplateforme et concise.

J’utilise toujours with keep.running(): car je ne suis pas interesse par l’imagerie ou le suivi de progression, j’ai juste besoin des resultats de longs calculs.