Skip to main content

Python interface to the Lab Streaming Layer

Project description

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.

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.1b5-py2.py3-none-win_amd64.whl (351.3 kB view details)

Uploaded Python 2 Python 3 Windows x86-64

pylsl-1.14.1b5-py2.py3-none-win32.whl (281.8 kB view details)

Uploaded Python 2 Python 3 Windows x86

pylsl-1.14.1b5-py2.py3-none-manylinux1_x86_64.whl (34.9 kB view details)

Uploaded Python 2 Python 3

pylsl-1.14.1b5-py2.py3-none-macosx_10_13_x86_64.whl (768.1 kB view details)

Uploaded Python 2 Python 3 macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: pylsl-1.14.1b5-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 351.3 kB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/2.7.17

File hashes

Hashes for pylsl-1.14.1b5-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7b3c80688023d2ffc4678ed108f40d0e2b0de53e8f5f0aca59a0c8dab4237b7f
MD5 ac9ef5119c6a8f8f032076760f8e7945
BLAKE2b-256 d61e3540c885b91daa63348254232b985380675d57710de335e2945f9034ecef

See more details on using hashes here.

File details

Details for the file pylsl-1.14.1b5-py2.py3-none-win32.whl.

File metadata

  • Download URL: pylsl-1.14.1b5-py2.py3-none-win32.whl
  • Upload date:
  • Size: 281.8 kB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/2.7.17

File hashes

Hashes for pylsl-1.14.1b5-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 2c4c50816141f61e7e15a3a3cab99eb896eaf3b9670513aaf96d1098801562e2
MD5 fcec12eeea82e6355d0d736f2999ed35
BLAKE2b-256 2247f9710c1327cd4404f83cf5e36ccb12c64bf7829fb22bb5a62a3f29c591d1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylsl-1.14.1b5-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ae7054d6fb018ca7d42291f97ad171f6415dbf8b2ef7f7b8eb05d56a28f501ca
MD5 1655edfafc03963ddd5c9ca6774daaf5
BLAKE2b-256 03fd032585ef487c1780da8bee13a411ee312f3398a823143d9c101f87fa963a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylsl-1.14.1b5-py2.py3-none-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 768.1 kB
  • Tags: Python 2, Python 3, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/2.7.17

File hashes

Hashes for pylsl-1.14.1b5-py2.py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 014c723fb026449641f37199478061c6c82377d9cfe1856ebf056f45c2735474
MD5 4661b5785c36f946a511055dc22b07c9
BLAKE2b-256 7fb8b0889f164ba681364cd29248712f08c5d647d30099ef666b023a75e65734

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