A code generator for remote procedure calls on embedded systems
Project description
LotusRPC 🌼
WARNING: This project is work in progress
LotusRPC is an RPC framework for embedded systems based on ETL. It generates C++ code with no dynamic memory allocations, no exceptions, no RTTI, etc. Code generator and client side CLI application in a simple Python package.
Installation
Install from PyPI with pip install lotusrpc
Basic usage
Installing the Python package installs the lrpcg tool on your system. This is the LotusRPC generator. It also installs the lrpcc tool on your system. This is the LotusRpc CLI client.
Your RPC interface is specified in a YAML file
File name: example.lrpc.yaml
services:
- name: "battery"
functions:
- name: "get"
params:
- name: "option"
type: "@VoltageScales"
returns:
- name: "voltage"
type: double
enums:
- name: "VoltageScales"
fields:
name: "microvolts"
name: "millivolts"
name: "volts"
Generate server side code by simply running this command
lrpcg example.lrpc.yaml -o output-dir
Give the generated code a meaningful implementation and hook it up to a transport layer. Flash your embedded device. Then use lrpcc to communicate with your device and print the result to the console
lrpcc battery get microvolts
Documentation
Please find more detailed information here
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
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 lotusrpc-0.9.1.tar.gz.
File metadata
- Download URL: lotusrpc-0.9.1.tar.gz
- Upload date:
- Size: 784.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec546c1615976877614e26453fe336bd4f8e9a7d7e2747dc48f54871d2b88166
|
|
| MD5 |
37181706b927112a6de7a8b2de99456c
|
|
| BLAKE2b-256 |
b9f2e6f859ba03435c954aca1d23d558bceb3b87a1bafc118ba8d2cd3edc5796
|
Provenance
The following attestation bundles were made for lotusrpc-0.9.1.tar.gz:
Publisher:
publish-to-pypi.yml on tzijnge/LotusRpc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lotusrpc-0.9.1.tar.gz -
Subject digest:
ec546c1615976877614e26453fe336bd4f8e9a7d7e2747dc48f54871d2b88166 - Sigstore transparency entry: 184381564
- Sigstore integration time:
-
Permalink:
tzijnge/LotusRpc@05518a802344e7566922dbc82f832df90abc0e10 -
Branch / Tag:
refs/tags/0.9.1 - Owner: https://github.com/tzijnge
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@05518a802344e7566922dbc82f832df90abc0e10 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lotusrpc-0.9.1-py3-none-any.whl.
File metadata
- Download URL: lotusrpc-0.9.1-py3-none-any.whl
- Upload date:
- Size: 45.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d493195192c37b27193506b3bee4cc7e547de61bf1e90f0abef8780711c0aac
|
|
| MD5 |
d3725eb987a3f03f6632a3257cfc6d69
|
|
| BLAKE2b-256 |
9a1bb8e909eff3fd839947dd0973493ec33293b6ce83f555d2349d638ede87fa
|
Provenance
The following attestation bundles were made for lotusrpc-0.9.1-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on tzijnge/LotusRpc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lotusrpc-0.9.1-py3-none-any.whl -
Subject digest:
8d493195192c37b27193506b3bee4cc7e547de61bf1e90f0abef8780711c0aac - Sigstore transparency entry: 184381570
- Sigstore integration time:
-
Permalink:
tzijnge/LotusRpc@05518a802344e7566922dbc82f832df90abc0e10 -
Branch / Tag:
refs/tags/0.9.1 - Owner: https://github.com/tzijnge
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@05518a802344e7566922dbc82f832df90abc0e10 -
Trigger Event:
push
-
Statement type: