Skip to main content

A lightweight library for allowing async functions to be called in a synchronous manner.

Project description

AnySync

PyPI - Version License: MIT

A lightweight library for allowing async functions to be called in a synchronous manner.

import asyncio
from anysync import anysync


@anysync
async def f():
    return 42


assert f().run() == 42


async def main():
    assert await f() == 42


asyncio.run(main())

Just pip install anysync and you're good to go!

Documentation

For more information, please see the documentation.

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

anysync-1.0.2.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

anysync-1.0.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file anysync-1.0.2.tar.gz.

File metadata

  • Download URL: anysync-1.0.2.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for anysync-1.0.2.tar.gz
Algorithm Hash digest
SHA256 cea6b31e67daa2e1773759ca2df5cfc0325512c9fe459d24212e3a359f28e396
MD5 4e1d90c9a8ae28e1fdb42f61f305cf93
BLAKE2b-256 e072917516c4caf43e5596da70f22af42ee75fd170d16530dd10a73f30f5802f

See more details on using hashes here.

File details

Details for the file anysync-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: anysync-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for anysync-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 67cb4a00315e50ec8feba151602c5dc307d4c4a0508d24d45ac6e6c77c535889
MD5 30c795383064cfd24d152263919b283c
BLAKE2b-256 329defb235c6526f5c2c83bae37b3ec13b62ee39c56d55a75fe5968846affca3

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