šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

appnope

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appnope

Disable App Nap on macOS >= 10.9

0.1.4
PyPI
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts