Skip to content

brainelectronics/be-modbus-wrapper

Repository files navigation

BE Modbus Wrapper

Downloads Release Python License: MIT codecov

Custom brainelectronics python modbus wrapper


General

Custom brainelectronics specific python modbus wrapper.

Installation

pip install be-modbus-wrapper

Usage

from be_modbus_wrapper import ModbusWrapper

Contributing

Unittests

Run the unittests locally with the following command after installing this package in a virtual environment

# run all tests
nose2 --config tests/unittest.cfg

# run only one specific tests
nose2 tests.test_modbus_wrapper.TestModbusWrapper.test_load_modbus_registers_file

Generate the coverage files with

python create_report_dirs.py
coverage html

The coverage report is placed at be-modbus-wrapper/reports/coverage/html/index.html

Credits

Based on the PyPa sample project.