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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: appnope-0.1.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200917 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for appnope-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dd83cd4b5b460958838f6eb3000c660b1f9caf2a5b1de4264e941512f603258a
MD5 16198e5c4f2b049dc98aa444e96ca554
BLAKE2b-256 e9bc2d2c567fe5ac1924f35df879dbf529dd7e7cabd94745dc9d89024a934e76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: appnope-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200917 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for appnope-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 93aa393e9d6c54c5cd570ccadd8edad61ea0c4b9ea7a01409020c9aa019eb442
MD5 57b83f3b71bc615eb318c1c111c7cc7a
BLAKE2b-256 e4fa0c6c9786aa6927d12d100d322588e125e6ed466ab0a3d2d509ea18aeb56d

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