1from __future__ import absolute_import
2
3VERSION = (5, 0, 1)
4__version__ = VERSION
5__versionstr__ = '.'.join(map(str, VERSION))
6
7import sys
8
9if (2, 7) <= sys.version_info < (3, 2):
10    # On Python 2.7 and Python3 < 3.2, install no-op handler to silence
11    # `No handlers could be found for logger "elasticsearch"` message per
12    # <https://docs.python.org/2/howto/logging.html#configuring-logging-for-a-library>
13    import logging
14    logger = logging.getLogger('elasticsearch')
15    logger.addHandler(logging.NullHandler())
16
17from .client import Elasticsearch
18from .transport import Transport
19from .connection_pool import ConnectionPool, ConnectionSelector, \
20    RoundRobinSelector
21from .serializer import JSONSerializer
22from .connection import Connection, RequestsHttpConnection, \
23    Urllib3HttpConnection
24from .exceptions import *
25
26