2013-05-06 16:15:38 +02:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
|
2015-06-10 02:38:35 +02:00
|
|
|
VERSION = (1, 6, 0)
|
2013-07-31 17:38:52 +02:00
|
|
|
__version__ = VERSION
|
|
|
|
|
__versionstr__ = '.'.join(map(str, VERSION))
|
|
|
|
|
|
2014-12-23 23:17:11 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
if (2, 7) <= sys.version_info < (3, 2):
|
|
|
|
|
# On Python 2.7 and Python3 < 3.2, install no-op handler to silence
|
|
|
|
|
# `No handlers could be found for logger "elasticsearch"` message per
|
2015-01-03 01:50:46 +01:00
|
|
|
# <https://docs.python.org/2/howto/logging.html#configuring-logging-for-a-library>
|
2014-12-23 23:17:11 +00:00
|
|
|
import logging
|
|
|
|
|
logger = logging.getLogger('elasticsearch')
|
|
|
|
|
logger.addHandler(logging.NullHandler())
|
|
|
|
|
|
2014-05-31 10:22:33 -04:00
|
|
|
from .client import Elasticsearch
|
|
|
|
|
from .transport import Transport
|
|
|
|
|
from .connection_pool import ConnectionPool, ConnectionSelector, \
|
2013-05-06 16:15:38 +02:00
|
|
|
RoundRobinSelector
|
2014-05-31 10:22:33 -04:00
|
|
|
from .serializer import JSONSerializer
|
|
|
|
|
from .connection import Connection, RequestsHttpConnection, \
|
2013-10-29 15:30:58 +01:00
|
|
|
Urllib3HttpConnection, MemcachedConnection, ThriftConnection
|
2014-05-31 10:22:33 -04:00
|
|
|
from .exceptions import *
|
2013-05-06 16:15:38 +02:00
|
|
|
|