blob: 76ef35d8e784c96839d1d58b1baf6072ed7c3a68 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
Metadata-Version: 2.1
Name: appnope
Version: 0.1.4
Summary: Disable App Nap on macOS >= 10.9
Home-page: http://github.com/minrk/appnope
Author: Min Ragan-Kelley
Author-email: benjaminrk@gmail.com
License: BSD
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
# `appnope`
Simple package for disabling App Nap on macOS >= 10.9,
which can be problematic.
To disable App Nap:
```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
|