/
__init__.py
43 lines (33 loc) · 991 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)
VERSION = (0, 19, 1)
__version__ = ".".join(map(str, VERSION[0:3])) + "".join(VERSION[3:])
__author__ = "Alberto Paro"
__contact__ = "alberto.paro@gmail.com"
__homepage__ = "http://github.com/aparo/pyes/"
__docformat__ = "restructuredtext"
def is_stable_release():
if len(VERSION) > 3:
return False
return True
def version_with_meta():
return "%s (%s)" % (__version__,
is_stable_release() and "stable" or "unstable")
from .es import ES, file_to_attachment, decode_json
from .query import *
from .rivers import *
from .filters import *
#from highlight import HighLighter
from .utils import *
try:
#useful for additional query extra features
from .query_extra import *
except ImportError:
pass
try:
#useful for additional features for django users
from .djangoutils import *
except ImportError:
pass