Skip to main content

sync 2 async

Project description

drawing

asyncify

Wheel Version py_versions Code style: black

TLDR: Sync 2 Async decorator

Install: pip install asyncify

Usage:

import asyncify

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


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


assert add(1, 2) == 3


@asyncify
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.11.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

asyncify-0.11.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file asyncify-0.11.0.tar.gz.

File metadata

  • Download URL: asyncify-0.11.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for asyncify-0.11.0.tar.gz
Algorithm Hash digest
SHA256 f51393871e38b89d4ee3732158425aa0fe6d2409c76104654d013c0f72cefc0f
MD5 769f05c9838bc3f180ad1a5b1750124b
BLAKE2b-256 7e928010679ab4739aeebbc91555faaf497cf8516e1b202fea51127684d8c402

See more details on using hashes here.

File details

Details for the file asyncify-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: asyncify-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for asyncify-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4c66d094ae96cd83f078b9f44fc6da9639fb0b3c4276888e3deb097761303a7
MD5 c54fc4dec97ebb69185503d70d0ea49b
BLAKE2b-256 c7b37c8fa5f3273a6f93dd5ea70de3adc35c1dc5e56b7c21717a8464826425a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page