Disable App Nap on macOS >= 10.9
Project description
appnope
Simple package for disabling App Nap on macOS >= 10.9, which can be problematic.
To disable App Nap:
import appnope
appnope.nope()
To reenable, for some reason:
appnope.nap()
or to only disable App Nap for a particular block:
with appnope.nope_scope():
do_important_stuff()
It uses ctypes to wrap a [NSProcessInfo beginActivityWithOptions]
call to disable App Nap.
To install:
pip install appnope
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
appnope-0.1.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for appnope-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93aa393e9d6c54c5cd570ccadd8edad61ea0c4b9ea7a01409020c9aa019eb442 |
|
MD5 | 57b83f3b71bc615eb318c1c111c7cc7a |
|
BLAKE2b-256 | e4fa0c6c9786aa6927d12d100d322588e125e6ed466ab0a3d2d509ea18aeb56d |