et-ws
Pydantic v2 models for the WebSocket protocol of Edge Toolkit, a framework for running workloads across a fleet of devices that all connect to one WebSocket hub. Every message an agent may send to the hub is a model here, so a Python agent builds its frames with validation rather than by hand.
Install
pip install et-ws
Usage
ClientMessage is the union of everything an agent sends; each variant is its own model, discriminated by type:
from et_ws.messages import ClientMessage, WsBroadcastMessage
frame = WsBroadcastMessage(type="et-broadcast-message", message={"hello": "world"}).model_dump_json()
parsed = ClientMessage.model_validate_json(frame)
The full message catalogue, including the hub's replies, is the AsyncAPI specification.
Regenerating
et_ws/messages.py is generated from the Rust ClientMessage in libs/edge-toolkit/src/ws.rs by
mise run gen:python-ws. This README and pyproject.toml are maintained by hand.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Metadata
Release files for et-ws 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| et_ws-0.1.0.tar.gz | 3.4 kB | Without provenance | Details for et_ws-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| et_ws-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for et_ws-0.1.0-py3-none-any.whl |
Total release size: 7.2 kB
Release files / et_ws-0.1.0.tar.gz
| Download URL | et_ws-0.1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50f9ccf726c8c433aedf3a2705e5ad25df0a47c4f2738406262ab7af84894feb
|
|
BLAKE2b-256 checksum How to use checksums |
a1777da47753423ee704bc4cc64e0274d3831ffd7b1130b6c5c63d911f4d5979
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / et_ws-0.1.0-py3-none-any.whl
| Download URL | et_ws-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ac5576b5618ca46d1fc73fe03717f8e968e2619b57bf55526ec67220af31725
|
|
BLAKE2b-256 checksum How to use checksums |
f99ed5e409ed01421478fdc4bac5aa3dbc623daae634a4fc6b7ee815ad255984
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for et-ws 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.