| info: | elasticsearch-py wrapper for asyncio | 
|---|
pip install aioelasticsearchimport asyncio
from aioelasticsearch import Elasticsearch
async def go():
    es = Elasticsearch()
    print(await es.search())
    await es.close()
loop = asyncio.get_event_loop()
loop.run_until_complete(go())
loop.close()Asynchronous scroll
import asyncio
from aioelasticsearch import Elasticsearch
from aioelasticsearch.helpers import Scan
async def go():
    async with Elasticsearch() as es:
        async with Scan(
            es,
            index='index',
            doc_type='doc_type',
            query={},
        ) as scan:
            print(scan.total)
            async for doc in scan:
                print(doc['_source'])
loop = asyncio.get_event_loop()
loop.run_until_complete(go())
loop.close()The library was donated by Ocean S.A.
Thanks to the company for contribution.