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.10.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.10.0.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncify-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.3 kB
Release files / asyncify-0.10.0.tar.gz
| Download URL | asyncify-0.10.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
548f7bf14e418bc6b37fa5b1384d76a007c4f8704022c521951f081fdf3efead
|
|
BLAKE2b-256 checksum How to use checksums |
c075209486db365b22b36b4fcc12677b4d18fe6e7dce1c4a8e84a4dcd724a59a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.4 Windows/10
|
Release files / asyncify-0.10.0-py3-none-any.whl
| Download URL | asyncify-0.10.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e2bbf1f88ec8a2238b1ff2690c98c1710db967abdc50e51b64b4b22a03a38f3
|
|
BLAKE2b-256 checksum How to use checksums |
c1b553f9b33bc455f879f3a94ebd83c593e22f43f7ac5088166478f87aa1dc3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.4 Windows/10
|