dragon9001 / sa-sdk-python

The official Python SDK for Sensors Analytics

Home Page:http://sensorsdata.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sensors Analytics

This is the official Python SDK for Sensors Analytics.

Easy Installation

You can get Sensors Analytics SDK using pip.

    pip install SensorsAnalyticsSDK

Once the SDK is successfully installed, use the Sensors Analytics SDK likes:

    import sensorsanalytics

    // Gets the url of Sensors Analytics in the home page.
    SA_SERVER_URL = 'YOUR_SERVER_URL'

    // Initialized the Sensors Analytics SDK with Default Consumer
    consumer = sensorsanalytics.DefaultConsumer(SA_SERVER_URL)
    sa = sensorsanalytics.SensorsAnalytics(consumer)

    // Track the event 'ServerStart'
    sa.track("ABCDEFG1234567", "ServerStart")

To learn more

See our full manual

About

The official Python SDK for Sensors Analytics

http://sensorsdata.cn

License:Other


Languages

Language:Python 100.0%