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.2.tar.gz
(10.1 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.2.tar.gz.
File metadata
- Download URL: anysync-0.4.2.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac184e15bf4805db52be72dc17735671ae0c60c79c27449392fd75503ea447ae
|
|
| MD5 |
367fa0a000855332cf51b4abb3798a0f
|
|
| BLAKE2b-256 |
32c3effba7446956f82ffa7388b32714cf0aef6dde03515baeb545889721fc8c
|
File details
Details for the file anysync-0.4.2-py3-none-any.whl.
File metadata
- Download URL: anysync-0.4.2-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22b937593762b28ca3045a28e1c05283d2089e36cc6768efc163e8a280a2500e
|
|
| MD5 |
47c7899e867863983e760af3eee5737e
|
|
| BLAKE2b-256 |
a02b69225ae2da20ff231fb0649045e9b127094ee4721c95400d2ecb3cb6a2c8
|