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.4.tar.gz
(10.3 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.4.tar.gz.
File metadata
- Download URL: anysync-0.4.4.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3baba928beae7dfc362c64310bdd976578de295c7141d666470ef531bdf08149
|
|
| MD5 |
41259b8ed4d9f8e24ef1d124e504b528
|
|
| BLAKE2b-256 |
8890fde8a7814069bcab0431d554f0b55c8b6dbec13074f42a7c6fb855b184f3
|
File details
Details for the file anysync-0.4.4-py3-none-any.whl.
File metadata
- Download URL: anysync-0.4.4-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
713ea9344f2210f6fd4b2e9cb2ef45589ddb989dd5b7e645e6bfbc10549b1b53
|
|
| MD5 |
cdf869020aced57c1c66c8ebc951e4ee
|
|
| BLAKE2b-256 |
4ed10dd7a3b368b6595e516510c04c3e5b6849a406add66ec04d647a53808c3c
|