Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

JSON-RPC proxy for talking Modbus over RTU and TCP.

Project Description

Tolk

Tolk exposes a JSON-RPC API to talk Modbus over RTU or TCP and is written in Python. The source can be found on GitHub. Documentation is available at Read the Docs.

Quickstart

Below you can find sample code how to start Tolk listening at a Unix Domain Socket for JSON-RPC request. Tolk will delegate the requests via the Dispatcher to the modbus_tk.modbus_tcp.TcpMaster which in turn will request a Modbus slave at localhost:502.

from modbus_tk.modbus_tcp import TcpMaster
from SocketServer import UnixStreamServer

from tolk import Dispatcher, Handler

# The TcpMaster will fire requests to a Modbus slave at localhost:502.
modbus_master = TcpMaster('localhost', 502)
dispatcher = Dispatcher(modbus_master)

server = UnixStreamServer('/tmp/tolk.sock', Handler)
server.dispatcher = dispatcher

server.serve_forever()

License

This software is licensed under Mozilla Public License. © 2015 Advanced Climate Systems.

Release History

Release History

This version
History Node

0.2.1

History Node

0.2.0

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Tolk-0.2.1-py2-none-any.whl (11.2 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Dec 1, 2015
Tolk-0.2.1.tar.gz (6.9 kB) Copy SHA256 Checksum SHA256 Source Dec 1, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting