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
73 lines (59 loc) · 1.52 KB
/
Copy path__init__.py
File metadata and controls
73 lines (59 loc) · 1.52 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
# coding: utf-8
"""LeanCloud Python SDK
"""
import sys
import logging
import warnings
logger = logging.getLogger('iso8601.iso8601')
logger.setLevel(logging.CRITICAL)
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 .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
import client
import push
__author__ = 'asaka <lan@leancloud.rocks>'
__version__ = '1.3.12'
__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', DeprecationWarning)
if version_info.minor == 3 and version_info.minor < 4:
warnings.warn('Python3 version less than 4 is not supported', DeprecationWarning)