Python wrapper around the macOS (OSX) assertion for preventing standby “due to lack of user action”.
Usage: .. code:: python
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>
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.0.tar.gz
(2.7 kB
view details)
File details
Details for the file sleepless-1.0.0.tar.gz.
File metadata
- Download URL: sleepless-1.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
762151f8480c800dc4d6ed04f4b6037cb252c9bb532a115cca15ff36f4ffc9cc
|
|
| MD5 |
652b89c5c24911ec548358a1a435ee62
|
|
| BLAKE2b-256 |
c9b8f20fd7e6d7c744f1aec27918583982f30f7ddd1d5b128474d5489da9fb52
|