Foxglove WebSocket server
Project description
Foxglove Studio WebSocket server
This package provides a server implementation of the Foxglove Studio WebSocket protocol, enabling Foxglove Studio to ingest arbitrary “live” streamed data.
The protocol is encoding-agnostic, i.e. it can support Protobuf messages, JSON messages, etc. (as long as the desired encoding is supported by both client and server).
Installation
$ pip install foxglove-websocket
Example servers
This package includes example servers demonstrating how to use JSON and Protobuf data. To install additional dependencies required for the examples, run:
$ pip install foxglove-websocket[examples]
The following script provides a simple example server which publishes messages on a single topic called example_msg
, using JSON to encode message data and JSON Schema to describe the message layout.
To get started with the example server:
-
Run
python -m foxglove_websocket.examples.json_server
.
or: Runpython -m foxglove_websocket.examples.protobuf_server
. -
In a browser, open up https://studio.foxglove.dev and initiate a Foxglove WebSocket connection to
ws://localhost:8765/
.
Development
When developing or maintaining the foxglove-websocket package, it is recommended to use pipenv to manage development dependencies and virtualenv.
- Run
pipenv install --dev
to create a virtualenv and install development dependencies. - Run
pipenv shell
to enter the virtualenv.
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 Distribution
Built Distribution
Hashes for foxglove_websocket-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdde6b3cc2c544207dc3fd42397a8f393677156dd4aabcc8c7558979e58c6752 |
|
MD5 | 86f96163950b6ad648db6a31d2c12b83 |
|
BLAKE2b-256 | f8160266bb2e620698412d00afab6c70fa3fccd2f89eda14e20ce52de538c376 |