Skip to main content

No project description provided

Project description

OaaS-SDK2

Python Lib for OaaS-IoT

Prerequisites

  • cargo (install via rust)
  • oprc-cli cargo install --git https://github.com/pawissanutt/oaas-rs.git oprc-cli
  • uv (python package manager)
  • docker or podman

Setup

uv sync
./.venv/Scripts/activate
# or
source ./.venv/bin/activate # for Mac or Linux 

Run Example with Docker Compose

docker compose up -d --build
# invoke new function of 'example.hello' class
echo "{}" | oprc-cli i -g http://localhost:10002 example.hello 0 new -p -

TODOs

Features

  • read data
  • Write data
  • Serve gRPC for invocation
  • Create an object reference
  • Call gRPC to invoke a foreign function
  • Implement thread Pool
  • Connect to Zenoh
  • Device Agent:
    • Invoke a remote function on the referenced object
    • Invoke a local function on the referenced object
      • Need testings!
    • Invoke a local function on device agent from the anywhere else
      • Need testings!
    • Access data from the referenced object
      • Need testings!
  • create interface of referenced object
  • declare deployment configuration in code

QoL Features

  • Improve data encode/decode
  • Development CLI
    • generate project
    • setup development environment (e.g., generate docker compose for ODGM)
    • generate YAML class definition from class in Python
    • build project
    • deploy class/object

NOTE

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

oaas_sdk2_py-0.1.16.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oaas_sdk2_py-0.1.16-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file oaas_sdk2_py-0.1.16.tar.gz.

File metadata

  • Download URL: oaas_sdk2_py-0.1.16.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for oaas_sdk2_py-0.1.16.tar.gz
Algorithm Hash digest
SHA256 4b9f74d24c5bfcdddf87733e34ba4ca34df2690c05c7e15153dd14e346c2a89b
MD5 a84ef7e72fdb47949e21e749a9975fea
BLAKE2b-256 833eab7db821e0fd581f09a8d048cb6ba045c304e0fae43f6659c6d560f220e1

See more details on using hashes here.

File details

Details for the file oaas_sdk2_py-0.1.16-py3-none-any.whl.

File metadata

  • Download URL: oaas_sdk2_py-0.1.16-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for oaas_sdk2_py-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 be9e6dc04234bda03ba2b5b1184cd0efbd9522ed0d53c82fb338c0ee2fc6af5a
MD5 3ae79bfe3879a2ecc329aa6b5f7fdfdd
BLAKE2b-256 1026f371806ff86cba2bf6bbf07f3feef3fb1bbb25cd656599ec6f57b7cb6c51

See more details on using hashes here.

Supported by

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