appnope


Nameappnope JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttp://github.com/minrk/appnope
SummaryDisable App Nap on macOS >= 10.9
upload_time2024-02-06 09:43:11
maintainer
docs_urlNone
authorMin Ragan-Kelley
requires_python>=3.6
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # `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

            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/minrk/appnope",
    "name": "appnope",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Min Ragan-Kelley",
    "author_email": "benjaminrk@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/35/5d/752690df9ef5b76e169e68d6a129fa6d08a7100ca7f754c89495db3c6019/appnope-0.1.4.tar.gz",
    "platform": null,
    "description": "# `appnope`\n\nSimple package for disabling App Nap on macOS >= 10.9,\nwhich can be problematic.\n\nTo disable App Nap:\n\n```python\nimport appnope\nappnope.nope()\n```\n\nTo reenable, for some reason:\n\n```python\nappnope.nap()\n```\n\nor to only disable App Nap for a particular block:\n\n```\nwith appnope.nope_scope():\n    do_important_stuff()\n```\n\nIt uses ctypes to wrap a `[NSProcessInfo beginActivityWithOptions]` call to disable App Nap.\n\nTo install:\n\n    pip install appnope\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Disable App Nap on macOS >= 10.9",
    "version": "0.1.4",
    "project_urls": {
        "Homepage": "http://github.com/minrk/appnope"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "81295ecc3a15d5a33e31b26c11426c45c501e439cb865d0bff96315d86443b78",
                "md5": "fce1c130bea358b149830d18dc7c0607",
                "sha256": "502575ee11cd7a28c0205f379b525beefebab9d161b7c964670864014ed7213c"
            },
            "downloads": -1,
            "filename": "appnope-0.1.4-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fce1c130bea358b149830d18dc7c0607",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6",
            "size": 4321,
            "upload_time": "2024-02-06T09:43:09",
            "upload_time_iso_8601": "2024-02-06T09:43:09.663884Z",
            "url": "https://files.pythonhosted.org/packages/81/29/5ecc3a15d5a33e31b26c11426c45c501e439cb865d0bff96315d86443b78/appnope-0.1.4-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "355d752690df9ef5b76e169e68d6a129fa6d08a7100ca7f754c89495db3c6019",
                "md5": "98005ca7b68c7b483dfbf029993e4f12",
                "sha256": "1de3860566df9caf38f01f86f65e0e13e379af54f9e4bee1e66b48f2efffd1ee"
            },
            "downloads": -1,
            "filename": "appnope-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "98005ca7b68c7b483dfbf029993e4f12",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4170,
            "upload_time": "2024-02-06T09:43:11",
            "upload_time_iso_8601": "2024-02-06T09:43:11.258851Z",
            "url": "https://files.pythonhosted.org/packages/35/5d/752690df9ef5b76e169e68d6a129fa6d08a7100ca7f754c89495db3c6019/appnope-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-06 09:43:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "minrk",
    "github_project": "appnope",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "appnope"
}
        
Elapsed time: 0.20537s