forked from leancloud/python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
79 lines (63 loc) · 1.67 KB
/
Copy path__init__.py
File metadata and controls
79 lines (63 loc) · 1.67 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# coding: utf-8
"""LeanCloud Python SDK
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
import logging
import warnings
logger = logging.getLogger('iso8601.iso8601')
logger.setLevel(logging.CRITICAL)
from . import client
from . import push
from .acl import ACL
from .client import init
from .client import use_master_key
from .client import use_production
from .client import use_region
from .engine import Engine
from .engine import LeanEngineError
from .engine import cloudfunc
from .engine.https_redirect_middleware import HttpsRedirectMiddleware
from .errors import LeanCloudError
from .errors import LeanCloudWarning
from .file_ import File
from .geo_point import GeoPoint
from .object_ import Object
from .push import Installation
from .query import FriendshipQuery
from .query import Query
from .relation import Relation
from .role import Role
from .user import User
__author__ = 'asaka <lan@leancloud.rocks>'
__version__ = '1.4.0'
__all__ = [
'ACL',
'Engine',
'File',
'FriendshipQuery',
'GeoPoint',
'HttpsRedirectMiddleware',
'Installation',
'LeanCloudError',
'LeanEngineError',
'Object',
'Query',
'Relation',
'Role',
'User',
'client',
'cloudfunc',
'init',
'push',
'use_master_key',
'use_production',
'use_region',
]
version_info = sys.version_info
if version_info.major == 2 and version_info.minor < 7:
warnings.warn('Python2 version less than 7 is not supported', LeanCloudWarning)
if version_info.minor == 3 and version_info.minor < 4:
warnings.warn('Python3 version less than 4 is not supported', LeanCloudWarning)