asyncify


Nameasyncify JSON
Version 0.10.0 PyPI version JSON
download
home_pagehttps://github.com/dynamic-graphics-inc/dgpy-libs/tree/main/libs/asyncify
Summarysync 2 async
upload_time2024-02-01 22:17:39
maintainer
docs_urlNone
authorjesse
requires_python>=3.8,<4.0
licenseMIT
keywords async asyncify asyncio dgpy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <a href="https://github.com/dynamic-graphics-inc/dgpy-libs">
<img align="right" src="https://github.com/dynamic-graphics-inc/dgpy-libs/blob/main/docs/images/dgpy_banner.svg?raw=true" alt="drawing" height="120" width="300"/>
</a>

# asyncify

[![Wheel](https://img.shields.io/pypi/wheel/asyncify.svg)](https://img.shields.io/pypi/wheel/asyncify.svg)
[![Version](https://img.shields.io/pypi/v/asyncify.svg)](https://img.shields.io/pypi/v/asyncify.svg)
[![py_versions](https://img.shields.io/pypi/pyversions/asyncify.svg)](https://img.shields.io/pypi/pyversions/asyncify.svg)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

**TLDR:** Sync 2 Async decorator

**Install:** `pip install asyncify`

**Usage:**

```python
import asyncify

# OR
from asyncify import asyncify
from asyncify import run  # asyncio.run polyfill for python36


def add(a, b):
    return a + b


assert add(1, 2) == 3


@asyncify
def add_async(a, b):
    return a + b


res = await add_async(1, 2)
assert res == 3
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dynamic-graphics-inc/dgpy-libs/tree/main/libs/asyncify",
    "name": "asyncify",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "async,asyncify,asyncio,dgpy",
    "author": "jesse",
    "author_email": "jesse@dgi.com",
    "download_url": "https://files.pythonhosted.org/packages/c0/75/209486db365b22b36b4fcc12677b4d18fe6e7dce1c4a8e84a4dcd724a59a/asyncify-0.10.0.tar.gz",
    "platform": null,
    "description": "<a href=\"https://github.com/dynamic-graphics-inc/dgpy-libs\">\n<img align=\"right\" src=\"https://github.com/dynamic-graphics-inc/dgpy-libs/blob/main/docs/images/dgpy_banner.svg?raw=true\" alt=\"drawing\" height=\"120\" width=\"300\"/>\n</a>\n\n# asyncify\n\n[![Wheel](https://img.shields.io/pypi/wheel/asyncify.svg)](https://img.shields.io/pypi/wheel/asyncify.svg)\n[![Version](https://img.shields.io/pypi/v/asyncify.svg)](https://img.shields.io/pypi/v/asyncify.svg)\n[![py_versions](https://img.shields.io/pypi/pyversions/asyncify.svg)](https://img.shields.io/pypi/pyversions/asyncify.svg)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n**TLDR:** Sync 2 Async decorator\n\n**Install:** `pip install asyncify`\n\n**Usage:**\n\n```python\nimport asyncify\n\n# OR\nfrom asyncify import asyncify\nfrom asyncify import run  # asyncio.run polyfill for python36\n\n\ndef add(a, b):\n    return a + b\n\n\nassert add(1, 2) == 3\n\n\n@asyncify\ndef add_async(a, b):\n    return a + b\n\n\nres = await add_async(1, 2)\nassert res == 3\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "sync 2 async",
    "version": "0.10.0",
    "project_urls": {
        "Homepage": "https://github.com/dynamic-graphics-inc/dgpy-libs/tree/main/libs/asyncify",
        "Repository": "https://github.com/dynamic-graphics-inc/dgpy-libs"
    },
    "split_keywords": [
        "async",
        "asyncify",
        "asyncio",
        "dgpy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c1b553f9b33bc455f879f3a94ebd83c593e22f43f7ac5088166478f87aa1dc3e",
                "md5": "19d8a857cecc1dde96ee5b65c075e028",
                "sha256": "9e2bbf1f88ec8a2238b1ff2690c98c1710db967abdc50e51b64b4b22a03a38f3"
            },
            "downloads": -1,
            "filename": "asyncify-0.10.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "19d8a857cecc1dde96ee5b65c075e028",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 7974,
            "upload_time": "2024-02-01T22:17:37",
            "upload_time_iso_8601": "2024-02-01T22:17:37.722884Z",
            "url": "https://files.pythonhosted.org/packages/c1/b5/53f9b33bc455f879f3a94ebd83c593e22f43f7ac5088166478f87aa1dc3e/asyncify-0.10.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c075209486db365b22b36b4fcc12677b4d18fe6e7dce1c4a8e84a4dcd724a59a",
                "md5": "feb638e995bd77b9e0253ab5671b9da3",
                "sha256": "548f7bf14e418bc6b37fa5b1384d76a007c4f8704022c521951f081fdf3efead"
            },
            "downloads": -1,
            "filename": "asyncify-0.10.0.tar.gz",
            "has_sig": false,
            "md5_digest": "feb638e995bd77b9e0253ab5671b9da3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 6313,
            "upload_time": "2024-02-01T22:17:39",
            "upload_time_iso_8601": "2024-02-01T22:17:39.351227Z",
            "url": "https://files.pythonhosted.org/packages/c0/75/209486db365b22b36b4fcc12677b4d18fe6e7dce1c4a8e84a4dcd724a59a/asyncify-0.10.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-01 22:17:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dynamic-graphics-inc",
    "github_project": "dgpy-libs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "asyncify"
}
        
Elapsed time: 0.16602s