Python interface to the Lab Streaming Layer
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).
|macOS 10.6+||manylinux i686||manylinux x86_64||Windows 32bit||Windows 64bit|
- You must first obtain 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.
- Otherwise you might try to clone liblsl and use its
standalone_compilation_linux.shscript (works on raspberry pi).
- Copy the shared object into
cp -Lon platforms that use symlinks).
- From the
liblsl-Pythonworking directory, run
pip 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
- Please consider building a portable wheel with
python setup.py sdist bdist_wheeland attaching the produced .whl file to a GitHub issue to benefit other users of the same platform.
See the examples in pylsl/examples. Note that these can be run directly from the commandline with (e.g.)
python -m pylsl.examples.SendStringMarkers.
pylsl uses continuous integration and distribution.
Whenever a new commit is pushed, AppVeyor downloads liblsl from its releases page, copies it to the package, then builds wheels for distribution. 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 way:
rm -Rf build dist *.egg-info
python setup.py sdist bdist_wheel
- Additional steps on Linux:
auditwheel repair dist/*.whl -w dist
twine upload dist/*
- For conda
- build liblsl:
conda build ../liblsl/
conda build .
- build liblsl:
- On Linux one currently cannot call
pylslfunctions from a thread that is not the main thread.
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. pylsl is maintained primarily by Chadwick Boulay. Thanks for contributions, bug reports, and suggestions go to Bastian Venthur, David Medine, Clemens Brunner, and Matthew Grivich.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pylsl-1.14.0-py2.py3-none-macosx_10_13_x86_64.whl (781.9 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size pylsl-1.14.0-py2.py3-none-manylinux1_x86_64.whl (632.1 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size pylsl-1.14.0-py2.py3-none-win32.whl (286.5 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size pylsl-1.14.0-py2.py3-none-win_amd64.whl (357.5 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
Hashes for pylsl-1.14.0-py2.py3-none-macosx_10_13_x86_64.whl
Hashes for pylsl-1.14.0-py2.py3-none-manylinux1_x86_64.whl
Hashes for pylsl-1.14.0-py2.py3-none-win32.whl
Hashes for pylsl-1.14.0-py2.py3-none-win_amd64.whl