File tree Expand file tree Collapse file tree 4 files changed +64
-0
lines changed Expand file tree Collapse file tree 4 files changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ Copyright 2015 SensorsData Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
Original file line number Diff line number Diff line change 2
2
3
3
This is the official Python SDK for Sensors Analytics.
4
4
5
+ ## Easy Installation
6
+
7
+ You can get Sensors Analytics SDK using pip.
8
+
9
+ ```
10
+ pip install SensorsAnalyticsSDK
11
+ ```
12
+
13
+ Once the SDK is successfully installed, use the Sensors Analytics SDK likes:
14
+
15
+ ``` python
16
+ import sensorsanalytics
17
+
18
+ // Gets the url of Sensors Analytics in the home page.
19
+ SA_SERVER_URL = ' YOUR_SERVER_URL'
20
+
21
+ // Initialized the Sensors Analytics SDK with Default Consumer
22
+ consumer = sensorsanalytics.DefaultConsumer(SA_SERVER_URL )
23
+ sa = sensorsanalytics.SensorsAnalytics(consumer)
24
+
25
+ // Track the event ' ServerStart'
26
+ sa.track(" ABCDEFG1234567" , " ServerStart" )
27
+ ```
28
+
5
29
## To learn more
6
30
7
31
See our [ full manual] ( http://www.sensorsdata.cn/manual/python_sdk.html )
Original file line number Diff line number Diff line change
1
+ =====================
2
+ Sensors Analytics SDK
3
+ =====================
4
+
5
+ Sensors Analytics SDK
6
+ =====================
7
+
8
+ This is the official Python SDK for Sensors Analytics.
9
+
10
+ To Learn More
11
+ -------------
12
+
13
+ See our `full manual <http://www.sensorsdata.cn/manual/python_sdk.html>`_.
14
+
Original file line number Diff line number Diff line change
1
+ from distutils .core import setup
2
+
3
+ setup (
4
+ name = 'SensorsAnalyticsSDK' ,
5
+ version = '1.3.4' ,
6
+ author = 'Yuhan ZOU' ,
7
+
8
+ url = 'http://www.sensorsdata.cn' ,
9
+ license = 'LICENSE.txt' ,
10
+ packages = ['sensorsanalytics' ],
11
+ description = 'This is the official Python SDK for Sensors Analytics.' ,
12
+ long_description = open ('README.txt' ).read (),
13
+ )
You can’t perform that action at this time.
0 commit comments