Disable App Nap on OS X 10.9
Switch branches/tags
Clone or download
minrk remove setupegg.py
always use setuptools

disable busted implicit bdist_egg
Latest commit daac765 Jan 23, 2018
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 remove setupegg.py Jan 23, 2018
README.md nope_scope Nov 13, 2013
setup.cfg sdist, bdist fixes Oct 7, 2014
setup.py remove setupegg.py Jan 23, 2018

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