aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authordvl <dvl@FreeBSD.org>2017-03-23 00:07:53 +0800
committerdvl <dvl@FreeBSD.org>2017-03-23 00:07:53 +0800
commit6cf49d4043dae282d1ca9a1cac9531e75da9bdab (patch)
tree55f2afd1ea138e836246ce24d1a5431e1ac89ddb /textproc
parent51a89280ab9433b13d74922a20fee918f935af10 (diff)
downloadfreebsd-ports-gnome-6cf49d4043dae282d1ca9a1cac9531e75da9bdab.tar.gz
freebsd-ports-gnome-6cf49d4043dae282d1ca9a1cac9531e75da9bdab.tar.zst
freebsd-ports-gnome-6cf49d4043dae282d1ca9a1cac9531e75da9bdab.zip
Add py-elasticsearch2-dsl-py, a high level Python client for Elasticsearch
Based on svn cp of textproc/py-elasticsearch-dsl-py but for ElasticSearch2
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-elasticsearch2-dsl-py/Makefile25
-rw-r--r--textproc/py-elasticsearch2-dsl-py/distinfo3
-rw-r--r--textproc/py-elasticsearch2-dsl-py/pkg-descr17
4 files changed, 46 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 93243ac386a5..9ac841488043 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1258,6 +1258,7 @@
SUBDIR += py-elasticsearch-curator-py
SUBDIR += py-elasticsearch-dsl-py
SUBDIR += py-elasticsearch-py
+ SUBDIR += py-elasticsearch2-dsl-py
SUBDIR += py-elib.intl
SUBDIR += py-empy
SUBDIR += py-enchant
diff --git a/textproc/py-elasticsearch2-dsl-py/Makefile b/textproc/py-elasticsearch2-dsl-py/Makefile
new file mode 100644
index 000000000000..4e78d2d0d648
--- /dev/null
+++ b/textproc/py-elasticsearch2-dsl-py/Makefile
@@ -0,0 +1,25 @@
+# Created by: Dan Langille <dvl@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= py-elasticsearch2-dsl-py
+PORTVERSION= 2.1.0
+CATEGORIES= textproc python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= elasticsearch-dsl-py-${PORTVERSION}
+# fetch https://codeload.github.com/elastic/elasticsearch-dsl-py/tar.gz/2.1.0?dummy=/elasticsearch-dsl-py-2.1.0_GH0.tar.gz
+
+MAINTAINER= dvl@FreeBSD.org
+COMMENT= High level Python client for Elasticsearch
+
+LICENSE= APACHE20
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}elasticsearch-py>=1.3.0:textproc/py-elasticsearch-py
+
+USE_GITHUB= yes
+GH_ACCOUNT= elastic
+GH_PROJECT= elasticsearch-dsl-py
+
+USES= python:2
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/textproc/py-elasticsearch2-dsl-py/distinfo b/textproc/py-elasticsearch2-dsl-py/distinfo
new file mode 100644
index 000000000000..daf76b9e080a
--- /dev/null
+++ b/textproc/py-elasticsearch2-dsl-py/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1490198034
+SHA256 (elasticsearch-dsl-py-2.1.0_GH0.tar.gz) = 07cb92fd18bd88a4662fbb13884a928ba178d767204493d7b04df57f00f2d620
+SIZE (elasticsearch-dsl-py-2.1.0_GH0.tar.gz) = 76057
diff --git a/textproc/py-elasticsearch2-dsl-py/pkg-descr b/textproc/py-elasticsearch2-dsl-py/pkg-descr
new file mode 100644
index 000000000000..89b74210dcd5
--- /dev/null
+++ b/textproc/py-elasticsearch2-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/