asyncify
TLDR: Sync 2 Async decorator
Install: pip install asyncify
Usage:
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
Metadata
Release files for asyncify 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asyncify-0.9.1.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncify-0.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.4 kB
Release files / asyncify-0.9.1.tar.gz
| Download URL | asyncify-0.9.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa23088f016a67a76eeb14e6bd0db291d513ef559f5e56aa7a8103d24ba3a947
|
|
BLAKE2b-256 checksum How to use checksums |
68c917678365df01e636a6fbf53cf521e13373eb46bbd5af94cec5b76b938cb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.7 Windows/10
|
Release files / asyncify-0.9.1-py3-none-any.whl
| Download URL | asyncify-0.9.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0387ffcac52bb38978c420ef7e6ba8d6d4aaad5112eb1ebbe331e421ed080c2c
|
|
BLAKE2b-256 checksum How to use checksums |
aaf54e954a5a4aca3c3f4c934f2a99938a65fc4ca8b379e8d094a5973cdee58f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.7 Windows/10
|