Skip to content

Latest commit

 

History

History
 
 

erpc_python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

eRPC Python Infrastructure

This folder contains the Python implementation of the eRPC infrastructure.

The Python implementation of eRPC is fully compatible with the C/C++ implementation at the protocol level. Also, the classes mirror those in the C++ infrastructure.

Contents

erpc - Python package for eRPC infrastructure.

setup.py - setuptools setup script that installs the erpc package.

setup.cfg, README_Pypi.md - necessary files for the pypi support.

Installation

Pip package installer needs to be installed in your Python version. Use following way for Python3 pip installation:

sudo apt-get install python3 python3-pip

To install the eRPC Python infrastructure from pypi:

pip install erpc

To install the eRPC Python infrastructure from local folder (erpc/erpc_python):

pip install .

Once installed, you can access the infrastructure via a standard import statement.

import erpc
xport = erpc.transport.SerialTransport("/dev/ttyS1", 115200)
client = erpc.client.ClientManager(xport, erpc.basic_codec.BasicCodec)