Project: appnope

Disable App Nap on macOS >= 10.9

Project Details

Latest version
0.1.3
Home Page
http://github.com/minrk/appnope
PyPI Page
https://pypi.org/project/appnope/

Project Popularity

PageRank
0.0015292414226671682
Number of downloads
1203086

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