Minimalmodbus
Easy-to-use Modbus RTU and Modbus ASCII implementation for Python.
Install / Use
/learn @pyhys/MinimalmodbusREADME
=============================== MinimalModbus
.. image:: https://github.com/pyhys/minimalmodbus/actions/workflows/build.yml/badge.svg :target: https://github.com/pyhys/minimalmodbus/actions :alt: Build Status
.. image:: https://codecov.io/gh/pyhys/minimalmodbus/branch/master/graph/badge.svg?token=6TcwYCQJHF :target: https://codecov.io/gh/pyhys/minimalmodbus :alt: Test coverage report
.. image:: https://readthedocs.org/projects/minimalmodbus/badge/?version=master :target: https://readthedocs.org/projects/minimalmodbus/?badge=master :alt: Documentation Status
.. image:: https://img.shields.io/pypi/v/minimalmodbus.svg :target: https://pypi.org/project/minimalmodbus/ :alt: PyPI page link
Easy-to-use Modbus RTU and Modbus ASCII implementation for Python.
Web resources
- Documentation: https://minimalmodbus.readthedocs.io
- Source code on GitHub: https://github.com/pyhys/minimalmodbus
- Python package index (PyPI) with download: https://pypi.org/project/minimalmodbus/
Other web pages:
- Readthedocs project page: https://readthedocs.org/projects/minimalmodbus/
- codecov.io project page: https://codecov.io/github/pyhys/minimalmodbus
Obsolete web pages:
- Old Travis CI build status page: https://travis-ci.org/pyhys/minimalmodbus
- Old Sourceforge documentation page: http://minimalmodbus.sourceforge.net/
- Old Sourceforge project page: https://sourceforge.net/projects/minimalmodbus
- Old Sourceforge repository: https://sourceforge.net/p/minimalmodbus/code/HEAD/tree/
Features
MinimalModbus is an easy-to-use Python module for talking to instruments (slaves) from a computer (master) using the Modbus protocol, and is intended to be running on the master. The only dependence is the pySerial module (also pure Python).
There are convenience functions to handle floats, strings and long integers (in different byte orders).
This software supports the 'Modbus RTU' and 'Modbus ASCII' serial communication versions of the protocol, and is intended for use on Linux, OS X and Windows platforms. It is open source, and has the Apache License, Version 2.0.
For Python 3.8 and later. Tested with Python 3.8, 3.9, 3.10, 3.11 and 3.12.
This package uses semantic versioning.
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
85.3kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
342.5kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
