Skip to main content

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

Uploaded Source

Built Distribution

sleepless-1.0.3-cp27-cp27m-macosx_10_6_intel.whl (5.7 kB view details)

Uploaded CPython 2.7m macOS 10.6+ intel

File details

Details for the file sleepless-1.0.3.tar.gz.

File metadata

  • Download URL: sleepless-1.0.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sleepless-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6bf8d00c645fa95a1834c9d05b4eb6fe23ba8d1aa35c226bb94499b1b1171d3c
MD5 ee59fcdba18baa88f4c989a1f7eb0311
BLAKE2b-256 ec743ec931f2f919049a8ae4fe22a7645fbe11ab59bd47b00abd6695df90fcce

See more details on using hashes here.

File details

Details for the file sleepless-1.0.3-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for sleepless-1.0.3-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 fcf13dc71b1cb11adc3e67e5ed2a71fcdc93a70380b110e47886defe8fbf4df2
MD5 479db2100ec359764ee5150f42306ede
BLAKE2b-256 eadbf856550ebea8fb10161e71e0044ad77aec8cb03288341d7143e23ae3878b

See more details on using hashes here.

Supported by

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