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.async_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.1.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for async_to_sync-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0caa61aee6918ef3aca3766fc873186ab458a812610679bd1284759fb9d633cb |
|
MD5 | a7d7ec3bd361210c840f37e935db0b1f |
|
BLAKE2b-256 | 938f0e66c4c48f119fa3412476d04baa49d19229b4ed7f79ec4675b34e1829cb |