wslink 2.5.6


pip install wslink

  Latest version

Released: Mar 12, 2026

Project Links

Meta
Author: Aron Helser, Scott Wittenburg, Alessandro Genova, Sebastien Jourdain
Requires Python: >=3.10

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers
  • Science/Research

License
  • OSI Approved :: BSD License

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3

Topic
  • Scientific/Engineering

wslink: websocket library between a Python server and Web client pypi_download

Wslink allows easy, bi-directional communication between a python server and a javascript or C++ client over a [websocket]. The client can make remote procedure calls (RPC) to the server, and the server can publish messages to topics that the client can subscribe to. The server can include binary attachments in these messages, which are communicated as a binary websocket message, avoiding the overhead of encoding and decoding.

Installing

wslink can be installed with pip wslink or npm install @kitware/wslink:

Usage for RPC and publish/subscribe

The main user of wslink is trame.

  • RPC - a remote procedure call that can be fired by the client and return sometime later with a response from the server, possibly an error.

  • Publish/subscribe - client can subscribe to a topic provided by the server, possibly with a filter on the parts of interest. When the topic has updated results, the server publishes them to the client, without further action on the client's part.

License

wslink is made available under the BSD 3 License. For more details, see LICENSE <https://github.com/Kitware/wslink/blob/master/LICENSE>_

Community

Trame <https://kitware.github.io/trame/>_ | Discussions <https://github.com/Kitware/trame/discussions>_ | Issues <https://github.com/Kitware/trame/issues>_ | Contact Us <https://www.kitware.com/contact-us/>_

Examples

Some examples are provided in the ./examples/* directory to cover the basic of the library.

Development

We recommend using uv for setting up and managing a virtual environment for your development.

# Create venv and install all dependencies
uv sync --all-extras --dev

# Activate environment
source .venv/bin/activate

# Install commit analysis
pre-commit install
pre-commit install --hook-type commit-msg

# Allow live code edit
uv pip install -e .

Build client side code base

cd js-lib
npm install
npm run build
cd -

Commit message convention

Semantic release rely on conventional commits to generate new releases and changelog.

2.5.6 Mar 12, 2026
2.5.5 Mar 04, 2026
2.5.4 Mar 04, 2026
2.5.3 Mar 03, 2026
2.5.2 Mar 03, 2026
2.5.0 Oct 20, 2025
2.4.0 Aug 18, 2025
2.3.4 May 20, 2025
2.3.3 Mar 23, 2025
2.3.2 Feb 21, 2025
2.3.1 Feb 21, 2025
2.3.0 Feb 20, 2025
2.2.2 Jan 07, 2025
2.2.1 Sep 16, 2024
2.2.0 Sep 16, 2024
2.1.3 Sep 09, 2024
2.1.2 Aug 07, 2024
2.1.1 Jun 20, 2024
2.1.0 Jun 19, 2024
2.0.5 Jun 06, 2024
2.0.4 May 24, 2024
2.0.3 May 20, 2024
2.0.2 Apr 18, 2024
2.0.1 Apr 16, 2024
2.0.0 Apr 10, 2024
1.12.4 Oct 25, 2023
1.12.3 Oct 05, 2023
1.12.2 Sep 27, 2023
1.12.1 Sep 27, 2023
1.11.4 Sep 06, 2023
1.11.3 Sep 05, 2023
1.11.2 Aug 30, 2023
1.11.1 Jun 30, 2023
1.11.0 Jun 09, 2023
1.10.2 May 19, 2023
1.10.1 Feb 15, 2023
1.10.0 Dec 20, 2022
1.9.3 Dec 19, 2022
1.9.2 Dec 08, 2022
1.9.1 Nov 01, 2022
1.9.0 Oct 20, 2022
1.8.4 Oct 13, 2022
1.8.3 Oct 13, 2022
1.8.2 Aug 24, 2022
1.8.1 Aug 24, 2022
1.8.0 Aug 24, 2022
1.7.0 Aug 11, 2022
1.6.6 Jul 05, 2022
1.6.5 Jun 03, 2022
1.6.4 May 05, 2022
1.6.3 May 04, 2022
1.6.2 May 04, 2022
1.6.1 Apr 28, 2022
1.6.0 Apr 26, 2022
1.5.3 Apr 14, 2022
1.5.2 Apr 08, 2022
1.5.1 Apr 04, 2022
1.5.0 Apr 01, 2022
1.4.3 Mar 04, 2022
1.4.2 Mar 04, 2022
1.4.1 Feb 09, 2022
1.4.0 Feb 08, 2022
1.3.3 Jan 24, 2022
1.3.2 Jan 24, 2022
1.3.1 Jan 03, 2022
1.3.0 Dec 16, 2021
1.2.1 Dec 12, 2021
1.2.0 Dec 06, 2021
1.1.1 Nov 19, 2021
1.1.0 Oct 15, 2021
1.0.7 Aug 25, 2021
1.0.6 Aug 20, 2021
1.0.5 Aug 13, 2021
1.0.4 Aug 10, 2021
1.0.3 Aug 10, 2021
1.0.2 Aug 10, 2021
1.0.1 Aug 10, 2021
1.0.0 Aug 06, 2021
0.2.0 Mar 18, 2020
0.1.14 Mar 18, 2020
0.1.13 Feb 24, 2020
0.1.11 Apr 24, 2019
0.1.10 Apr 22, 2019
0.1.9 Mar 01, 2018
0.1.8 Mar 01, 2018
0.1.7 Feb 26, 2018
0.1.6 Feb 20, 2018
0.1.5 Feb 15, 2018
0.1.4 Sep 20, 2017
0.1.2 Jul 19, 2017
0.1.1 Jun 14, 2017
0.1.0 Jun 12, 2017

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
aiohttp (<4)
msgpack (<2,>=1)