Skip to main content

A Python3 MODBUS TCP server for testing purposes

Project description

modbus-tcp-server

PyPI PyPI version PyPI Wheel

A thread-based MODBUS TCP server for testing purposes.

Installation

Just type

pip install modbus-tcp-server

And to run it

modbus-tcp-server 127.0.0.1

Just run it without any arguments to see the command line.

Limitations

So far commands 15 (Force Multiple Coils) and 16 (Preset Multiple Registers) are unsupported.

Custom usage

To implement a custom provider ModbusTCPServer, just extend BaseDataSource to provide data of your choosing and launch it that way:

from modbus_tcp_server.network import AcceptThread
from modbus_tcp_server.data_source import BaseDataSource

class CustomDB(BaseDataSource):
    ...

c_db = CustomDB()

at = AcceptThread('0.0.0.0', 502, c_db).start()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modbus-tcp-server-0.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

modbus_tcp_server-0.1-py3.8.egg (8.1 kB view details)

Uploaded Egg

modbus_tcp_server-0.1-py2.py3-none-any.whl (9.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file modbus-tcp-server-0.1.tar.gz.

File metadata

  • Download URL: modbus-tcp-server-0.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0

File hashes

Hashes for modbus-tcp-server-0.1.tar.gz
Algorithm Hash digest
SHA256 9b853c17a003b2f461356594bb37485267d6a46c23770bc46b70a34233fe0132
MD5 69ec7e215fd960972d4134d1c791adec
BLAKE2b-256 6f24ad44e88922b6e73d74af1765b6b1f6523a5e10fd3ad55ab79c9523471dc9

See more details on using hashes here.

File details

Details for the file modbus_tcp_server-0.1-py3.8.egg.

File metadata

  • Download URL: modbus_tcp_server-0.1-py3.8.egg
  • Upload date:
  • Size: 8.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0

File hashes

Hashes for modbus_tcp_server-0.1-py3.8.egg
Algorithm Hash digest
SHA256 fa7c6b4aa03e6c2e0372bf349de01651049be5bb08c4f6215f9c3ceff1bb6b70
MD5 528ffcefc5f73430ec608be5b8435402
BLAKE2b-256 271349534c4a7985358d56c7e035a9b8b639985a039a56f18c9df2b2ab95c11e

See more details on using hashes here.

File details

Details for the file modbus_tcp_server-0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: modbus_tcp_server-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.0

File hashes

Hashes for modbus_tcp_server-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a9ed8ffecf4c3c957b6c1f2b7cf75485848c8436551a1268f75beaecebcab9fa
MD5 7332c5e8936c84c6b40e21a61a007495
BLAKE2b-256 5b2a5ac328b4c52d50d5d87baad055a541973694b8117c244329ae58c310533f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page