geohot / appnope

Disable App Nap on OS X 10.9

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Disable App Nap on OS X 10.9

License:Other


Languages

Language:Python 100.0%