Metadata-Version: 2.5
Name: appnope
Version: 0.2.0
Summary: Disable App Nap on macOS >= 10.9
Project-URL: Source, https://github.com/minrk/appnope
Author-email: Min Ragan-Kelley <benjaminrk@gmail.com>
License-Expression: BSD-2-Clause
License-File: LICENSE
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# `appnope`

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

To disable App Nap for the current process:

```python
import appnope
appnope.nope()
```

To reenable, for some reason:

```python
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
