{ "info": { "author": "Matthias Wutte", "author_email": "matthias.wutte@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# simple-hdlc\nSimple HDLC Protocol\n\nUsed for simple communication with devices. Framing of serial data.\n\n## Usage\n\nUse with instance of In/Output with read and write methods (like pyserial).\n\nBlocking Read:\n\n```python\nfrom simple_hdlc import HDLC\nimport serial\n\ns = serial.serial_for_url('loop://', timeout=1)\n# or\n# s = serial.Serial('/dev/tty0')\n\nh = HDLC(s)\nh.sendFrame(b\"hello\")\nprint h.readFrame() # Blocking\n```\n\nReader Thread with callback:\n\n```python\nfrom simple_hdlc import HDLC\nimport serial\n\ns = serial.serial_for_url('loop://', timeout=1)\nh = HDLC(s)\n# or\n# s = serial.Serial('/dev/tty0')\n\ndef frame_callback(data):\n print(data)\n\nh.startReader(onFrame=frame_callback)\nh.sendFrame(b\"hello\")\n```", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wuttem/simple-hdlc", "keywords": "simple-hdlc", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "simple-hdlc", "package_url": "https://pypi.org/project/simple-hdlc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/simple-hdlc/", "project_urls": { "Homepage": "https://github.com/wuttem/simple-hdlc" }, "release_url": "https://pypi.org/project/simple-hdlc/0.2/", "requires_dist": null, "requires_python": null, "summary": "Simple HDLC Protocol", "version": "0.2" }, "last_serial": 2551314, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e4494fd6f10d28173fe75f6c0cd4d6bb", "sha256": "cff679e877143f2abd35b3efcf7bbfea26572f14a74c682edf1c5a9c74dc7837" }, "downloads": -1, "filename": "simple_hdlc-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "e4494fd6f10d28173fe75f6c0cd4d6bb", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4657, "upload_time": "2016-12-20T12:17:50", "url": "https://files.pythonhosted.org/packages/bb/da/1ebde027d55762189e2a1f055e8a0f291b3cb460f1c11dc04b4e67b5086f/simple_hdlc-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "840cae80a1af652e541cc326e9d50324", "sha256": "f13d47db7b9ee7fd92251c8e52bcd2abf6f0110c714494908dda9192a0b29003" }, "downloads": -1, "filename": "simple-hdlc-0.1.tar.gz", "has_sig": false, "md5_digest": "840cae80a1af652e541cc326e9d50324", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3363, "upload_time": "2016-12-20T12:17:51", "url": "https://files.pythonhosted.org/packages/78/f5/e7f367e94d6795bed18e752d76b09593b66d48de8211cf71f86759071934/simple-hdlc-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e58b46e4e0f9e8813ce1e1998a2251d7", "sha256": "3292eeac691f6cc632dddfe2292a1a954961dd5ba7a595ffc4c76feec0468060" }, "downloads": -1, "filename": "simple_hdlc-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "e58b46e4e0f9e8813ce1e1998a2251d7", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5247, "upload_time": "2017-01-03T09:59:43", "url": "https://files.pythonhosted.org/packages/2e/40/060132b0005a356f5e2bc125163facbd371aade4398014a08214a10e34c7/simple_hdlc-0.2-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e58b46e4e0f9e8813ce1e1998a2251d7", "sha256": "3292eeac691f6cc632dddfe2292a1a954961dd5ba7a595ffc4c76feec0468060" }, "downloads": -1, "filename": "simple_hdlc-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "e58b46e4e0f9e8813ce1e1998a2251d7", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5247, "upload_time": "2017-01-03T09:59:43", "url": "https://files.pythonhosted.org/packages/2e/40/060132b0005a356f5e2bc125163facbd371aade4398014a08214a10e34c7/simple_hdlc-0.2-py2-none-any.whl" } ] }