0.1.4 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
BSD - BSD License (Generic)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