Help us make these docs great!

All rapyuta.io docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Using rapyuta.io Python SDK

rapyuta.io Python SDK enables you to provision packages either on the cloud or on a device, add a dependent deployment, and access various rapyuta.io resources and services in your python applications.

Installation

It is recommended you install the latest Python SDK using pip(the most popular tool for installing python packages).

pip install https://storage.googleapis.com/rio-sdk-python/rapyuta_io-0.23.0-py2.py3-none-any.whl

If you are using an old version of the Python SDK, please upgrade to the latest 0.23.0 version.

Requirements

The rapyuta.io Python SDK is compatible with python applications supporting Python2.7

We have added Python3.9 support to the rapyuta.io python SDK. Note that this is still in the alpha stage.

Auth Token

To determine the auth token:

  1. Click on your username to the top right corner of the rapyuta.io dashboard.
  2. Click Get Auth Token.
  3. Enter the password.
  4. Click COPY.
  5. Click here to go back to the previous page.

Get Auth Token

Device ID

To determine the unique identifier of the device on-boarded on to rapyuta.io:

  1. Click Devices>All Devices on the left navigation bar.
  2. Select the device whose identifier you want to obtain.
  3. Copy the device’s ID as shown in the figure.

Find device ID

Project ID

To determine the unique identifier of the project in rapyuta.io:

  1. Click PROJECTS on the left navigation bar.
  2. Select the project whose identifier you want to obtain.
  3. Copy the project’s ID as shown in the figure.

Find project ID

Package ID

To determine a rapyuta.io package’s unique identifier:

  1. Click PACKAGES on the left navigation bar.
  2. Select the package whose ID you want to obtain.
  3. Copy the package’s ID as shown in the figure.

Find package id

Plan ID

To determine a package’s plan id in rapyuta.io:

  1. Click PACKAGES on the left navigation bar.
  2. Select the package whose plan ID you want to obtain.
  3. Under Plans, copy the value of default.

Find plan id

SDK reference

If you are looking for more detailed information about any class in the SDK, feel free to consult the full SDK reference.

Before walking through the examples, ensure you [obtain the auth token, project ID, device ID, package ID, and plan ID.

Tutorial : Python SDK : Publisher Subsciber