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.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for async_to_sync-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 862809f8ba5daf76167257cfe62932bfc5bf1f08818f81b1dc823c93b20a247e |
|
MD5 | 3aa324696a1d63917113abf28c5164a6 |
|
BLAKE2b-256 | 08c4bbfa0198f8831bcab3a418cce851dd98403ecd551994e352b30ed65ca7d6 |