Skip to main content

Dependency injection without the boilerplate.

Project description

AnySync

PyPI - Version PyPI - Python 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-0.4.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

anysync-0.4.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anysync-0.4.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.18

File hashes

Hashes for anysync-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e6bb136ce4b9a531663c842a5439603db3a2ce25bb820f052c771acd85c0b8f6
MD5 127bfdf234e611765a50e8576974864c
BLAKE2b-256 81d28c4b48ed76512f0847fe02065783c74cb558c2ca81b24001eaf1db87fd27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anysync-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.18

File hashes

Hashes for anysync-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d40251b4e800f7e9a5db7c9806ff0346d77d94441aa20351d8efc09febef137f
MD5 ca7b03ba6727a96f262b02e087517a6b
BLAKE2b-256 45ac71caa66b85868dc003a682df82047fa519c3c41d0ff01607e9971b8d4acc

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