Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pylsl

Build status PyPI version

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 (use cp -L on platforms that use symlinks).
  • From the liblsl-Python working 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.
  • 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

  1. Manual way:
    1. rm -Rf build dist *.egg-info
    2. python setup.py sdist bdist_wheel
    3. Additional steps on Linux:
      • auditwheel repair dist/*.whl -w dist
      • rm dist/*-linux_x86_64.whl
    4. twine upload dist/*
  2. For conda
    1. build liblsl: conda build ../liblsl/
    2. conda build .

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.

Metadata

Release files for pylsl 1.14.0b8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pylsl 1.14.0b8
File
pylsl-1.14.0b8-py2.py3-none-win_amd64.whl Python 2, Python 3 none Windows x86-64 Details
pylsl-1.14.0b8-py2.py3-none-win32.whl Python 3, Python 2 none Windows x86-32 Details
pylsl-1.14.0b8-py2.py3-none-manylinux1_x86_64.whl Python 3, Python 2 none Linux glibc 2.5+ x86-64 Details
pylsl-1.14.0b8-py2.py3-none-macosx_10_13_x86_64.whl Python 2, Python 3 none macOS 10.13+ x86-64 Details

Total release size: 2.1 MB

Release files / pylsl-1.14.0b8-py2.py3-none-win_amd64.whl

Download URL pylsl-1.14.0b8-py2.py3-none-win_amd64.whl
Size 357.2 kB
Tags Python 2 Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
dc10b54afac94853497c16f92317f0b246e3b9930a30f65671e87e55624dd99c
BLAKE2b-256 checksum
How to use checksums
a02e2d6bce53641e61c21dffc804a0d97e82ef638e6ee93614ddd792a4c558fc
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pylsl-1.14.0b8-py2.py3-none-win32.whl

Download URL pylsl-1.14.0b8-py2.py3-none-win32.whl
Size 286.7 kB
Tags Python 2 Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
2cb76e578275c181558069c1e1b6a883daf9748c2651630f8313547b69c814a4
BLAKE2b-256 checksum
How to use checksums
b57a0e6202f641f358b1a546a19f0c428191387f9b76981d47f919d2652c91c4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pylsl-1.14.0b8-py2.py3-none-manylinux1_x86_64.whl

Download URL pylsl-1.14.0b8-py2.py3-none-manylinux1_x86_64.whl
Size 632.1 kB
Tags Linux glibc 2.5+ x86-64 Python 2 Python 3
SHA-256 checksum
How to use checksums
d1a83c1c4a82243fe97a3c4574da32884d5632b6cb277eaa93e1c90534664e9a
BLAKE2b-256 checksum
How to use checksums
580d9e4b73edebb243eecc4f22ef25ef74f2008a51da3647c551f47b359f5b57
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pylsl-1.14.0b8-py2.py3-none-macosx_10_13_x86_64.whl

Download URL pylsl-1.14.0b8-py2.py3-none-macosx_10_13_x86_64.whl
Size 781.9 kB
Tags Python 2 Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
6b725d430f6c03889f1d8739cd9d452b9c234f14064e5ae9c19b269f7bb5a840
BLAKE2b-256 checksum
How to use checksums
004ada66842a7b96732b784bf5d27138ab75e5e2b970f5a69a77fa8e363c0775
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

1.18.5

6 release files

1.18.4

6 release files

1.18.2

6 release files

1.18.1

6 release files

1.18.0

2 release files

1.17.6

4 release files

1.17.5

4 release files

1.17.4

4 release files

1.17.3

2 release files

1.17.2

2 release files

1.17.1

2 release files

1.17.0

2 release files

1.16.2

3 release files

1.16.1

3 release files

1.16.0

5 release files

1.15.0

4 release files

1.14.0

4 release files

This release

1.14.0b8 This release

4 release files

1.13.6

4 release files

1.13.5

5 release files

1.13.4

5 release files

1.13.3

5 release files

1.13.2

5 release files

1.12.2

2 release files

1.10.5

1 release file

1.10.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page