matez0 / sap-rfc-via-mqtt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python versions license

SAP RFC via MQTT

A microservice for making SAP RFC via MQTT messages.

The component diagram of the system:

Component diagram

The message adapter, parser, and serializer abstractions allow for the messaging protocol, message format, and response format to be easily replaced independently from other parts of the service.

Installation

Install PyRFC.

Install service dependencies:

pip install -r requirements.txt

Set the required environment variables, for example, see test environment.

Start service:

python sap_rfc_via_mqtt/main.py

Testing

Create the virtual environment:

python -m venv .venv
. .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt -r requirements-testing.txt

For testing MQTT communication, clone Paho Testing Utilities:

git clone https://github.com/eclipse/paho.mqtt.testing.git

Run the tests:

pytest tests -v

About

License:MIT License


Languages

Language:Python 100.0%