Skip to main content

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

Metadata

Release files for bitvis-protobuf 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bitvis-protobuf 2.0.2
File Size Uploaded
bitvis_protobuf-2.0.2.tar.gz 18.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bitvis-protobuf 2.0.2
File Interpreter ABI Platform
bitvis_protobuf-2.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 42.0 kB

Release files / bitvis_protobuf-2.0.2.tar.gz

Download URL bitvis_protobuf-2.0.2.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0e6b228b8257b218bee76e0920f93a98f9c8df0db2a44fcb3c74c98f5f3d8d3e
BLAKE2b-256 checksum
How to use checksums
f53e589ad59c63357e5dab4fc36e72d6bd61db9ffdaec6b7d7bbefcafe9f833d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release files / bitvis_protobuf-2.0.2-py3-none-any.whl

Download URL bitvis_protobuf-2.0.2-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f352568dcd5d3722ede9e088cf9adb179c1420cab6cbf64bab949270b0e95d95
BLAKE2b-256 checksum
How to use checksums
68b9f7fdf017750bc54791be5c96156650c6230936fae0c11f86464aa8d56dc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release history Release notifications | RSS feed

2.0.4

2 release files

This release

2.0.2 This release

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.0

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page