Skip to main content

Disable App Nap on macOS >= 10.9

Reason this release was yanked:

doesn't include the package

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

Uploaded Source

Built Distribution

appnope-0.1.1-py2.py3-none-any.whl (2.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: appnope-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

File hashes

Hashes for appnope-0.1.1.tar.gz
Algorithm Hash digest
SHA256 caeb46680dc3859d6dfa0ca18e70778dbac4d9cf33502a4ff228714ba1e513a0
MD5 6b4b8c810e77bc9dbad7f79d5d636a58
BLAKE2b-256 902b6495ce47be63013643b009c99220fc61e97bd634a19c54e2b15ffc878c99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: appnope-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

File hashes

Hashes for appnope-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d8096c5a6113c971509547ccf1dff1747a940b23e9ce34aff48f8305dbc0e6a0
MD5 e36856e7c0fe1f6cba0c567e23958c05
BLAKE2b-256 644d6d86701fe26b4694dcdb82ebe731a734e4efafe4b0b8b916131a8d803426

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