معرفی شرکت ها


esq-1.0.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A python package that provides GraphQL API for Elasticsearch and makes it easier to query data without writing complex queries.
ویژگی مقدار
سیستم عامل -
نام فایل esq-1.0.3
نام esq
نسخه کتابخانه 1.0.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Vikash Bajaj
ایمیل نویسنده esq@vikashbajaj.com
آدرس صفحه اصلی https://github.com/scottydelta/esq
آدرس اینترنتی https://pypi.org/project/esq/
مجوز GNU General Public License v3
# esq [![Build Status](https://img.shields.io/pypi/v/esq.svg)](https://pypi.python.org/pypi/esq) [![[pypi]](https://github.com/scottydelta/esq/actions/workflows/python-publish.yml/badge.svg)](https://github.com/scottydelta/esq/actions/workflows/python-publish.yml) [![Documentation Status](https://readthedocs.org/projects/esq/badge/?version=latest)](https://esq.readthedocs.io/en/latest/?version=latest) [Install](#install) - [Init](#init) - [Usage](#usage) - [Documentation](#documentation) A python package that provides GraphQL API for Elasticsearch and makes it easier to query data without writing complex queries. ## Install pip install esq ## Init ```python >>> from esq import Esq >>> from elasticsearch import Elasticsearch # init your Elasticsearch client object here >>> ELASTICSEARCH_URI = "http://localhost:9200" >>> es_client = Elasticsearch([ELASTICSEARCH_URI]) # init your Esq object here >>> esq = Esq(es_client) # now you can start making queries ``` ## Usage ```python # to get aggregation on sentiment field on your twitter index, you can simply do: >>> sentiments = esq.get_aggr_data(index='twitter', data_type='keyword/text', #data_type is an enum('keyword/text', 'coordinates', 'timeseries') data_field='sentiment') >>> print(sentiments) [{'label': 'positive', 'value': 9}, {'label': 'neutral', 'value': 7}, {'label': 'negative', 'value': 1}] ``` ## Documentation [Read the full usage documentation here](https://esq.readthedocs.io/en/latest/full-usage.html?version=latest) # History #### 1.0.3 (10-10-2022) * Added full usage detailed documentation. #### 1.0.2 (04-09-2022) * Add Github Actions workflow for version bumping and release to PyPI. #### 1.0.1 (30-08-2022) * Fix Docs and add content README. #### 1.0.0 (30-08-2022) * First release on PyPI.


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

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


نحوه نصب


نصب پکیج whl esq-1.0.3:

    pip install esq-1.0.3.whl


نصب پکیج tar.gz esq-1.0.3:

    pip install esq-1.0.3.tar.gz