Skip to main content

sync 2 async

Project description



Wheel Version py_versions Code style: black

TLDR: Sync 2 Async decorator

Install: pip install asyncify


import asyncify
# OR
from asyncify import asyncify
from asyncify import run  # polyfill for python36

def add(a, b):
    return a + b

assert add(1, 2) == 3

def add_async(a, b):
    return a + b

res = await add_async(1, 2)
assert res == 3

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

asyncify-0.9.1.tar.gz (6.2 kB view hashes)

Uploaded source

Built Distribution

asyncify-0.9.1-py3-none-any.whl (7.3 kB view hashes)

Uploaded py3

Supported by

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