Protobuf definitions for Bitvis Power Hub
Project description
Bitvis Protobuf
Python protobuf definitions for Bitvis Power Hub communication.
Description
This library contains the Protocol Buffer definitions and generated Python code for communicating with Bitvis Power Hub devices. It includes message definitions for:
- Device information
- Diagnostic data
- HAN port samples
- Power hub payloads
Installation
pip install bitvis-protobuf
Usage
from bitvis_protobuf import powerhub_pb2, han_port_pb2, diagnostic_pb2
# Parse a payload
payload = powerhub_pb2.Payload()
payload.ParseFromString(data)
if payload.HasField("sample"):
sample = payload.sample
# Process HAN port sample data
elif payload.HasField("diagnostic"):
diagnostic = payload.diagnostic
# Process diagnostic data
Development
Building from source
# Install development dependencies
pip install -e ".[dev]"
# Generate protobuf code
python -m build_proto
Regenerating protobuf code
python scripts/generate_proto.py
License
Apache License 2.0
Project details
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 bitvis_protobuf-0.2.0.tar.gz.
File metadata
- Download URL: bitvis_protobuf-0.2.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9f066fc2f328c3fb2dde335b951d6245d67cb326a3e2c7a1927376ff7545cc7
|
|
| MD5 |
898c68ffc001701a120efe8131fe05ef
|
|
| BLAKE2b-256 |
92a1261870efe7b0180c29c6ecabd2bdcc314a35bb7c1fefe02e1bd169baaee4
|
Provenance
The following attestation bundles were made for bitvis_protobuf-0.2.0.tar.gz:
Publisher:
workflow.yml on bitvis-io/bitvis-protobuf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bitvis_protobuf-0.2.0.tar.gz -
Subject digest:
d9f066fc2f328c3fb2dde335b951d6245d67cb326a3e2c7a1927376ff7545cc7 - Sigstore transparency entry: 1356779757
- Sigstore integration time:
-
Permalink:
bitvis-io/bitvis-protobuf@49dbacc0d07daeb468607c29905d022f1fd59e9a -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/bitvis-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@49dbacc0d07daeb468607c29905d022f1fd59e9a -
Trigger Event:
release
-
Statement type:
File details
Details for the file bitvis_protobuf-0.2.0-py3-none-any.whl.
File metadata
- Download URL: bitvis_protobuf-0.2.0-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb15fc838f18c7df035f21d733d80215d183ed868198397980ed6d3bfe90f6f8
|
|
| MD5 |
17c94cc6237f51b58c94d6cb3da17461
|
|
| BLAKE2b-256 |
2cf98944260efe1d2752513fa00ac7bfad556950e2d11bbbdad27efd92d771b0
|
Provenance
The following attestation bundles were made for bitvis_protobuf-0.2.0-py3-none-any.whl:
Publisher:
workflow.yml on bitvis-io/bitvis-protobuf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bitvis_protobuf-0.2.0-py3-none-any.whl -
Subject digest:
fb15fc838f18c7df035f21d733d80215d183ed868198397980ed6d3bfe90f6f8 - Sigstore transparency entry: 1356779769
- Sigstore integration time:
-
Permalink:
bitvis-io/bitvis-protobuf@49dbacc0d07daeb468607c29905d022f1fd59e9a -
Branch / Tag:
refs/tags/0.2.0 - Owner: https://github.com/bitvis-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@49dbacc0d07daeb468607c29905d022f1fd59e9a -
Trigger Event:
release
-
Statement type: