Tornado HTTP client for Elasticsearch
Project description
Tornado Elasticsearch Client
===========================
Tornado http client for Elasticsearch. Its goal is to provide common
ground for all Elasticsearch-related code in tornado and provide a
similar api to the official elasticsearch python client (elasticsearch-py).
However, this client only works for HTTP (no thrift or memcache) and doesn't
support connection pooling at this time (one client per instance). This
allows for you to design your own pooling/handling of callbacks.
Elasticsearch Compatibility
---------------------------
The library is compatible with Elasticsearch 1.x
Python Compatibility
--------------------
Tested with python:
2.6, 2.7, 3.2, 3.3, 3.4 and pypy
Example use
-----------
Simple use-case::
>>> from elasticsearch_tornado import EsClient
>>> import tornado.ioloop
>>> def ex_cb(req):
>>> print req
>>> ioloop = tornado.ioloop.IOLoop.instance()
>>> ioloop.stop()
>>> io_loop = tornado.ioloop.IOLoop.instance()
>>> c = EsClient()
# make an info request (same as http://localhost:9200)
>>> c.info(cb=ex_cb)
>>> io_loop.start()
Features
--------
The client's features include:
* Non blocking requests with callbacks
* DYOS- Do You Own Serialization- (remember those trailing \n's)
* >95% Test coverage
License
-------
Copyright 2014 Daniel Hodges
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Build status
------------
.. image:: https://travis-ci.org/hodgesds/elasticsearch_tornado.svg?branch=master
:target: https://travis-ci.org/hodgesds/elasticsearch_tornado
===========================
Tornado http client for Elasticsearch. Its goal is to provide common
ground for all Elasticsearch-related code in tornado and provide a
similar api to the official elasticsearch python client (elasticsearch-py).
However, this client only works for HTTP (no thrift or memcache) and doesn't
support connection pooling at this time (one client per instance). This
allows for you to design your own pooling/handling of callbacks.
Elasticsearch Compatibility
---------------------------
The library is compatible with Elasticsearch 1.x
Python Compatibility
--------------------
Tested with python:
2.6, 2.7, 3.2, 3.3, 3.4 and pypy
Example use
-----------
Simple use-case::
>>> from elasticsearch_tornado import EsClient
>>> import tornado.ioloop
>>> def ex_cb(req):
>>> print req
>>> ioloop = tornado.ioloop.IOLoop.instance()
>>> ioloop.stop()
>>> io_loop = tornado.ioloop.IOLoop.instance()
>>> c = EsClient()
# make an info request (same as http://localhost:9200)
>>> c.info(cb=ex_cb)
>>> io_loop.start()
Features
--------
The client's features include:
* Non blocking requests with callbacks
* DYOS- Do You Own Serialization- (remember those trailing \n's)
* >95% Test coverage
License
-------
Copyright 2014 Daniel Hodges
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Build status
------------
.. image:: https://travis-ci.org/hodgesds/elasticsearch_tornado.svg?branch=master
:target: https://travis-ci.org/hodgesds/elasticsearch_tornado
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for elasticsearch_tornado-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7c10cddc6785e672e6a52d38ab8d970e17159ff06873c6efa7da2992a1065b0 |
|
MD5 | dc655782dea074ccad4f9fc261033ae9 |
|
BLAKE2b-256 | 4872eabc726f1ed32b05b31c2b374f2d83229fe047cfc57f1a3379258d6bed2a |