{ "info": { "author": "SimLeek", "author_email": "josh.miklos@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "# robotserial\n\nrobotserial is a library that transmits robot sensor and actuator\ninformation through serial ports. It supports USBs as well as any other\nport that supports serial data transmission. Multiple serial ports may\nbe used at once.\n\n# Table of Contents\n1. [Example](#example)\n1. [Installation](#installation)\n1. [License](#license)\n\n-----\n\n## Example\n\nThis will print all values from an attached accelerometer for one\nsecond:\n\n from robotserial import SerialStateMachineThread\n import time\n\n def print_accelerometer(a, b, c):\n print( \"accelerometer xyz: [{}, {}, {}]\".format(a,b,c))\n\n ssmt = SerialStateMachineThread()\n ssmt.start() # accelerometer currently needs to be found before it can be accessed\n\n ssmt.accelerometer.set_callback( print_accelerometer )\n\n time.sleep(1)\n ssmt.join()\n\nThe corresponding code to send the data from an Arduino is currently:\n\n Serial.write(\"I\");\n Serial.write(\"\\na\");\n Serial.write(aX.bytes, 4);Serial.write(aY.bytes, 4);Serial.write(aZ.bytes, 4);\n Serial.write(\"\\ng\");\n Serial.write(gX.bytes, 4);Serial.write(gY.bytes, 4);Serial.write(gZ.bytes, 4);\n Serial.write(\"\\nm\");\n Serial.write(mX.bytes, 4);Serial.write(mY.bytes, 4);Serial.write(mZ.bytes, 4);\n Serial.write(\"\\n\");\n\nThis will change once a C/C++ library is made for embedded\n devices.\n\n## Installation\n\n $ pip install robotserial\n\nrobotserial is distributed on [PyPI](https://pypi.org) as a universal\nwheel and is available on Linux/macOS and Windows and supports\nPython 2.7/3.5+ and PyPy.\n\n## License\n\nrobotserial is distributed under the terms of both\n\n- [MIT License](https://choosealicense.com/licenses/mit)\n- [Apache License, Version 2.0](https://choosealicense.com/licenses/apache-2.0)\n\nat your option.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/SimLeek/robotserial", "keywords": "", "license": "MIT/Apache-2.0", "maintainer": "SimLeek", "maintainer_email": "josh.miklos@gmail.com", "name": "robotserial", "package_url": "https://pypi.org/project/robotserial/", "platform": "", "project_url": "https://pypi.org/project/robotserial/", "project_urls": { "Homepage": "https://github.com/SimLeek/robotserial" }, "release_url": "https://pypi.org/project/robotserial/0.0.2/", "requires_dist": [ "pyserial; python_version <= \"2.7\"" ], "requires_python": "", "summary": "", "version": "0.0.2" }, "last_serial": 4049179, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "965dec2223958f8dce0d356b22cac487", "sha256": "e7fad64de035fa24a3b48e2baad0a3ae81b0e09c0ae030486a074ee632293319" }, "downloads": -1, "filename": "robotserial-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "965dec2223958f8dce0d356b22cac487", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4302, "upload_time": "2018-07-10T03:33:57", "url": "https://files.pythonhosted.org/packages/cf/a1/36e395637616f550a0131b6deeeb236dfcf55a89341f3d97340d4c8ea2bc/robotserial-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ee30e4367e7f7e91844fea56b34d9b2", "sha256": "49d461151e730d575f6df36693654c7bc571b7d1cd09f649fc2ea54fe470674b" }, "downloads": -1, "filename": "robotserial-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2ee30e4367e7f7e91844fea56b34d9b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7842, "upload_time": "2018-07-10T03:33:58", "url": "https://files.pythonhosted.org/packages/b7/17/57c489398ce4e260349e75083210711682052ef0c41cff4e8e1b49e69118/robotserial-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "c7b4275f36fb130ba33d07df7556a8bb", "sha256": "6699c0b7aa5bfe334fcfd636f39aa8d5942211cba9435ca94861567fb38db972" }, "downloads": -1, "filename": "robotserial-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c7b4275f36fb130ba33d07df7556a8bb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5442, "upload_time": "2018-07-11T00:26:05", "url": "https://files.pythonhosted.org/packages/d5/5a/0ba4adefc29f44b94c5471a15713b57c6a12b26dea445f7d57b93d54530e/robotserial-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b412757377d8252bd20b5eda1eebbdda", "sha256": "bdd2e2c6720f9856b1787d536f50a2f8cc64db27b53d1e057430fdf8f2dd7038" }, "downloads": -1, "filename": "robotserial-0.0.2.tar.gz", "has_sig": false, "md5_digest": "b412757377d8252bd20b5eda1eebbdda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8588, "upload_time": "2018-07-11T00:26:07", "url": "https://files.pythonhosted.org/packages/ec/99/cf078420e499fbe2fff05e561b958aa3f5c6f78554d1a03240ba42c72b30/robotserial-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c7b4275f36fb130ba33d07df7556a8bb", "sha256": "6699c0b7aa5bfe334fcfd636f39aa8d5942211cba9435ca94861567fb38db972" }, "downloads": -1, "filename": "robotserial-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c7b4275f36fb130ba33d07df7556a8bb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5442, "upload_time": "2018-07-11T00:26:05", "url": "https://files.pythonhosted.org/packages/d5/5a/0ba4adefc29f44b94c5471a15713b57c6a12b26dea445f7d57b93d54530e/robotserial-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b412757377d8252bd20b5eda1eebbdda", "sha256": "bdd2e2c6720f9856b1787d536f50a2f8cc64db27b53d1e057430fdf8f2dd7038" }, "downloads": -1, "filename": "robotserial-0.0.2.tar.gz", "has_sig": false, "md5_digest": "b412757377d8252bd20b5eda1eebbdda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8588, "upload_time": "2018-07-11T00:26:07", "url": "https://files.pythonhosted.org/packages/ec/99/cf078420e499fbe2fff05e561b958aa3f5c6f78554d1a03240ba42c72b30/robotserial-0.0.2.tar.gz" } ] }