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
-
grpcio vs grpclib
-
There is an error on
oneof. We need to remove data validation function onValDataclass after the code generation.
Project details
Release history Release notifications | RSS feed
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.10.tar.gz
(16.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oaas_sdk2_py-0.1.10.tar.gz.
File metadata
- Download URL: oaas_sdk2_py-0.1.10.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00e8db53590f7c04e29082bd39d5f45e3de127bbd7fbd098459920ff821ed6c9
|
|
| MD5 |
6cf387b3b19736f848e0457b97782de1
|
|
| BLAKE2b-256 |
44af842e9643057fb2d3e91262b90bc7bd09567564c0dc64acd7f45e7cff19e0
|
File details
Details for the file oaas_sdk2_py-0.1.10-py3-none-any.whl.
File metadata
- Download URL: oaas_sdk2_py-0.1.10-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
195b57b789c65fcb34f1aed43ad8b3168975a64d5d828016756233a624a3d50b
|
|
| MD5 |
44c372f801149ee74446165351ae5d54
|
|
| BLAKE2b-256 |
fe0fbe5b7b306993f20d955bdc6fbd6e23468d16e6040eabfd66d07ad0e4e0db
|