Skip to main content

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()
  1. 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.2.tar.gz (2.7 kB view details)

Uploaded Source

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

Hashes for sleepless-1.0.2.tar.gz
Algorithm Hash digest
SHA256 614b13c156ac8f57f64c1fbc394e353f6b9e390f5cf1c1df1d5dbec82de87d3c
MD5 b01abf4977cabde94d94a4764fdd728c
BLAKE2b-256 0ebd9cc3cdfa8f998743b07b7441fd289b4743250aeeb215c5a13dc4fdbf9146

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page