:target: https://travis-ci.org/AdvancedClimateSystems/Tolk
.. image:: https://coveralls.io/repos/AdvancedClimateSystems/Tolk/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/AdvancedClimateSystems/Tolk?branch=master
.. image:: https://img.shields.io/pypi/v/tolk.svg
:target: https://pypi.python.org/pypi/Tolk/
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
:class:`Dispatcher` to the :class:`modbus_tk.modbus_tcp.TcpMaster` which in
turn will request a Modbus slave at `localhost:502`.
.. code:: python
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`_.
.. External References:
.. _Advanced Climate Systems: http://advancedclimate.nl
.. _GitHub: https://github.com/AdvancedClimateSystems/Tolk
.. _modbus_tcp_slave.py: scripts/modbus_tcp_slave.py
.. _Mozilla Public License: LICENSE
.. _pytest: http://pytest.org/latest/
.. _json_rpc_client.py: scripts/json_rpc_client.py
.. _tolk_server.py: scripts/tolk.py
.. _Read the Docs: https://tolk.readthedocs.org/en/latest/
Metadata
Release files for Tolk 0.2.1
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 |
|---|---|---|---|---|
| Tolk-0.2.1.tar.gz | 6.9 kB | Without provenance | Details for Tolk-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Tolk-0.2.1-py2-none-any.whl | Python 2 | none | any | Details for Tolk-0.2.1-py2-none-any.whl |
Total release size: 18.2 kB
Release files / Tolk-0.2.1.tar.gz
| Download URL | Tolk-0.2.1.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
108d63b10dd4a5c52191271ed502eaf1f20d7661eeb388700414005ba43a43b1
|
|
BLAKE2b-256 checksum How to use checksums |
b161d0255b2acff5d1c739a28d05a6539c7ecf12738df3fe65bcbf50b8fae431
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Tolk-0.2.1-py2-none-any.whl
| Download URL | Tolk-0.2.1-py2-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
bc757fbbe7d54c90f43601b84547fefce5f8142ccbce41f2697115fe152cbc0f
|
|
BLAKE2b-256 checksum How to use checksums |
670a8986dd6de3e17345411f55908e1e63a34ebbd80b289b0d50deba8b0f84d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Tolk 0.2.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.