tcp-modbus-aio
asyncio client library for tcp modbus devices. built on top of umodbus but extended for more industrial robustness and asyncio compat. the umodbus documentation is recommended reading to have any hope of using this code.
narrowly constructed for the use cases of Tutor Intelligence, but feel free to post an issue or PR if relevant to you.
usage
create a TCPModbusClient. once you have it, you can call the following methods on it:
await conn.send_modbus_message(request_function, **kwargs): sends aumodbus.functions.ModbusFunctionto the modbus device and returns the correspondingModbusFunctionreply.await conn.test_connection(): sends a modbus message to the device to ensure it's still operational (currently hardcoded to read coil 0) and return boolean of whether it succeeded. is implemented as a cached awaitable to allow you to spam this call.await conn.clear_tcp_connection(): kill the current TCP socket (a new one will automatically be created for the next request)await conn.log_watch(msg, memo_key="system_temperature", expiry_period_s=10, hz=1): spins up a background coroutine to log the result of that message for the nextexpiry_periodseconds athzfrequency.memo_keyis used to allow multiple calls tolog_watchwithout having overlapping log watch loops.await conn.close(): for cleaning up the connection (kills TCP conn and ping loop)
Metadata
Release files for tcp-modbus-aio 0.4.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tcp_modbus_aio-0.4.8.tar.gz | 10.0 kB | With provenance | Details for tcp_modbus_aio-0.4.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tcp_modbus_aio-0.4.8-py3-none-any.whl | Python 3 | none | any | Details for tcp_modbus_aio-0.4.8-py3-none-any.whl |
Total release size: 21.6 kB
Release files / tcp_modbus_aio-0.4.8.tar.gz
| Download URL | tcp_modbus_aio-0.4.8.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f3de1a57ff1e66f6d571d4f51e59238fadb45ad0406718e812ef63b7c8995b1
|
|
BLAKE2b-256 checksum How to use checksums |
cb35836712d44a0393d08579aa2f38b4b0d3da92a2d90525d7af0af77c8cb776
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.
Transparency logRelease files / tcp_modbus_aio-0.4.8-py3-none-any.whl
| Download URL | tcp_modbus_aio-0.4.8-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c051d508a02fc17adcb0870f59d5b2fb2d3eace69d0efed38829e96fe5465dd
|
|
BLAKE2b-256 checksum How to use checksums |
c19700b43748d714850ed10b9d26224206139176c5ad90be109ec5e6e2559633
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.
Transparency logSecurity for tcp-modbus-aio 0.4.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for tcp_modbus_aio-0.4.8.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.