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.1.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.1.tar.gz.
File metadata
- Download URL: anysync-0.4.1.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e101f9e4fc8ed078146009572030bc108823703d154a6196f928c5f3e5594226
|
|
| MD5 |
803fd241fb88befa1d294e8edfb53858
|
|
| BLAKE2b-256 |
09709b9f1d53c5bf5bc70d54aa827c4639699382abc1e0c6e1942d0786e73136
|
File details
Details for the file anysync-0.4.1-py3-none-any.whl.
File metadata
- Download URL: anysync-0.4.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7df7d93a7815d2f93b84d101793a05e75e00ce6c8d0ee08cfe16012dee885199
|
|
| MD5 |
2614e09153469c921fc7fd9ed601d7e1
|
|
| BLAKE2b-256 |
d8440e91105867e434df37a2edcd035281307a4c6d7118f4ce3a485e16785c94
|