Disable App Nap on OS X 10.9
Python
Latest commit 00a6a40 Oct 8, 2014 @minrk 0.2-dev
Permalink
Failed to load latest commit information.
appnope 0.2-dev Oct 7, 2014
.gitignore gitignore Oct 30, 2013
LICENSE nope nap Oct 29, 2013
MANIFEST.in sdist, bdist fixes Oct 7, 2014
README.md nope_scope Nov 13, 2013
setup.cfg sdist, bdist fixes Oct 7, 2014
setup.py warn when installing on OS X < 10.9 Oct 7, 2014
setupegg.py setupegg.py Nov 13, 2013

README.md

appnope

Simple package for disabling App Nap on OS X 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, just:

pip install appnope

or

pip install -e git+https://github.com/minrk/appnope#egg=appnope