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
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 | ✅ | ✅ | ✅ | ✅ | |
Python 3.8 | ✅ | ✅ | ✅ | ✅ |
Self-built
- 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.sh
script (works on raspberry pi).
- 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
- Please consider building a portable wheel with
python setup.py sdist bdist_wheel
and attaching the produced .whl file to a GitHub issue to benefit other users of the same platform.
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 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 Distribution
- 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. 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.
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
File details
Details for the file pylsl-1.14.0b7-py2.py3-none-win_amd64.whl
.
File metadata
- Download URL: pylsl-1.14.0b7-py2.py3-none-win_amd64.whl
- Upload date:
- Size: 356.5 kB
- Tags: Python 2, Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/2.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5671e3ee0b5300e1810f8e1941f4f17c8608bda4ac4f0f8656f5b21095301988 |
|
MD5 | 0bd31ae9fc5545918edb74256ec82460 |
|
BLAKE2b-256 | 99e4765cd50c691315bcde5c8f31f658ac4171231efbcba20803cb73a21ed9dc |
File details
Details for the file pylsl-1.14.0b7-py2.py3-none-win32.whl
.
File metadata
- Download URL: pylsl-1.14.0b7-py2.py3-none-win32.whl
- Upload date:
- Size: 286.0 kB
- Tags: Python 2, Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/2.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e8bdcebe2883dd6fc9cb3c2a55d052ce6032cf3c555e42e47e0c9b270956034 |
|
MD5 | d790fa1a6ab14a7049f8c625478b3afa |
|
BLAKE2b-256 | 7e5c36eed484acf372de71a1bb8be708205eee5f25e95a3bacc6f06a6bc00211 |
File details
Details for the file pylsl-1.14.0b7-py2.py3-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: pylsl-1.14.0b7-py2.py3-none-manylinux1_x86_64.whl
- Upload date:
- Size: 632.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/2.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2320a65a74941d72d043e5b85bc72e17749cdf60eec14cdbd8dbdcee0167780 |
|
MD5 | d9db93994375245660a37ad47bc4c9d3 |
|
BLAKE2b-256 | 9acb356664461bc9d363a975a3ac1557f8b3e83f0f910ab97ee69f4253a63dd7 |
File details
Details for the file pylsl-1.14.0b7-py2.py3-none-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: pylsl-1.14.0b7-py2.py3-none-macosx_10_13_x86_64.whl
- Upload date:
- Size: 781.0 kB
- Tags: Python 2, Python 3, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/2.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ee50018138d0a4fdf9bf55d98281656cc6c86bb452466a29a750a3fa843ab25 |
|
MD5 | 9de40fa8ced6eacda6d75d8349c7e606 |
|
BLAKE2b-256 | 0388887af0c345e1c4ffa7ba9cecaceba2dfff9c179385ba335db27ee5945e08 |