Files
opensearch-pyd/elasticsearch/__init__.py
T

30 lines
723 B
Python
Raw Normal View History

2019-03-29 09:27:59 -06:00
# flake8: noqa
from __future__ import absolute_import
2019-11-14 09:17:45 +01:00
VERSION = (7, 1, 0)
__version__ = VERSION
2019-03-29 09:27:59 -06:00
__versionstr__ = ".".join(map(str, VERSION))
import logging
2019-03-29 09:27:59 -06:00
try: # Python 2.7+
from logging import NullHandler
except ImportError:
2019-03-29 09:27:59 -06:00
class NullHandler(logging.Handler):
def emit(self, record):
pass
2019-03-29 09:27:59 -06:00
import sys
2019-03-29 09:27:59 -06:00
logger = logging.getLogger("elasticsearch")
logger.addHandler(logging.NullHandler())
from .client import Elasticsearch
from .transport import Transport
2019-03-29 09:27:59 -06:00
from .connection_pool import ConnectionPool, ConnectionSelector, RoundRobinSelector
from .serializer import JSONSerializer
2019-03-29 09:27:59 -06:00
from .connection import Connection, RequestsHttpConnection, Urllib3HttpConnection
from .exceptions import *