appnope 0.1.4


pip install appnope

  Latest version

Released: Feb 06, 2024

Project Links

Meta
Author: Min Ragan-Kelley
Requires Python: >=3.6

Classifiers

License
  • OSI Approved :: BSD License

Operating System
  • MacOS :: MacOS X

Programming Language
  • Python :: 3

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

Wheel compatibility matrix

Platform Python 2 Python 3
any

Files in release

No dependencies