Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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


Release history Release notifications

This version
History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
sleepless-1.0.4-cp27-cp27m-macosx_10_6_intel.whl (5.7 kB) Copy SHA256 hash SHA256 Wheel 2.7 Sep 17, 2017
sleepless-1.0.4.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None Sep 17, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page