Python interface to the Lab Streaming Layer
Project description
pylsl
This is the Python interface to the Lab Streaming Layer (LSL). LSL is an overlay network for real-time exchange of time series between applications, most often used in research environments. LSL has clients for many other languages and platforms that are compatible with each other.
Let us know if you encounter any bugs (ideally using the issue tracker on the GitHub project).
Installation
Prepared distributions
Note: The manylinux wheels are currently broken. We are awaiting manylinux2010 rollout. Follow here.
The following platforms are supported with direct installation from pypi
using pip: pip install pylsl
macOS 10.6+ | manylinux i686 | manylinux x86_64 | Windows 32bit | Windows 64bit | |
---|---|---|---|---|---|
Python 2.7 | ✅ | ✅ | ✅ | ✅ | |
Python 3.4 | ✅ | ✅ | ✅ | ||
Python 3.5 | ✅ | ✅ | ✅ | ✅ | |
Python 3.6 | ✅ | ✅ | ✅ | ✅ | |
Python 3.7 | ✅ | ✅ | ✅ | ✅ |
More or less experimental releases are in tstenner's anaconda repo, install with conda install -c tstenner pylsl
.
Self-built
If your platform is not supported by any of the prepared distributions then you will have to find or build a liblsl shared library for your platform. You might be able to find the appropriate liblsl shared object (*.so on Linux, *.dylib on MacOS, or *.dll on Windows) from the liblsl release page.
- Copy the shared object into
liblsl-Python/pylsl/lib
(usecp -L
on platforms that use symlinks). - From the
liblsl-Python
working directory, runpip install .
.- Note: You can use
pip install -e .
to install while keeping the files in-place. This is convenient for developing pylsl.
- Note: You can use
Usage
See the examples in pylsl/examples. Note that these can be run directly from the commandline with (e.g.) python -m pylsl.examples.SendStringMarkers
.
For maintainers
Continuous Integration
pylsl uses continuous integration.
Whenever a new commit is pushed, AppVeyor downloads liblsl from its releases page, copies it to the package,
then builds wheels for ditribution. This process is repeated for each of Windows, Mac, and Linux.
In addition, whenever a new git tag
is used on a commit that is pushed to the master branch,
the CI systems will deploy the wheels to pypi.
Manual Distrubtion
- Manual way:
rm -Rf build dist *.egg-info
python setup.py sdist bdist_wheel
- Additional steps on Linux:
auditwheel repair dist/*.whl -w dist
rm dist/*-linux_x86_64.whl
twine upload dist/*
- For conda
- build liblsl:
conda build ../liblsl/
conda build .
- build liblsl:
Known Issues
- On Linux one currently cannot call
pylsl
functions from a thread that is not the main thread.
Acknowledgments
Pylsl was primarily written by Christian Kothe while at Swartz Center for Computational Neuroscience, UCSD. The LSL project was funded by the Army Research Laboratory under Cooperative Agreement Number W911NF-10-2-0022 as well as through NINDS grant 3R01NS047293-06S1. Thanks for contributions, bug reports, and suggestions go to Bastian Venthur, Chadwick Boulay, David Medine, Clemens Brunner, and Matthew Grivich.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for pylsl-1.14.0b6-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cf958b81f41973c8ffd41c42bc64e33712c5a1782587b057d3494a0f726ff0c |
|
MD5 | 190fde992780df4724c87be2b065af58 |
|
BLAKE2b-256 | 1a6b2cdfe0249194c10cf7be5acad3fecf5ebe12f90ddfe16c02e96485334599 |
Hashes for pylsl-1.14.0b6-py2.py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e486bb018ac03af3212195668d8d034325480f7a917ae329a643cd2a09b71f1 |
|
MD5 | d33719de122f19bfe649d017dad2c918 |
|
BLAKE2b-256 | fb2c6a58e23723b4cbf0c2e9b7d9e184b060b6d50d3ed529cfd2fe573f3a6fa8 |
Hashes for pylsl-1.14.0b6-py2.py3-none-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47731e8a0b632ef17687584430d0d0415867b4586eb6788a208af160a7f9c1e8 |
|
MD5 | 647951dce11c3eea6c354a76724e2765 |
|
BLAKE2b-256 | b88de5ddb89e001031fb16020f68a416847af2dc5982aa770e0f8e97fd90cca5 |