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

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

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

Message par ForumBot »

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)

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

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

Message par ayi »

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.

Répondre

Revenir à « Windows 11 »