Skip to main content

appnope

Simple package for disabling App Nap on macOS >= 10.9, which can be problematic.

To disable App Nap for the current process:

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

appnope-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

appnope-1.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: appnope-1.0.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for appnope-1.0.0.tar.gz
Algorithm Hash digest
SHA256 685db59cb6043c3c2e528adc0b3bce3a5f8d09bcf7492c6ea650d1b7421f3c49
MD5 f439fe5b423ee47f1a75a715f65e9a27
BLAKE2b-256 11f7a82489c2b6ebe32d3e2831895ae19c77861f0eadf3bb16034484d965dbb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for appnope-1.0.0.tar.gz:

Publisher: release.yaml on minrk/appnope

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file appnope-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: appnope-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for appnope-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6fe0c04218aab65c54c4ff81638cdbf848d89f5653b74d68638a137f200dd16e
MD5 d6b0cb01bcadc78bbfe1086d1628ac2f
BLAKE2b-256 46c76b687cb0f83d2a51017d47953f2ee430ffad6fec2a8ebc964e0718a33eb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for appnope-1.0.0-py3-none-any.whl:

Publisher: release.yaml on minrk/appnope

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.2.0

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page