
Product
Introducing Data Exports
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.
minimalmodbus
Advanced tools
.. 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.
Other web pages:
Obsolete web pages:
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.
FAQs
Easy-to-use Modbus RTU and Modbus ASCII implementation for Python
We found that minimalmodbus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.