aioelasticsearch-0.7.0
توضیحات
elasticsearch-py wrapper for asyncio
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | aioelasticsearch-0.7.0 |
| نام | aioelasticsearch |
| نسخه کتابخانه | 0.7.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | wikibusiness |
| ایمیل نویسنده | osf@wikibusiness.org |
| آدرس صفحه اصلی | https://github.com/aio-libs/aioelasticsearch |
| آدرس اینترنتی | https://pypi.org/project/aioelasticsearch/ |
| مجوز | - |
aioelasticsearch
================
:info: elasticsearch-py wrapper for asyncio
.. image:: https://img.shields.io/travis/aio-libs/aioelasticsearch.svg
:target: https://travis-ci.org/aio-libs/aioelasticsearch
.. image:: https://img.shields.io/pypi/v/aioelasticsearch.svg
:target: https://pypi.python.org/pypi/aioelasticsearch
.. image:: https://codecov.io/gh/aio-libs/aioelasticsearch/branch/master/graph/badge.svg
:target: https://codecov.io/gh/aio-libs/aioelasticsearch
Installation
------------
.. code-block:: shell
pip install aioelasticsearch
Usage
-----
.. code-block:: python
import 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()
Features
--------
Asynchronous `scroll <https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html>`_
.. code-block:: python
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()
Thanks
------
The library was donated by `Ocean S.A. <https://ocean.io/>`_
Thanks to the company for contribution.
نیازمندی
| مقدار | نام |
|---|---|
| >=7.0.0 | elasticsearch |
| <4.0.0,>=3.5.0 | aiohttp |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5.3 | Python |
نحوه نصب
نصب پکیج whl aioelasticsearch-0.7.0:
pip install aioelasticsearch-0.7.0.whl
نصب پکیج tar.gz aioelasticsearch-0.7.0:
pip install aioelasticsearch-0.7.0.tar.gz