skip to navigation
skip to content

sleepless 1.0.4

Keep macOS (OSX) awake by setting power assertions

sleepless

Python wrapper around the macOS (OSX) assertion for preventing standby “due to lack of user action”.

Usage:

import sleepless

# Tell OS to keep awake
sleepless.keep_awake(u"MyApp - why I don't sleep")

# Do stuff
do_lengthy_action()

# Calling again is harmless
sleepless.keep_awake(u"MyApp - why I don't sleep")

# When done
sleepless.allow_sleep()

2012 The SABnzbd Team <team@sabnzbd.org>

 
File Type Py Version Uploaded on Size
sleepless-1.0.4-cp27-cp27m-macosx_10_6_intel.whl (md5) Python Wheel 2.7 2017-09-17 5KB
sleepless-1.0.4.tar.gz (md5) Source 2017-09-17 2KB