Skip to main content

sync 2 async

Project description

drawing

asyncify

Wheel Version py_versions Ruff

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.12.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asyncify-0.12.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for asyncify-0.12.1.tar.gz
Algorithm Hash digest
SHA256 222cea6321b1fec8ffd4c8744611c230ca77cb078a18fd1274a461a77b3d7ed0
MD5 625045d770d1d100c24966b63ec1e303
BLAKE2b-256 68a80ecc62b031ab11378ae012d7868ed65c105fd600e21f5fa135d62d2e867d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for asyncify-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a015a2670674eb3814239c838f8c3dbe4e8724b706044a363943f1d45a85d77
MD5 4d1cdebeb4c21eb1054bc90d6c9b5e32
BLAKE2b-256 481b36cd51f4db7ba530f4d7f5a4c7707d047daa7822861496fe05ab27e0bf91

See more details on using hashes here.

Supported by

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