Skip to main content

Disable App Nap on macOS >= 10.9

Project description

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

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.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

appnope-0.1.4-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file appnope-0.1.4.tar.gz.

File metadata

  • Download URL: appnope-0.1.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for appnope-0.1.4.tar.gz
Algorithm Hash digest
SHA256 1de3860566df9caf38f01f86f65e0e13e379af54f9e4bee1e66b48f2efffd1ee
MD5 98005ca7b68c7b483dfbf029993e4f12
BLAKE2b-256 355d752690df9ef5b76e169e68d6a129fa6d08a7100ca7f754c89495db3c6019

See more details on using hashes here.

File details

Details for the file appnope-0.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: appnope-0.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for appnope-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 502575ee11cd7a28c0205f379b525beefebab9d161b7c964670864014ed7213c
MD5 fce1c130bea358b149830d18dc7c0607
BLAKE2b-256 81295ecc3a15d5a33e31b26c11426c45c501e439cb865d0bff96315d86443b78

See more details on using hashes here.

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