asyncio Groonga Client.
Requirements
Python3.5+
Usage
GQTP
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
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()
Release files for aiogrn 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiogrn-0.0.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiogrn-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 7.3 kB
Release files / aiogrn-0.0.1.tar.gz
| Download URL | aiogrn-0.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7a28adcf423f7e6f18a87ecf0a2b7cf5861a1136be2e1adb11e3bbfe8fc21ea
|
|
BLAKE2b-256 checksum How to use checksums |
1775da60c5155df0ec2e736eb65e0eddcadf01c2f40a649510d4ebbe2fab4023
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / aiogrn-0.0.1-py2.py3-none-any.whl
| Download URL | aiogrn-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
61a8ae0ba54105c11fdcb1b448afdbcf1e1d11887a0f3f8e61b10b2605d216d6
|
|
BLAKE2b-256 checksum How to use checksums |
fe2ce2bf5e83d38945947ccbbe83b19beb1575c89bec2abd0c5213237505c69c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |