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+
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:
- To install from download repository:
pip install .
python setup.py install
- To install from pypi:
pip install onesaitplatform-client-services
Compilation and upload to pypi
- Build the distribution of the package (/dist). It's necessary to change the version in setup.py:
python setup.py sdist bdist_wheel
- Upload to pypi:
python -m twine upload dist/*
An example of IotBrokerClient is available in IotBrokerClient tutorial
An example of FileManager is available in FileManager tutorial
An example of FileManager is available in MqttClient tutorial (deprecated)