Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Wrap your asynchronous functions so they behave like synchronous function.

Project description

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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for syncify, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size syncify-0.1.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page