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-1.0.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-1.0.0.tar.gz.
File metadata
- Download URL: anysync-1.0.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 |
ffdb2fad8f9d741eb8b6c611b02688b3d8cdd6645fdc9500c76ae73a7a904024
|
|
| MD5 |
5385ed9fa254c4d3466f7d89b04ef6fa
|
|
| BLAKE2b-256 |
4cef64b7260e2b86674e346e33199f7a27cff073c75bb42b409949e79e7cc2cc
|
File details
Details for the file anysync-1.0.0-py3-none-any.whl.
File metadata
- Download URL: anysync-1.0.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 |
be73a1c0d699b2a225d9c0d8786945256e06c4f2e52f88f870e0b0a3e29e7a8d
|
|
| MD5 |
b3398f1551ccdef0d01b148f04dd545e
|
|
| BLAKE2b-256 |
d614229bcc77268799e769c3a55f95449b4a3e048d82b89c4d90646cd12bc57d
|