Dependency injection without the boilerplate.
Project description
AnySync
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
Release history Release notifications | RSS feed
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.3.tar.gz
(10.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anysync-0.4.3.tar.gz.
File metadata
- Download URL: anysync-0.4.3.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64891dec303278a21f659d40576f7fc807bd11fe12ba795e007a9952ca5fd0cb
|
|
| MD5 |
0cbefcfa0447e3a9641349ed476502f9
|
|
| BLAKE2b-256 |
3106b1bf2d25489a4d36b3e8ea094b3058ac1ee6880474c52a0cf12495fadf1c
|
File details
Details for the file anysync-0.4.3-py3-none-any.whl.
File metadata
- Download URL: anysync-0.4.3-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f82771549191848f0b956a5ee10cb156a05524d8a20f86039ab9d9e59f3ae22
|
|
| MD5 |
f3bf2fdc2b6f222cd63566051542d749
|
|
| BLAKE2b-256 |
da6e873a9ae1293b1ad265fdd9b3c7dc368a742893142e2a1e45bafc3800fbd0
|