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.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for async_to_sync-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7429f8c872a266252e9824b4b3c87a46937af1b679bf2dad52e8833b2ec37f8a |
|
MD5 | 604713dc5c827bd7d6094c3ceac4cf9b |
|
BLAKE2b-256 | 7db71fa788b4300c3beefaf6e7f41ee345dc6271122b0cd9e489bc46da2986ad |