This package is meant for wrapping asynchronous functions so that they behave like synchronous functions. This package is very useful when scripting.
Getting Started
pip install syncify
Usage
Suppose you have an asynchronous function called asyncFunction that has a keyword arguement, 'callback' for the callback function. You can run it synchronously like this:
from syncify import syncify results syncify(asyncFunction, kw='callback')(arguments)
They keyword, kw is set to 'callback' by default so that can be left off, but I left it there in case someone has a different callback keyword.
Release files for syncify 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| syncify-0.1.tar.gz | 1.8 kB | Details |
Release files / syncify-0.1.tar.gz
| Download URL | syncify-0.1.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f5a6f00272ef7c8f39abec2ca7719aa68eaedd6caac7c7b91b8cdcb362a5249
|
|
BLAKE2b-256 checksum How to use checksums |
3a5f335fc2be0f6e7e81486673d9086aaa98759864566e01a7db4a7c82bcc3cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |