Convert async coroutines to normal python functions
Project description
Convert async coroutine functions to normal ones.
Installation
$ pip install async_to_sync
Usage
import async_to_sync as sync
sync_object = sync.methods(async_class())
sync_function = sync.function(async_class().method)
sync_function = sync.coroutine(async_class().method())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
async_to_sync-0.2.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for async_to_sync-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b6f86a8fbbc38f2d833e8321f66e5b9b7d95e2951dfd0857367d5ea2774fa6e |
|
MD5 | 0dacf1e1562462125c31dad31e2289de |
|
BLAKE2b-256 | 55a0c65b6a2a12face42c02dd92839f00cf5017650f49dee1ac9a1c2631f60a4 |