Skip to main content

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”.


import sleepless

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

# Do stuff

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

# When done

2012 The SABnzbd Team <>

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 hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page