Unofficial client library and CLI for Harreither Brain devices
Project description
Harreither Brain Client
Async Python client and CLI for talking to Harreither Brain websocket devices. It establishes the secure channel, authenticates with the device, and streams messages back and forth.
Installation
pip install harreither-brain-client
Or from source:
pip install .
CLI usage
harreither-brain \
--host ws://device-host:8080 \
--username YOUR_USERNAME \
--password YOUR_PASSWORD \
[--proxy] [--strict] [-v]
--proxyroutes through http://localhost:8080.--strictfails if the device sends unexpected fields to us.-venables debug logging.
Library usage
import asyncio
from harreither_brain_client import Connection
async def main():
conn = Connection(strict_mode=False)
await conn.async_websocket_connect("ws://device-host:8080")
await conn.establish_secure_connection()
await conn.enqueue_authentication_flow(
username="user",
password="pass",
auto_start_session=True,
)
await conn.messages_process()
asyncio.run(main())
Development
- Run tests:
python -m unittest discover tests - Build artifacts:
python -m build - Check metadata:
python -m twine check dist/*
License
MIT
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file harreither_brain_client-0.2.0.tar.gz.
File metadata
- Download URL: harreither_brain_client-0.2.0.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ad32beb2a07ae648472cef7382ce89218a54145c6baa06b40a46daf4747f1a8
|
|
| MD5 |
f7837c9ae9109e3e743be994689f4c0d
|
|
| BLAKE2b-256 |
e289bd9f6981330b6c59c92e580b7b2d150c879dfa8ce791f788458c0ad849b7
|
Provenance
The following attestation bundles were made for harreither_brain_client-0.2.0.tar.gz:
Publisher:
python-publish.yml on andraztori/harreither-brain-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
harreither_brain_client-0.2.0.tar.gz -
Subject digest:
9ad32beb2a07ae648472cef7382ce89218a54145c6baa06b40a46daf4747f1a8 - Sigstore transparency entry: 868931695
- Sigstore integration time:
-
Permalink:
andraztori/harreither-brain-client@e6a65ba5b5b547e2e2262fb520127dedc88868be -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/andraztori
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e6a65ba5b5b547e2e2262fb520127dedc88868be -
Trigger Event:
release
-
Statement type:
File details
Details for the file harreither_brain_client-0.2.0-py3-none-any.whl.
File metadata
- Download URL: harreither_brain_client-0.2.0-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb67d355e9e4e6651df2c7b8e08d9d3d3278a512b3dda2a9a3ed4d0cb8a05b30
|
|
| MD5 |
38fb7985029908f70c751af0a56f257f
|
|
| BLAKE2b-256 |
a9df83b4506a0d4fb2e719fd79893d8ab97518ee91ddaf94dc1406d9b8ea94ee
|
Provenance
The following attestation bundles were made for harreither_brain_client-0.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on andraztori/harreither-brain-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
harreither_brain_client-0.2.0-py3-none-any.whl -
Subject digest:
cb67d355e9e4e6651df2c7b8e08d9d3d3278a512b3dda2a9a3ed4d0cb8a05b30 - Sigstore transparency entry: 868931698
- Sigstore integration time:
-
Permalink:
andraztori/harreither-brain-client@e6a65ba5b5b547e2e2262fb520127dedc88868be -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/andraztori
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e6a65ba5b5b547e2e2262fb520127dedc88868be -
Trigger Event:
release
-
Statement type: