Skip to content

Latest commit

 

History

History
63 lines (37 loc) · 1.63 KB

File metadata and controls

63 lines (37 loc) · 1.63 KB

Onesait Platform Python Client Services

API documentation

This document describes the source code for the Onesait Platform Python Client Services.

This code provides several client classes which enable applications to connect to a Onesait Platform instance and perform basic CRUD operations.

Before using the client services for the first time, we strongly recommend that you learn the main concepts of the Onesait Platform platform.

It supports Python 3.4+

Installation instructions

In order to use this API, you must have pip installed in your system. The pip website (https://pypi.python.org/pypi/pip) contains detailed installation instructions.

Once pip is installed, you will be able to install the Python clients into your local package repository by running the following commands:

  1. To install from download repository:
pip install .
python setup.py install
  1. To install from pypi:
pip install onesaitplatform-client-services

Compilation and upload to pypi

  1. Build the distribution of the package (/dist). It's necessary to change the version in setup.py:
python setup.py sdist bdist_wheel
  1. Upload to pypi:
python -m twine upload dist/*

Samples usage

IotBrokerClient

An example of IotBrokerClient is available in IotBrokerClient tutorial

FileManager

An example of FileManager is available in FileManager tutorial

MQTTClient

An example of FileManager is available in MqttClient tutorial (deprecated)