Keep macOS (OSX) awake by setting power assertions
Project description
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("MyApp - why I don't sleep")
# Do stuff
do_lengthy_action()
# Calling again is harmless
sleepless.keep_awake("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.2.tar.gz
(2.7 kB
view details)
File details
Details for the file sleepless-1.0.2.tar.gz
.
File metadata
- Download URL: sleepless-1.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 614b13c156ac8f57f64c1fbc394e353f6b9e390f5cf1c1df1d5dbec82de87d3c |
|
MD5 | b01abf4977cabde94d94a4764fdd728c |
|
BLAKE2b-256 | 0ebd9cc3cdfa8f998743b07b7441fd289b4743250aeeb215c5a13dc4fdbf9146 |