Skip to main content

Rapyuta.io Python SDK

Project description

Rapyuta.io Python SDK

Rapyuta.io Python SDK enables you to access platform services and resources in your python applications.

The SDK supports Python 3.8+. For older Python 2.x support, you can use the 0.x.x releases from Pypi.

Install

The SDK is distributed through PyPi index, and can be installed directly using pip.

pip install rapyuta-io

To install the SDK from source, you can use the setup.py script directly. Clone the repository and from the root of the directory, run the following command.

python setup.py install

Development

Create a python virtual environment, having version less than 3.11

pipenv install --dev

Getting Started

Before using the SDK, you need the Rapyuta Token. You can get it from here.

from rapyuta_io import Client

TOKEN = "RAPYUTA_TOKEN"


client = rapyuta_io.Client(TOKEN)

# Create a Project and use it
from rapyuta_io import Project

project = client.create_project(Project("python-sdk"))
client.set_project(project.guid)

SDK Test

RIO_CONFIG environment variable pointing to the config.json must be sourced to run the sdk integration test. The sample config is present in sdk_test directory. Run run_rio_sdk_test.py to start the sdk tests.

Currently only one docker compose device is needed to be created and added to the config, SDK Test will add the device to the newly created project and onboard it and run tests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rapyuta_io-2.3.2.tar.gz (45.6 kB view details)

Uploaded Source

Built Distribution

rapyuta_io-2.3.2-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

Details for the file rapyuta_io-2.3.2.tar.gz.

File metadata

  • Download URL: rapyuta_io-2.3.2.tar.gz
  • Upload date:
  • Size: 45.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for rapyuta_io-2.3.2.tar.gz
Algorithm Hash digest
SHA256 71aa0405ac69ace85f35c7c99d0296ac4f65e0094c621a523ca0eccf7a2d60a1
MD5 7b1e112e47172e44ca3e2dfdc73c8016
BLAKE2b-256 89ed44e4e40bc93d567309498797a507c8f52ded3683803fff941d40b3c4353f

See more details on using hashes here.

File details

Details for the file rapyuta_io-2.3.2-py3-none-any.whl.

File metadata

  • Download URL: rapyuta_io-2.3.2-py3-none-any.whl
  • Upload date:
  • Size: 53.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for rapyuta_io-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de9fe77d172170d64f56cb16ef03e6de5d4c80e2d33c34b161f435f98b6216ed
MD5 f81df7ec6ae852cd1085cb318d520203
BLAKE2b-256 3482f669bb349d6f59171cf30c3b4f2c73f437369acd10c464a321e1460ee2bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page