Disable App Nap on OS X 10.9
Project description
# `appnope`
Simple package for disabling App Nap on OS X 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, just:
pip install appnope
or
pip install -e git+https://github.com/minrk/appnope#egg=appnope
Simple package for disabling App Nap on OS X 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, just:
pip install appnope
or
pip install -e git+https://github.com/minrk/appnope#egg=appnope
Project details
Release history Release notifications | RSS feed
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.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for appnope-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b26757dc6f79a3b7dc9fab95359328d5747fcb2409d331ea66d0272b90ab2a0 |
|
MD5 | a73064be99839b9534b4da47a16c9c46 |
|
BLAKE2b-256 | 87a97985e6a53402f294c8f0e8eff3151a83f1fb901fa92909bb3ff29b4d22af |