Metadata-Version: 1.0
Name: pyModbusTCP
Version: 0.0.3
Summary: A simple Modbus/TCP library for Python
Home-page: https://github.com/sourceperl/pyModbusTCP
Author: Loic Lefebvre
Author-email: loic.celine@free.fr
License: MIT
Description: pyModbusTCP
        ===========
        
        A simple Modbus/TCP client library for Python (beta release, use only for
        test).
        
        pyModbusTCP is pure Python code without any extension or external module
        dependency. I test it under Python 2.7 and 3.2.
        
        Setup :
        -------
        
        You can install this package from:
        
        PyPI, the easy way:
        
        ::
        
            sudo pip install pyModbusTCP  
        
        GitHub:
        
        ::
        
            git clone https://github.com/sourceperl/pyModbusTCP.git  
            cd pyModbusTCP  
            sudo python setup.py install  
        
        Usage example
        -------------
        
        See examples/ for full scripts.
        
        include and module init (for all samples)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        ::
        
            from pyModbusTCP.client import ModbusClient
            c = ModbusClient()
            c.host("localhost")
            c.port(502)
            c.open()
        
        Read 2x 16 bits registers at modbus address 0 :
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        ::
        
            print c.read_holding_registers(0, 2)
        
        Write value 44 and 55 to registers at modbus address 10 :
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        ::
        
            if c.write_multiple_registers(10, [44,55]):
                print("write ok !")
        
Platform: UNKNOWN
