Skip to main content

A code generator for remote procedure calls on embedded systems

Project description

LotusRPC 🌼

Automated build Code Smells Code style: Ruff linting: pylint

Quality gate

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 cpp -d 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 on the LotusRPC documentation pages

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

lotusrpc-0.10.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

lotusrpc-0.10.0-py3-none-any.whl (67.5 kB view details)

Uploaded Python 3

File details

Details for the file lotusrpc-0.10.0.tar.gz.

File metadata

  • Download URL: lotusrpc-0.10.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lotusrpc-0.10.0.tar.gz
Algorithm Hash digest
SHA256 edab49675740a9605903663207673638008debb089a178cca01487a6873bef82
MD5 cfdf8fbf8a12dd60c001901ef506e5ec
BLAKE2b-256 e4fe78b61e5c74de4f896db99d35401c105af6dd6fc036b23cabebbfc0506fa3

See more details on using hashes here.

Provenance

The following attestation bundles were made for lotusrpc-0.10.0.tar.gz:

Publisher: publish-to-pypi.yml on tzijnge/LotusRpc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lotusrpc-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: lotusrpc-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 67.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lotusrpc-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 909d2a5bae0a9e5dd7e0d356944d52b3f6d15101cbfe5a900547bfc724776344
MD5 b44222e7303c1de1d30151b99e206801
BLAKE2b-256 bca85dd0da0b527956c44d1a2c224da177767d109ac56e827b7686c3559e44ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for lotusrpc-0.10.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on tzijnge/LotusRpc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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