Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - 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.

Release History

Release History

This version
History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
syncify-0.1.tar.gz (1.8 kB) Copy SHA256 Checksum SHA256 Source Nov 18, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting