Skip to main content

sleepless
=========

Python wrapper around the macOS (OSX) assertion for preventing standby "due to lack of user action".

Usage:
```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()

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for sleepless-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f78b2ec85b6057d43f0342bd701fed270d32154dbc07ccf9f5a125fdfacc8bac
MD5 40e0d72f1bb175283fe570eff3fbb660
BLAKE2b-256 961f6a39e291a91b9af9079a3425dbfa7ad9f6f1bf63597293fc42e4c24fc6b2

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 Sentry Error logging StatusPage Status page