pymodbus
A fully featured modbus protocol stack in python
Decision gist · record as of 2026-08-14
Yes. PyModbus is a stable, actively maintained library (release 1 day old, 2754 GitHub stars) with no security vulnerabilities, low install friction, and permissive licensing. It's the standard choice for Modbus protocol work in Python and is embedded in production systems like Home Assistant. Install it if you need to communicate with Modbus devices; the only caveat is to review API_changes when upgrading between minor versions, as the project does not follow semantic versioning.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >= 3.10.0; serial communication requires optional pyserial dependency (install with pip install pymodbus[serial]).
- Installation is straightforward with no runtime dependencies by default; pyserial is optional for serial communication.
- The project is actively maintained with a release just 1 day old, tested across Python 3.10–3.14 on Windows, Linux, and macOS, and carries 2754 GitHub stars.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is a permissive license allowing commercial and private use with minimal restrictions; you must include the license text and disclaimer but face no copyleft obligations.
last release 2026-08-13 (1 days) · last repo commit 2026-08-13 · 2,754 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,788,026 downloads/mo, #3,561 on PyPI
Alternatives
Verify before relying
pip install pymodbus
from pymodbus.client import ModbusSerialClient
client = ModbusSerialClient(method='rtu', port='/dev/ttyUSB0')
client.connect()
result = client.read_holding_registers(0, 10)
client.close()- Whether the 100% test coverage claim and cross-platform CI testing are current as of version 3.15.0.
- Performance characteristics under high-volume device simulation (hundreds of devices mentioned in description).
- Specific non-standard device limitations beyond the general statement in the description.
What it is and what it does
PyModbus is a mature, production-grade implementation of the Modbus protocol stack in pure Python. It provides three main components: a client for connecting to Modbus devices, a server for emulating devices, and an HTML-based simulator for testing and development. The library supports all standard Modbus frames (socket, RTU, RTU-over-TCP, TCP, ASCII) and communication methods (serial/RS-485, TCP, TLS, UDP), with both synchronous and asynchronous APIs for different application needs.
The package is designed for industrial automation and SCADA applications where Python applications need to communicate with Modbus-compliant devices. It's embedded in projects like Home Assistant and is lightweight with no mandatory third-party dependencies. The library follows a non-standard versioning scheme where Z releases are bug fixes, Y releases include API changes, and X releases indicate major rewrites—the documentation emphasizes checking the API_changes and CHANGELOG files when upgrading between minor versions.
Use it for
- Build a Python application that reads sensor data from industrial Modbus devices over TCP or serial connections.
- Create a virtual Modbus device server to test client applications without physical hardware.
- Simulate multiple Modbus devices for high-volume testing of SCADA or automation software.
- Integrate Modbus communication into existing Python projects with minimal dependencies.
- Monitor and debug Modbus traffic using the web-based simulator interface.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
PyModbus is a stable, actively maintained library (release 1 day old, 2754 GitHub stars) with no security vulnerabilities, low install friction, and permissive licensing. It's the standard choice for Modbus protocol work in Python and is embedded in production systems like Home Assistant. Install it if you need to communicate with Modbus devices; the only caveat is to review API_changes when upgrading between minor versions, as the project does not follow semantic versioning.
Install
pymodbus on PyPI
Before you install
Installation is straightforward with no runtime dependencies by default; pyserial is optional for serial communication. The project is actively maintained with a release just 1 day old, tested across Python 3.10–3.14 on Windows, Linux, and macOS, and carries 2754 GitHub stars.
Requires Python >= 3.10.0; serial communication requires optional pyserial dependency (install with pip install pymodbus[serial]).
License in practice
BSD-3-Clause is a permissive license allowing commercial and private use with minimal restrictions; you must include the license text and disclaimer but face no copyleft obligations.
Quickstart
pip install pymodbus
from pymodbus.client import ModbusSerialClient
client = ModbusSerialClient(method='rtu', port='/dev/ttyUSB0')
client.connect()
result = client.read_holding_registers(0, 10)
client.close()
Verify before relying
- Whether the 100% test coverage claim and cross-platform CI testing are current as of version 3.15.0.
- Performance characteristics under high-volume device simulation (hundreds of devices mentioned in description).
- Specific non-standard device limitations beyond the general statement in the description.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,788,026 / month, #3,561 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleFramework :: AsyncIOIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: MacOS :: MacOS XOperating System :: MicrosoftOperating System :: OS IndependentOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: System :: NetworkingTopic :: Utilities |
Evidence: pymodbus-3.15.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “modbus client server library”
- pymodbusPyModbus is a complete Modbus protocol implementation providing…
- pyModbusTCPA pure-Python Modbus/TCP client and server library for reading and…
- uModbusuModbus is a pure Python implementation of the Modbus protocol that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also minimalmodbus · pyModbusTCP · async-modbus · uModbus · nibe · huawei-solar · pystiebeleltron · goodwe · powerbot-client · bacpypes3