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.5.0.tar.gz
(10.6 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.5.0.tar.gz.
File metadata
- Download URL: anysync-0.5.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5dfbc333d1584c55a6a250d257eb6ce4f6eb89c421bb111dab44136dccd11e2
|
|
| MD5 |
52a8889e1b4769f2ecc2ab02cbb92ff4
|
|
| BLAKE2b-256 |
5456e18b05c101c3ba29ff1ca485ce1ba5d605925e4949b88203f39569d58b33
|
File details
Details for the file anysync-0.5.0-py3-none-any.whl.
File metadata
- Download URL: anysync-0.5.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cf8dbb6435de257a0ee75f2517d78e6ad7da696337c58bb5a47fcd986d34b43
|
|
| MD5 |
4c490486705034533298f18e7a30bf5b
|
|
| BLAKE2b-256 |
30f111059ca9e3a14f9da017e1f606cee4e01645117353ea0ba77ac1aad9fdca
|