Skip to main content

Disable App Nap on macOS >= 10.9

Project description


Simple package for disabling App Nap on macOS >= 10.9, which can be problematic.

To disable App Nap:

import appnope

To reenable, for some reason:


or to only disable App Nap for a particular block:

with appnope.nope_scope():

It uses ctypes to wrap a [NSProcessInfo beginActivityWithOptions] call to disable App Nap.

To install:

pip install appnope

Project details

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)

Uploaded Source

Built Distribution

appnope-0.1.2-py2.py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page