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.11.0
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.11.0.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncify-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.3 kB
Release files / asyncify-0.11.0.tar.gz
| Download URL | asyncify-0.11.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f51393871e38b89d4ee3732158425aa0fe6d2409c76104654d013c0f72cefc0f
|
|
BLAKE2b-256 checksum How to use checksums |
7e928010679ab4739aeebbc91555faaf497cf8516e1b202fea51127684d8c402
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.9
|
Release files / asyncify-0.11.0-py3-none-any.whl
| Download URL | asyncify-0.11.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4c66d094ae96cd83f078b9f44fc6da9639fb0b3c4276888e3deb097761303a7
|
|
BLAKE2b-256 checksum How to use checksums |
c7b37c8fa5f3273a6f93dd5ea70de3adc35c1dc5e56b7c21717a8464826425a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.9
|