a2s


توضیحات

Convert python async function to a sync function for calling from a normal function in an existing event loop
ویژگی مقدار
سیستم عامل OS Independent
نام فایل a2s-1.0.1
نام a2s
نسخه کتابخانه 1.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده plter
ایمیل نویسنده xtiqin@163.com
آدرس صفحه اصلی https://github.com/plter/a2s
آدرس اینترنتی https://pypi.org/project/a2s/
مجوز -
# a2s Python async function to sync function, Convert python async function to a sync function for calling from a normal function in an existing event loop # Usage ```python import asyncio from a2s import sync @sync async def an_async_func(): print("Hello World") def a_sync_func(): an_async_func() pass async def main(): a_sync_func() pass if __name__ == '__main__': asyncio.run(main()) ```


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl a2s-1.0.1:

    pip install a2s.whl


نصب پکیج tar.gz a2s-1.0.1:

    pip install a2s.tar.gz