Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephane/pylibmodbus
Python wrapper for libmodbus written with CFFI
https://github.com/stephane/pylibmodbus
Last synced: about 2 months ago
JSON representation
Python wrapper for libmodbus written with CFFI
- Host: GitHub
- URL: https://github.com/stephane/pylibmodbus
- Owner: stephane
- License: other
- Created: 2013-04-16T14:31:25.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2023-12-04T03:58:21.000Z (about 1 year ago)
- Last Synced: 2024-09-24T02:23:34.686Z (3 months ago)
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 51
- Watchers: 14
- Forks: 35
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pylibmodbus
[![PyPI version](https://badge.fury.io/py/pylibmodbus.svg)](https://badge.fury.io/py/pylibmodbus)
Python Interface for libmodbus written with CFFI.
This libmodbus wrapper is compatible with Python 2 and Python 3.This wrapper is only compatible with libmodbus v3.1.2 and above.
Required packages:
- python-dev and libffi-dev
- libmodbus and libmodbus-devLicensed under BSD 3-Clause (see LICENSE file for details).
## Installation
The package `pylibmodbus' is available from Pypi but you must install libmodbus
before using is (see for details).Example for Debian:
```shell
apt-get install libmodbus
pip install pylibmodbus
```## Tests
Before running the test suite, you need to launch a TCP server.
You can use the server provided by libmodbus in `tests` directory:```shell
./tests/bandwidth-server-many-up
```Once this server is running, you can launch the Python tests with:
```shell
python -m tests
```