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 details)
Built Distribution
File details
Details for the file appnope-0.1.0.tar.gz
.
File metadata
- Download URL: appnope-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b995ffe925347a2138d7ac0fe77155e4311a0ea6d6da4f5128fe4b3cbe5ed71 |
|
MD5 | 932fbaa73792c9b06754755a774dcac5 |
|
BLAKE2b-256 | 26340f3a5efac31f27fabce64645f8c609de9d925fe2915304d1a40f544cff0e |
File details
Details for the file appnope-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: appnope-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b26757dc6f79a3b7dc9fab95359328d5747fcb2409d331ea66d0272b90ab2a0 |
|
MD5 | a73064be99839b9534b4da47a16c9c46 |
|
BLAKE2b-256 | 87a97985e6a53402f294c8f0e8eff3151a83f1fb901fa92909bb3ff29b4d22af |