{ "info": { "author": "Fernando Suarez Jimenez", "author_email": "fsuarezj@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Bio-Informatics" ], "description": "# BITalino-lsl\n\nA python module called `bitalino_lsl` to stream BITalino data though the Lab Streaming Layer (LSL). This module gets data from the [BITalino](www.bitalino.com) device through the [bitalino python api](https://github.com/BITalinoWorld/revolution-python-api) and uses the [Lab Stream Layer](https://github.com/sccn/labstreaminglayer) to stream the data.\n\nThe module should work with python versions >= 2.7 although it has only been tested for:\n* Python 2.7.15\n* Python 3.6.5\n\n## Getting started\n\n### Installation\n`pip install bitalino_lsl`\n\n### Example\n\n~~~python\nimport bitalino_lsl\nfrom pylsl import StreamInlet, resolve_stream\nimport time\n\n# MAC address of the BITalino device\nMAC_ADDRESS_BITALINO_DEVICE = \"20:17:11:1A:2B:3C\"\n\n# List with channels of the BITalino device to be streamed to the LSL\n# This channels can be specified as a list or as a dictionary with their\n# position in the 10-20 system. BITalino uses bipolar electrodes so the\n# position will be defined by two points\n# CHANNELS = {0: 'Fp1-Fp2', 1: 'P3-T5'}\nCHANNELS = [0,1]\n\n# Connect with the BITalino device\ndevice = bitalino_lsl.BitalinoLSL(MAC_ADDRESS_BITALINO_DEVICE)\n\n# Create the Stream with the channels information\ndevice.create_lsl_EEG(CHANNELS)\n\n# Start the stream getting data from the BITalino device\ndevice.start()\n\n# Get the Stream to read the data from\ninlet = StreamInlet(resolve_stream('type', 'EEG')[0])\n\n# Read the BITalino data for 5 seconds\nt_end = time.time() + 5\nwhile time.time() < t_end:\n sample, timestamp = inlet.pull_sample()\n print(sample)\n\n# Stop the device\ndevice.stop()\n\n# Close the connection with the BITalino device\ndevice.close()\n~~~\n\n## Documentation\nDocumentation is available [here](https://bitalino-lsl.readthedocs.io)\n\n## License\nThis project is licensed under the [GNU GPL v3](LICENSE.md)\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/fsuarezj/bitalino-lsl", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "bitalino-lsl", "package_url": "https://pypi.org/project/bitalino-lsl/", "platform": "", "project_url": "https://pypi.org/project/bitalino-lsl/", "project_urls": { "Homepage": "https://github.com/fsuarezj/bitalino-lsl" }, "release_url": "https://pypi.org/project/bitalino-lsl/0.0.3/", "requires_dist": [ "bitalino", "future", "pylsl" ], "requires_python": "", "summary": "Python module to stream BITalino data though the Lab Streaming Layer (LSL)", "version": "0.0.3" }, "last_serial": 4348127, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "85df1d498e34279ce08498286a0fddfc", "sha256": "3cf484b180ba8b8d777445b599deec0ff520f38e4afcc01de9b16f9bf64a7936" }, "downloads": -1, "filename": "bitalino_lsl-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "85df1d498e34279ce08498286a0fddfc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20326, "upload_time": "2018-10-06T22:25:11", "url": "https://files.pythonhosted.org/packages/84/d5/d96b7bc1ebbf039398e033053c7140c4345702ce89225bdacd7d02c16744/bitalino_lsl-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41065b86267fd37bd598bea757ac9082", "sha256": "0d5d781cbef6b051ffc20eb559a793483d742cc3ccf6ba07d8edd579ed036bae" }, "downloads": -1, "filename": "bitalino_lsl-0.0.3.tar.gz", "has_sig": false, "md5_digest": "41065b86267fd37bd598bea757ac9082", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6210, "upload_time": "2018-10-06T22:25:13", "url": "https://files.pythonhosted.org/packages/95/a6/6b42530a9880cf6c13579c13aabfc4bbccf6bf136abd7abf8c0ac0c69c5e/bitalino_lsl-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "85df1d498e34279ce08498286a0fddfc", "sha256": "3cf484b180ba8b8d777445b599deec0ff520f38e4afcc01de9b16f9bf64a7936" }, "downloads": -1, "filename": "bitalino_lsl-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "85df1d498e34279ce08498286a0fddfc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20326, "upload_time": "2018-10-06T22:25:11", "url": "https://files.pythonhosted.org/packages/84/d5/d96b7bc1ebbf039398e033053c7140c4345702ce89225bdacd7d02c16744/bitalino_lsl-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "41065b86267fd37bd598bea757ac9082", "sha256": "0d5d781cbef6b051ffc20eb559a793483d742cc3ccf6ba07d8edd579ed036bae" }, "downloads": -1, "filename": "bitalino_lsl-0.0.3.tar.gz", "has_sig": false, "md5_digest": "41065b86267fd37bd598bea757ac9082", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6210, "upload_time": "2018-10-06T22:25:13", "url": "https://files.pythonhosted.org/packages/95/a6/6b42530a9880cf6c13579c13aabfc4bbccf6bf136abd7abf8c0ac0c69c5e/bitalino_lsl-0.0.3.tar.gz" } ] }