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.2
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.2.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncify-0.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / asyncify-0.9.2.tar.gz
| Download URL | asyncify-0.9.2.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f06016a5d805354505e98e9c009595cba7905ceb767ed7cd61bf60f2341d896
|
|
BLAKE2b-256 checksum How to use checksums |
237763e130b6572add8e9d368e34c23595ab87ba16c8288bd2b378177e5da2b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.2 Windows/10
|
Release files / asyncify-0.9.2-py3-none-any.whl
| Download URL | asyncify-0.9.2-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee7efe8ecc11f348d4f25d4d1c5fb2f56a187aaa907aea3608106359728a2cdd
|
|
BLAKE2b-256 checksum How to use checksums |
281ba22396ebd97db9c4b11af4075944fd825e7967e828789550952e705e9b42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.11.2 Windows/10
|