Skip to main content

A code generator for remote procedure calls on embedded systems

Project description

Automated build

Code Smells

Quality gate

Code style: black

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 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 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

lotusrpc-0.9.4.tar.gz (788.3 kB view details)

Uploaded Source

Built Distribution

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

lotusrpc-0.9.4-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lotusrpc-0.9.4.tar.gz
  • Upload date:
  • Size: 788.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lotusrpc-0.9.4.tar.gz
Algorithm Hash digest
SHA256 5ad7693c30bc17940422514e2d39375998e8b5ac766ef41d77294ce11c29233a
MD5 ac4e745c2db0b386739bd4f2e5401aa6
BLAKE2b-256 e1b53947a32221e4a41291d9f2a08c7c21d19ac67664d1cb765b8352632b8ca0

See more details on using hashes here.

Provenance

The following attestation bundles were made for lotusrpc-0.9.4.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.9.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for lotusrpc-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a324bb04f46de9f4ebb3e70cbd6eb56329641dce0f0a52224238684b03106f2b
MD5 3f20e86f2a25db8a1aa2c61c0e4084a6
BLAKE2b-256 572182c22c782bbd7f6b53c711b1f21103898a80ffa77813d12ce8bf7bbb0a1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lotusrpc-0.9.4-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