Keep macOS (OSX) awake by setting power assertions
Project description
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>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sleepless-1.0.4.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file sleepless-1.0.4.tar.gz
.
File metadata
- Download URL: sleepless-1.0.4.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7167e97a279b080aa9357f11440520dc3c08608da5db4cfbc6da39aeccd8b5bc |
|
MD5 | 4aab8f4da4a5552fe1e16b0b79febec6 |
|
BLAKE2b-256 | aed644e73252a083cf570d074c9ebc55b15f16a58b87d4caa70b8a629eee71d6 |
File details
Details for the file sleepless-1.0.4-cp27-cp27m-macosx_10_6_intel.whl
.
File metadata
- Download URL: sleepless-1.0.4-cp27-cp27m-macosx_10_6_intel.whl
- Upload date:
- Size: 5.7 kB
- Tags: CPython 2.7m, macOS 10.6+ intel
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c84ef79e1e2cac55dfa52b5bb5c8e7ef33fd34a221542494829af9d73729468 |
|
MD5 | 9ba929dc7ceb646fe8b4423e820da2fd |
|
BLAKE2b-256 | e2b3e42c7c9714c4641e6573d90c85b1955c1d337140d05855455327b8583733 |