GitXplorerGitXplorer
r

anysync

public
5 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
712f2cc1245dd3b97f98a034fa597c9b55c18505

slightly better test for re-entrant calls (#13)

rrmorshea committed 4 months ago
Verified
824aeafae2dc12a3d96d8e92c3cf6bd117864f62

v0.3.1 version bump (#12)

rrmorshea committed 4 months ago
Verified
537adaa7eef04c4159accc2a65aa53170b3d3f80

Imporove iterator context var handling (#11)

rrmorshea committed 4 months ago
Verified
13d99295e5556cc1127fa8c1da33de0446aca4a9

Update README.md (#8)

rrmorshea committed 4 months ago
Verified
f0136e632af8f1ce099a0702c3c087878a83ad1d

Update README.md (#9)

rrmorshea committed 4 months ago
Verified
e9d830d419df04f0580be733ee04218d94360cd6

Update README.md (#7)

rrmorshea committed 4 months ago

README

The README file for this repository.

AnySync

PyPI - Version License: MIT

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.