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.12.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.12.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncify-0.12.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / asyncify-0.12.0.tar.gz
| Download URL | asyncify-0.12.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9be952edabe34cdd574feb6dd8db102968fa2a91db6f8932733fb148f73854ad
|
|
BLAKE2b-256 checksum How to use checksums |
36659a082a67d96a28a0c0a5bee0e088274b16ce8c0ad51263e6aad7351e87f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Release files / asyncify-0.12.0-py3-none-any.whl
| Download URL | asyncify-0.12.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
841b147175d263e65f9e1538a6427fb0cdbfb68d70bc99cfe1ff037061dfff45
|
|
BLAKE2b-256 checksum How to use checksums |
732ec78d3c4611af205b1653f6f4737609bfebf9848fd950baef6adb5c72d1f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|