aiogrn-0.0.1


توضیحات

asyncio Groonga Client library
ویژگی مقدار
سیستم عامل -
نام فایل aiogrn-0.0.1
نام aiogrn
نسخه کتابخانه 0.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Hideo Hattori
ایمیل نویسنده hhatto.jp@gmail.com
آدرس صفحه اصلی https://github.com/hhatto/aiogrn
آدرس اینترنتی https://pypi.org/project/aiogrn/
مجوز MIT License
aiogrn ====== asyncio Groonga_ Client. .. _Groonga: http://groonga.org/ Requirements ------------ * Python3.5+ Usage ----- GQTP ~~~~ .. code-block:: python import asyncio from aiogrn.client import GroongaClient async def fetch(grn, cmd, **kwargs): ret = await grn.call(cmd, **kwargs) print(ret) loop = asyncio.get_event_loop() grn = GroongaClient(host='localhost', port=10043, protocol='gqtp', loop=loop) tasks = [ asyncio.ensure_future(fetch(grn, 'status')), asyncio.ensure_future(fetch(grn, 'select', table='Foo')), asyncio.ensure_future(fetch(grn, 'status'))] loop.run_until_complete(asyncio.gather(*tasks)) loop.close() HTTP ~~~~ .. code-block:: python import asyncio from aiogrn.client import GroongaClient async def fetch(grn, cmd, **kwargs): ret = await grn.call(cmd, **kwargs) print(ret) loop = asyncio.get_event_loop() grn = GroongaClient(loop=loop) tasks = [ asyncio.ensure_future(fetch(grn, 'status')), asyncio.ensure_future(fetch(grn, 'select', table='Foo')), asyncio.ensure_future(fetch(grn, 'status'))] loop.run_until_complete(asyncio.gather(*tasks)) loop.close()


نحوه نصب


نصب پکیج whl aiogrn-0.0.1:

    pip install aiogrn-0.0.1.whl


نصب پکیج tar.gz aiogrn-0.0.1:

    pip install aiogrn-0.0.1.tar.gz