You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
Metadata-Version: 2.1
|
|
Name: appnope
|
|
Version: 0.1.3
|
|
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
|
|
Platform: UNKNOWN
|
|
Classifier: License :: OSI Approved :: BSD License
|
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
Classifier: Programming Language :: Python :: 2
|
|
Classifier: Programming Language :: Python :: 2.6
|
|
Classifier: Programming Language :: Python :: 2.7
|
|
Classifier: Programming Language :: Python :: 3
|
|
Classifier: Programming Language :: Python :: 3.2
|
|
Classifier: Programming Language :: Python :: 3.3
|
|
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
|
|
|
|
|