{ "info": { "author": "Matthew Einhorn", "author_email": "moiein2000@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Scientific/Engineering", "Topic :: System :: Hardware" ], "description": "PyBarst is a python bindings for the Barst client API.\r\n\r\nThis project provides a python interface to the Barst server project.\r\nBarst is a server which provides access to commonly used hardware in the lab,\r\ne.g. FTDI USB devices, RTV cameras, serial ports etc.\r\n\r\nThe wheels come with the Barst executable and therefore does not need\r\nto be installed separately. The path to the executable can be found in\r\n`pybarst.dep_bins`.\r\n\r\nFor more information: http://matham.github.io/pybarst/index.html\r\n\r\nTo install https://matham.github.io/pybarst/installation.html\r\n\r\n.. image:: https://ci.appveyor.com/api/projects/status/q9om4pu4og1kkdut/branch/master?svg=true\r\n :target: https://ci.appveyor.com/project/matham/pybarst/branch/master\r\n :alt: Appveyor status\r\n\r\n.. image:: https://img.shields.io/pypi/pyversions/pybarst.svg\r\n :target: https://pypi.python.org/pypi/pybarst/\r\n :alt: Supported Python versions\r\n\r\n.. image:: https://img.shields.io/pypi/v/pybarst.svg\r\n :target: https://pypi.python.org/pypi/pybarst/\r\n :alt: Latest Version on PyPI\r\n\r\nUsage example\r\n-------------\r\n\r\nStarting a server::\r\n\r\n >>> # create a local server instance with a pipe named TestPipe. Since not\r\n >>> # provided, the executable is searched for in pybarst.dep_bins and in\r\n >>> # Program Files.\r\n >>> server = BarstServer(pipe_name=r'\\\\.\\pipe\\TestPipe')\r\n >>> # now actually create the server and start it running\r\n >>> server.open_server()\r\n >>> # Connect to a server running on remote computer named PC_Name using a pipe named TestPipe\r\n >>> server2 = BarstServer(pipe_name=r'\\\\PC_Name\\pipe\\TestPipe')\r\n >>> # now open the connection to the remote server\r\n >>> server2.open_server()\r\n\r\nGet the current server time::\r\n\r\n >>> server.clock()\r\n (1.5206475727928106, 13045896424.049448)\r\n\r\nAn example using the RTV-4 video card::\r\n\r\n >>> from pybarst.core.server import BarstServer\r\n >>> from pybarst.rtv import RTVChannel\r\n\r\n >>> server = BarstServer(pipe_name=r'\\\\.\\pipe\\TestPipe')\r\n >>> server.open_server()\r\n >>> print(server.get_manager('rtv'))\r\n {'version': 1080L, 'chan': 1, 'chan_id': 'RTVMan'}\r\n\r\n >>> # for the code below, there should be a RTV-4 like device connected, with\r\n >>> # a port 0 available\r\n >>> rtv = RTVChannel(server=server, chan=0, video_fmt='full_NTSC', frame_fmt='rgb24', lossless=False)\r\n >>> rtv.open_channel()\r\n >>> rtv.set_state(state=True)\r\n\r\n >>> # data is a buffer containing the raw image data\r\n >>> time, data = rtv.read()\r\n >>> print(time, len(data), rtv.buffer_size)\r\n (12865.015067682945, 921600, 921600L)\r\n >>> time, data = rtv.read()\r\n >>> print(time, len(data), rtv.buffer_size)\r\n (12865.048412758983, 921600, 921600L)\r\n >>> # remove any data queued, otherwise read will return any waiting data\r\n >>> rtv.set_state(state=False, flush=True)\r\n\r\nA example using the windows serial port::\r\n\r\n >>> from pybarst.core.server import BarstServer\r\n >>> from pybarst.serial import SerialChannel\r\n\r\n >>> server = BarstServer(pipe_name=r'\\\\.\\pipe\\TestPipe')\r\n >>> server.open_server()\r\n >>> print(server.get_manager('serial'))\r\n {'version': 498139398L, 'chan': 0, 'chan_id': 'SerMan'}\r\n\r\n >>> # for this example, COM3 should have a loopback cable connected to it.\r\n >>> serial = SerialChannel(server=server, port_name='COM3', max_write=32, max_read=32)\r\n >>> serial.open_channel()\r\n\r\n >>> time, val = serial.write(value='How are you today?', timeout=10000)\r\n >>> print(time, val)\r\n (1931.5567431509603, 18)\r\n >>> # read the exact number of chars written.\r\n >>> time, val = serial.read(read_len=len('How are you today?'), timeout=10000)\r\n >>> print(time, val)\r\n (1931.5607736011307, 'How are you today?')\r\n\r\n >>> serial.close_channel_server()", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://matham.github.io/pybarst/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "PyBarst", "package_url": "https://pypi.org/project/PyBarst/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/PyBarst/", "project_urls": { "Homepage": "http://matham.github.io/pybarst/" }, "release_url": "https://pypi.org/project/PyBarst/2.1/", "requires_dist": null, "requires_python": "", "summary": "An interface to Barst.", "version": "2.1" }, "last_serial": 2238956, "releases": { "2.1": [ { "comment_text": "", "digests": { "md5": "4bba4797b210c6cbac2a9ea03b145d4a", "sha256": "cc2c0b184de0b1ab7c4eab3108f90a4e431c456208101741a809033d22498026" }, "downloads": -1, "filename": "PyBarst-2.1-cp27-cp27m-win32.whl", "has_sig": false, "md5_digest": "4bba4797b210c6cbac2a9ea03b145d4a", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 2125892, "upload_time": "2016-07-22T21:18:28", "url": "https://files.pythonhosted.org/packages/6f/ef/1afc99d660c7df51ed5d128dce94a71e1cb60dd85a5cdd6d3e0fa6ff85de/PyBarst-2.1-cp27-cp27m-win32.whl" }, { "comment_text": "", "digests": { "md5": "6295fdfd1193b59a3466501de707b884", "sha256": "6797d489791bf34accca30123885b640dd7b2f27f29e00dd6167cc6144651c89" }, "downloads": -1, "filename": "PyBarst-2.1-cp27-cp27m-win_amd64.whl", "has_sig": false, "md5_digest": "6295fdfd1193b59a3466501de707b884", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 2394221, "upload_time": "2016-07-22T21:18:23", "url": "https://files.pythonhosted.org/packages/37/21/a21a8e59ac0e58fd26fcc296e9dc1faee421a944796be04c721e3420261c/PyBarst-2.1-cp27-cp27m-win_amd64.whl" }, { "comment_text": "", "digests": { "md5": "fe72a8931314d348ce8ea08737350e37", "sha256": "9a38bd4f4b2d566cd56f9cd033e0707f3cf690e3450ddf16b600633a5714ddb4" }, "downloads": -1, "filename": "PyBarst-2.1-cp34-cp34m-win32.whl", "has_sig": false, "md5_digest": "fe72a8931314d348ce8ea08737350e37", "packagetype": "bdist_wheel", "python_version": "cp34", "requires_python": null, "size": 2122998, "upload_time": "2016-07-22T21:18:38", "url": "https://files.pythonhosted.org/packages/96/b1/74cbb8d108d2f51749e9817b6620e81e63363447f3499bce1099f381913d/PyBarst-2.1-cp34-cp34m-win32.whl" }, { "comment_text": "", "digests": { "md5": "faf72fe0ba5f96c326ff22404cccaa80", "sha256": "0c71d3b3b29b555d02013f856d6afec15d9a04218dff258e728c59e1322df9c3" }, "downloads": -1, "filename": "PyBarst-2.1-cp34-cp34m-win_amd64.whl", "has_sig": false, "md5_digest": "faf72fe0ba5f96c326ff22404cccaa80", "packagetype": "bdist_wheel", "python_version": "cp34", "requires_python": null, "size": 2389816, "upload_time": "2016-07-22T21:18:33", "url": "https://files.pythonhosted.org/packages/2d/cc/bd8774f703a8629070e8396dfa9cbac0f73c3d43d37665c01a693010abdb/PyBarst-2.1-cp34-cp34m-win_amd64.whl" }, { "comment_text": "", "digests": { "md5": "ec5d8bfa683b0b1c209e316e5b780665", "sha256": "2aba478094c35f3c79eff72fe3cc6f6ae01ee1dc142e36a9da9e189b0e5e2213" }, "downloads": -1, "filename": "PyBarst-2.1.zip", "has_sig": false, "md5_digest": "ec5d8bfa683b0b1c209e316e5b780665", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13491, "upload_time": "2016-07-22T21:18:42", "url": "https://files.pythonhosted.org/packages/4d/64/9acf748a552246f36397b8e094fddab2276ef4c93fecfc05d36c91d77659/PyBarst-2.1.zip" } ], "2.1.dev0": [] }, "urls": [ { "comment_text": "", "digests": { "md5": "4bba4797b210c6cbac2a9ea03b145d4a", "sha256": "cc2c0b184de0b1ab7c4eab3108f90a4e431c456208101741a809033d22498026" }, "downloads": -1, "filename": "PyBarst-2.1-cp27-cp27m-win32.whl", "has_sig": false, "md5_digest": "4bba4797b210c6cbac2a9ea03b145d4a", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 2125892, "upload_time": "2016-07-22T21:18:28", "url": "https://files.pythonhosted.org/packages/6f/ef/1afc99d660c7df51ed5d128dce94a71e1cb60dd85a5cdd6d3e0fa6ff85de/PyBarst-2.1-cp27-cp27m-win32.whl" }, { "comment_text": "", "digests": { "md5": "6295fdfd1193b59a3466501de707b884", "sha256": "6797d489791bf34accca30123885b640dd7b2f27f29e00dd6167cc6144651c89" }, "downloads": -1, "filename": "PyBarst-2.1-cp27-cp27m-win_amd64.whl", "has_sig": false, "md5_digest": "6295fdfd1193b59a3466501de707b884", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 2394221, "upload_time": "2016-07-22T21:18:23", "url": "https://files.pythonhosted.org/packages/37/21/a21a8e59ac0e58fd26fcc296e9dc1faee421a944796be04c721e3420261c/PyBarst-2.1-cp27-cp27m-win_amd64.whl" }, { "comment_text": "", "digests": { "md5": "fe72a8931314d348ce8ea08737350e37", "sha256": "9a38bd4f4b2d566cd56f9cd033e0707f3cf690e3450ddf16b600633a5714ddb4" }, "downloads": -1, "filename": "PyBarst-2.1-cp34-cp34m-win32.whl", "has_sig": false, "md5_digest": "fe72a8931314d348ce8ea08737350e37", "packagetype": "bdist_wheel", "python_version": "cp34", "requires_python": null, "size": 2122998, "upload_time": "2016-07-22T21:18:38", "url": "https://files.pythonhosted.org/packages/96/b1/74cbb8d108d2f51749e9817b6620e81e63363447f3499bce1099f381913d/PyBarst-2.1-cp34-cp34m-win32.whl" }, { "comment_text": "", "digests": { "md5": "faf72fe0ba5f96c326ff22404cccaa80", "sha256": "0c71d3b3b29b555d02013f856d6afec15d9a04218dff258e728c59e1322df9c3" }, "downloads": -1, "filename": "PyBarst-2.1-cp34-cp34m-win_amd64.whl", "has_sig": false, "md5_digest": "faf72fe0ba5f96c326ff22404cccaa80", "packagetype": "bdist_wheel", "python_version": "cp34", "requires_python": null, "size": 2389816, "upload_time": "2016-07-22T21:18:33", "url": "https://files.pythonhosted.org/packages/2d/cc/bd8774f703a8629070e8396dfa9cbac0f73c3d43d37665c01a693010abdb/PyBarst-2.1-cp34-cp34m-win_amd64.whl" }, { "comment_text": "", "digests": { "md5": "ec5d8bfa683b0b1c209e316e5b780665", "sha256": "2aba478094c35f3c79eff72fe3cc6f6ae01ee1dc142e36a9da9e189b0e5e2213" }, "downloads": -1, "filename": "PyBarst-2.1.zip", "has_sig": false, "md5_digest": "ec5d8bfa683b0b1c209e316e5b780665", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13491, "upload_time": "2016-07-22T21:18:42", "url": "https://files.pythonhosted.org/packages/4d/64/9acf748a552246f36397b8e094fddab2276ef4c93fecfc05d36c91d77659/PyBarst-2.1.zip" } ] }