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

Uploaded Source

Built Distribution

appnope-0.1.3-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: appnope-0.1.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for appnope-0.1.3.tar.gz
Algorithm Hash digest
SHA256 02bd91c4de869fbb1e1c50aafc4098827a7a54ab2f39d9dcba6c9547ed920e24
MD5 ca8ec0b1628061ce922dbf1ceee25bca
BLAKE2b-256 6acd355842c0db33192ac0fc822e2dcae835669ef317fe56c795fb55fcddb26f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: appnope-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for appnope-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 265a455292d0bd8a72453494fa24df5a11eb18373a60c7c0430889f22548605e
MD5 93930288bfec2277ed03ca6f2935c692
BLAKE2b-256 414a381783f26df413dde4c70c734163d88ca0550a1361cb74a1c68f47550619

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