Index: head/textproc/Makefile =================================================================== --- head/textproc/Makefile +++ head/textproc/Makefile @@ -1206,6 +1206,7 @@ SUBDIR += py-docutils SUBDIR += py-dsv SUBDIR += py-elasticsearch-py + SUBDIR += py-elasticsearch-dsl-py SUBDIR += py-elib.intl SUBDIR += py-empy SUBDIR += py-enchant Index: head/textproc/py-elasticsearch-dsl-py/Makefile =================================================================== --- head/textproc/py-elasticsearch-dsl-py/Makefile +++ head/textproc/py-elasticsearch-dsl-py/Makefile @@ -0,0 +1,23 @@ +# Created by: Dan Langille +# $FreeBSD$ + +PORTNAME= elasticsearch-dsl-py +PORTVERSION= 0.0.8 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dvl@FreeBSD.org +COMMENT= High level Python client for Elasticsearch + +LICENSE= APACHE20 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}elasticsearch-py>=1.3.0:${PORTSDIR}/textproc/py-elasticsearch-py + +USE_GITHUB= yes +GH_ACCOUNT= elastic + +USES= python:2 +USE_PYTHON= autoplist distutils + +.include Index: head/textproc/py-elasticsearch-dsl-py/distinfo =================================================================== --- head/textproc/py-elasticsearch-dsl-py/distinfo +++ head/textproc/py-elasticsearch-dsl-py/distinfo @@ -0,0 +1,2 @@ +SHA256 (elastic-elasticsearch-dsl-py-0.0.8_GH0.tar.gz) = b410fb6bc4372b9aa7b379bd441a4aaf61b338fbaba8cebbb1ce6e0251b21b37 +SIZE (elastic-elasticsearch-dsl-py-0.0.8_GH0.tar.gz) = 70117 Index: head/textproc/py-elasticsearch-dsl-py/pkg-descr =================================================================== --- head/textproc/py-elasticsearch-dsl-py/pkg-descr +++ head/textproc/py-elasticsearch-dsl-py/pkg-descr @@ -0,0 +1,17 @@ +Elasticsearch DSL is a high-level library whose aim is to help with writing +and running queries against Elasticsearch. It is built on top of the official +low-level client (elasticsearch-py). + +It provides a more convenient and idiomatic way to write and manipulate +queries. It stays close to the Elasticsearch JSON DSL, mirroring its terminology +and structure. It exposes the whole range of the DSL from Python either directly +using defined classes or a queryset-like expressions. + +It also provides an optional wrapper for working with documents as Python +objects: defining mappings, retrieving and saving documents, wrapping the +document data in user-defined classes. + +To use the other Elasticsearch APIs (eg. cluster health) just use the underlying +client. + +WWW: http://elasticsearch-dsl.readthedocs.org/en/latest/