Skip to main content

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

bitvis_protobuf-0.2.2.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitvis_protobuf-0.2.2-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file bitvis_protobuf-0.2.2.tar.gz.

File metadata

  • Download URL: bitvis_protobuf-0.2.2.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bitvis_protobuf-0.2.2.tar.gz
Algorithm Hash digest
SHA256 8a5f2cd39c3f0515a9686b33e9884ce9a9625ad6c1c6c2960abcfa76d7a85c2a
MD5 1440dcaa8f43ae3f3aca1ee75167e517
BLAKE2b-256 f934fc0c8715a556f2c50ea6cf8a69ba725be234e4064d479ecdc0bfb45dd450

See more details on using hashes here.

Provenance

The following attestation bundles were made for bitvis_protobuf-0.2.2.tar.gz:

Publisher: workflow.yml on bitvis-io/bitvis-protobuf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bitvis_protobuf-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: bitvis_protobuf-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bitvis_protobuf-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 20beea948dabbb9c6edbcd3f6ecca456ea082984b6aaf0024a6371914847aecc
MD5 bccddbc28b4fea6a38785d72357a86be
BLAKE2b-256 5981be4e8d778fa8d4dee4a3ba6f416224c23fde35c00d65923db33647ec7a03

See more details on using hashes here.

Provenance

The following attestation bundles were made for bitvis_protobuf-0.2.2-py3-none-any.whl:

Publisher: workflow.yml on bitvis-io/bitvis-protobuf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page