Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a78dc61

Browse files
author
Yuhan ZOU
committed
Release 1.3.4
1. Packaged the project with pypi
1 parent e31cb98 commit a78dc61

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed

LICENSE.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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.

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,30 @@
22

33
This is the official Python SDK for Sensors Analytics.
44

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+
529
## To learn more
630

731
See our [full manual](http://www.sensorsdata.cn/manual/python_sdk.html)

README.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+

setup.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from distutils.core import setup
2+
3+
setup(
4+
name='SensorsAnalyticsSDK',
5+
version='1.3.4',
6+
author='Yuhan ZOU',
7+
author_email='[email protected]',
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+
)

0 commit comments

Comments
 (0)