Skip to main content

Python interface to the Lab Streaming Layer

Project description

pylsl

Build status

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 (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.

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

  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. Thanks for contributions, bug reports, and suggestions go to Bastian Venthur, Chadwick Boulay, David Medine, Clemens Brunner, and Matthew Grivich.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pylsl-1.14.0b5-py2.py3-none-win_amd64.whl (33.4 kB view details)

Uploaded Python 2 Python 3 Windows x86-64

pylsl-1.14.0b5-py2.py3-none-manylinux1_x86_64.whl (632.5 kB view details)

Uploaded Python 2 Python 3

pylsl-1.14.0b5-py2.py3-none-macosx_10_13_x86_64.whl (797.2 kB view details)

Uploaded Python 2 Python 3 macOS 10.13+ x86-64

File details

Details for the file pylsl-1.14.0b5-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: pylsl-1.14.0b5-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 33.4 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.23.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/2.7.17

File hashes

Hashes for pylsl-1.14.0b5-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9d0b26908414969c08dcb32f917f43a2f265dc46f75bfb9d81554b8469b82035
MD5 cc230a53119c2642deeffd5f580231ac
BLAKE2b-256 1574aec8789b6702787f5cf612e4399125052794391854ce80a09a706ec92fc0

See more details on using hashes here.

File details

Details for the file pylsl-1.14.0b5-py2.py3-none-manylinux1_x86_64.whl.

File metadata

  • Download URL: pylsl-1.14.0b5-py2.py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 632.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.23.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/2.7.17

File hashes

Hashes for pylsl-1.14.0b5-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f5b227910c9a68415c28c4053dcbd6e007819452ddac8863b888ffeb5a1d7f0a
MD5 8b023a6e37fb3fca3d780750556ee250
BLAKE2b-256 c45130dd70ef9368282267dada79da2057e2d5dc82f0891771a975c359c1952d

See more details on using hashes here.

File details

Details for the file pylsl-1.14.0b5-py2.py3-none-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: pylsl-1.14.0b5-py2.py3-none-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 797.2 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.23.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/2.7.17

File hashes

Hashes for pylsl-1.14.0b5-py2.py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 45e17b4c81a26f3f8d96e760a30d22f8d7fa9483490e889d802fdca0cc3d075c
MD5 1bd74930e28d6d2100785295ee14acd7
BLAKE2b-256 a88a30144566eae4f48eb0cf599d220ce55878e808e78be5857b0f46056f4662

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page