{ "info": { "author": "Loic Lefebvre", "author_email": "loic.celine@free.fr", "bugtrack_url": null, "classifiers": [], "description": "pyModbusTCP\n===========\n\nA simple Modbus/TCP client library for Python.\n\nSince version 0.1.0, a server is also available for test purpose only (don't use in project).\n\npyModbusTCP is pure Python code without any extension or external module\ndependency.\n\nTest\n----\n\nThe module is currently test on Python 2.6, 2.7, 3.2, 3.3, 3.4 and 3.5.\n\nStatus:\n\n.. image:: https://api.travis-ci.org/sourceperl/pyModbusTCP.svg?branch=master\n :target: http://travis-ci.org/sourceperl/pyModbusTCP\n\n.. image:: https://readthedocs.org/projects/pymodbustcp/badge/?version=latest\n :target: http://pymodbustcp.readthedocs.io/en/latest/?badge=latest\n\nSetup\n-----\n\nYou can install this package from:\n\nPyPI, the easy way:\n\n::\n\n sudo pip install pyModbusTCP\n\nGitHub:\n\n::\n\n git clone https://github.com/sourceperl/pyModbusTCP.git\n cd pyModbusTCP\n sudo python setup.py install\n\nInstall the current devel-release:\n\n::\n\n sudo pip install git+https://github.com/sourceperl/pyModbusTCP.git@devel\n\nUsage example\n-------------\n\nSee examples/ for full scripts.\n\ninclude (for all samples)\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n from pyModbusTCP.client import ModbusClient\n\nmodule init (TCP always open)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n # TCP auto connect on first modbus request\n c = ModbusClient(host=\"localhost\", port=502, auto_open=True)\n\nmodule init (TCP open/close for each request)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n # TCP auto connect on modbus request, close after it\n c = ModbusClient(host=\"127.0.0.1\", auto_open=True, auto_close=True)\n\nmodule init (with accessor functions)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n c = ModbusClient()\n c.host(\"localhost\")\n c.port(502)\n # managing TCP sessions with call to c.open()/c.close()\n c.open()\n\nRead 2x 16 bits registers at modbus address 0 :\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n regs = c.read_holding_registers(0, 2)\n if regs:\n print(regs)\n else:\n print(\"read error\")\n\nWrite value 44 and 55 to registers at modbus address 10 :\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n if c.write_multiple_registers(10, [44,55]):\n print(\"write ok\")\n else:\n print(\"write error\")\n\nDocumentation\n-------------\n\nDocumentation available online at http://pymodbustcp.readthedocs.io/.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sourceperl/pyModbusTCP", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyModbusTCP", "package_url": "https://pypi.org/project/pyModbusTCP/", "platform": "any", "project_url": "https://pypi.org/project/pyModbusTCP/", "project_urls": { "Homepage": "https://github.com/sourceperl/pyModbusTCP" }, "release_url": "https://pypi.org/project/pyModbusTCP/0.1.8/", "requires_dist": null, "requires_python": "", "summary": "A simple Modbus/TCP library for Python", "version": "0.1.8" }, "last_serial": 4377846, "releases": { "0.0.13": [ { "comment_text": "", "digests": { "md5": "9e9ed6cc5efe55cf6ab805a4c2183a24", "sha256": "87ff25ec385ea2c56c970548fcd9598915172c14af4cf5438cd978ef52bc5240" }, "downloads": -1, "filename": "pyModbusTCP-0.0.13.tar.gz", "has_sig": false, "md5_digest": "9e9ed6cc5efe55cf6ab805a4c2183a24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10402, "upload_time": "2015-12-24T09:26:02", "url": "https://files.pythonhosted.org/packages/ee/9d/05b5e2c545c0b654ae55c2de26dbe367326ec52ff7b2fa8609091804e8a7/pyModbusTCP-0.0.13.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5c6a9c99327c21a4f3fc949395fd49e5", "sha256": "7fce702e9c34659ba8ead0fc5f0346e457aca1568c164d98c25c52e3fb7c9bf3" }, "downloads": -1, "filename": "pyModbusTCP-0.1.1.tar.gz", "has_sig": false, "md5_digest": "5c6a9c99327c21a4f3fc949395fd49e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13263, "upload_time": "2016-05-30T13:59:56", "url": "https://files.pythonhosted.org/packages/c3/b5/c194019b604f38918f32fba7580a22a9b3246f22f33a3e2e3e6b3166df2a/pyModbusTCP-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b3e6a2ee20b62614f4f9a74837f21a4f", "sha256": "422b6fc67e3bed641563e9e304aaa6ccd1d15e28cf34900996356e5ce958fa6e" }, "downloads": -1, "filename": "pyModbusTCP-0.1.2.tar.gz", "has_sig": false, "md5_digest": "b3e6a2ee20b62614f4f9a74837f21a4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13366, "upload_time": "2017-09-28T14:02:03", "url": "https://files.pythonhosted.org/packages/77/86/ce121e9ee69fac5c980b52e201ab8059c3d8d83a031f6c3e3961e53349e4/pyModbusTCP-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "baa966b17344b803c2ceb53bae203f35", "sha256": "03183aea67908593886dfcbeb024482af4ff5a073a6bbf9f8b2ea7546fe6ddd1" }, "downloads": -1, "filename": "pyModbusTCP-0.1.3.tar.gz", "has_sig": false, "md5_digest": "baa966b17344b803c2ceb53bae203f35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14666, "upload_time": "2017-09-29T07:10:16", "url": "https://files.pythonhosted.org/packages/5a/d2/3afe1033c93712f2a99f347119b8c2584fd2a2ec11cd5cd71fd362f55aed/pyModbusTCP-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "9ace0da24514b2ecd7282574d0b145f9", "sha256": "15e9e9d9f6c630675e9ece466ef91fa75f8d00a88c19dab3f0efeb02ecc7c531" }, "downloads": -1, "filename": "pyModbusTCP-0.1.4.tar.gz", "has_sig": false, "md5_digest": "9ace0da24514b2ecd7282574d0b145f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14706, "upload_time": "2017-11-13T08:41:33", "url": "https://files.pythonhosted.org/packages/68/b2/756e12ee22eb075fd0b02c026929252b86de30989f7079933b2deb8f8590/pyModbusTCP-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "b83606c3f159aa03018387b5f85daee1", "sha256": "9a4ccc33a7435cf21d4164dbbd4ae2a8c9d5f6f922df340a09e1477c9b4375b3" }, "downloads": -1, "filename": "pyModbusTCP-0.1.5.tar.gz", "has_sig": false, "md5_digest": "b83606c3f159aa03018387b5f85daee1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14829, "upload_time": "2017-11-24T08:38:40", "url": "https://files.pythonhosted.org/packages/20/e2/08b35f7feb4d20361c9641bea695ed475ff867156129ae8878d8f3825f9b/pyModbusTCP-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "efeea8252a23cf98707f7021219adc8d", "sha256": "8947912cf513dfe79a752103208b935eed10d741322818bb0ce30e32ae2b3a8e" }, "downloads": -1, "filename": "pyModbusTCP-0.1.6.tar.gz", "has_sig": false, "md5_digest": "efeea8252a23cf98707f7021219adc8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14989, "upload_time": "2018-05-14T11:37:24", "url": "https://files.pythonhosted.org/packages/02/2a/7001deadd3ce0a88ad2bf5fc81a0f9ac88cf3c387deb34a1920bd66cba13/pyModbusTCP-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "931b88891b56b19e83fac8d671ac96e4", "sha256": "4c8f38cef6bafb9c8348d778622076b795f43b3c3c1ef875a69ac5f13f09c8e9" }, "downloads": -1, "filename": "pyModbusTCP-0.1.7.tar.gz", "has_sig": false, "md5_digest": "931b88891b56b19e83fac8d671ac96e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15111, "upload_time": "2018-08-20T11:35:47", "url": "https://files.pythonhosted.org/packages/29/10/213022870dda3a29f0411b59d89914c4a81e799f8280176e9164cea56238/pyModbusTCP-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "3e4bcca1a69b226cff1661e6b3ce8a80", "sha256": "61721105608bd533a703c15f62e431426f986398e2fdbe7f9729ddc58678a90b" }, "downloads": -1, "filename": "pyModbusTCP-0.1.8.tar.gz", "has_sig": false, "md5_digest": "3e4bcca1a69b226cff1661e6b3ce8a80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15348, "upload_time": "2018-10-15T15:04:13", "url": "https://files.pythonhosted.org/packages/86/2f/dba4265b4072116350051f76fc57fe22b1fb24ee253ba581cd18f35038e6/pyModbusTCP-0.1.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3e4bcca1a69b226cff1661e6b3ce8a80", "sha256": "61721105608bd533a703c15f62e431426f986398e2fdbe7f9729ddc58678a90b" }, "downloads": -1, "filename": "pyModbusTCP-0.1.8.tar.gz", "has_sig": false, "md5_digest": "3e4bcca1a69b226cff1661e6b3ce8a80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15348, "upload_time": "2018-10-15T15:04:13", "url": "https://files.pythonhosted.org/packages/86/2f/dba4265b4072116350051f76fc57fe22b1fb24ee253ba581cd18f35038e6/pyModbusTCP-0.1.8.tar.gz" } ] }