PYPI PACKAGE AUDIT v0.7.13 Healthy Package

aioebus

Standalone async eBUS library (decode-first). No ebusd daemon required.

PyPkgScore aioebus
Methodology & Criteria ♥ Donate
720 / 1000
Quick Install
pip install aioebus
1. Governance
50/200
2. PEP Metadata
200/200
3. Security
200/200
4. Docs & SEO
105/200
5. CI Engineering
165/200
📣 Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
721
Last 30 days
3933
Total (180 days)
4575
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✓ Verified OIDC PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 720 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP Metadata & Packaging200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Security & Supply Chain200 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✓ 50 pts
Snyk / Audit Link✓ 40 pts
HTTPS Repository✓ 50 pts
4. Documentation, SEO & Ecosystem105 / 200 ▾
Structured README✓ 60 pts
Read the Docs✕ 0 pts
Django Packages✕ 0 pts
Website / Technical Articles✓ 45 pts
5. Engineering, CI & Quality165 / 200 ▾
Automated Tests✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✓ 35 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide — aioebus

PyPI Metadata v0.7.13
Show full original documentation (English README) ▾

aioebus

A standalone, async, pure-Python eBUS library: it talks to an eBUS adapter (enhanced protocol over TCP) and decodes Vaillant/eBUS messages without an ebusd daemon. The ebus Home Assistant integration is built on it and runs it in the field.

It ports ebusd's behaviour to Python by spec (not line by line) and checks every layer against real captured telegrams.

What it does

Module
link TCP connection to the adapter (connect), liveness probe
engine One connection: decodes what other masters put on the bus (free), slips its own reads/writes in when the bus is idle, keeps a value cache, polls by priority (poll); a write can be read back (write_confirmed), a saved cache restored (restore)
runner Keeps an engine connected: reconnects with a pause when the link ends
discovery, scan Which devices are on the bus: scan, Vaillant identification (article, serial), deep scan of every slave address, phantom addresses
catalog, cdn, conditions Each device's definitions: our bundled ones, else a user file, else the matching ebusd-configuration CSV from ebus.github.io (chosen as ebusd chooses it, with its !load includes and conditions), cached
values What a message's values are: labels, stable keys, cache keys, the control a write allows
messages, codecs, convert Message model, ebusd-CSV ingest (default rows, conditions, value tables, constants), every ebusd datatype, our JSON format
translations Stable keys for display texts, and the texts per language from the ebusd CSVs
frame, passive, transport, active Telegrams and CRC, matching telegrams to definitions, the adapter's byte protocol, the transaction state machine

Everything in aioebus.__all__ is the public API, under the submodule paths as well.

Example

import asyncio

from aioebus import (
    Catalog, EbusEngine, EngineRunner, MessageRegistry, PollScheduler, connect, discover,
)


async def main() -> None:
    engine = EbusEngine()
    runner = EngineRunner(engine, lambda: connect("192.168.1.50", 9999))
    await runner.start()                              # reconnects by itself from here

    found = await discover(engine)                    # which devices answer
    catalog = Catalog()                               # bundled definitions only
    await catalog.load({a: d.scan for a, d in found.devices.items()},
                       {a: d.ident for a, d in found.devices.items() if d.ident})
    engine.registry = MessageRegistry(catalog.all_messages())
    engine.scheduler = PollScheduler(catalog.device_messages("r"), base_interval=60)

    await asyncio.sleep(120)
    print(engine.cache)                               # (device, message, label) -> value
    runner.close()


asyncio.run(main())

To load ebusd-configuration CSVs for devices without a bundled definition, give the catalog a cache directory and a fetch(url) -> str | None coroutine ("" when the server says the file does not exist, None when unreachable).

Writing is opt-in (EbusEngine(..., allow_write=True)). A write that went out completely but was not acknowledged raises WriteUncertain and is never sent twice. write_confirmed(msg, values, read_back=catalog.read_twin(msg)) reads the register back afterwards, so the cache holds what the device took, and reports an unconfirmed write instead of raising.

Decoding a captured telegram needs no bus:

from aioebus import MessageRegistry, decode_raw, parse_csv

reg = MessageRegistry(parse_csv(open("38.v32.csv").read()))
decode_raw(reg, "3138b509030d1800740003910100bb00")   # (FlowTemp def, {'FlowTemp': 25.0625})

Definitions and licensing

The library ships only its own Vaillant definitions (aioebus/defs/vaillant, Apache-2.0, provenance in its PROVENANCE.md): re-engineered from observed telegrams or hand-written, facts only. The ebusd-configuration CSVs are GPL-3.0; the catalog downloads them on the user's own machine and keeps them in the caller's cache directory, never in this package. python -m aioebus.convert turns an ebusd CSV into the native JSON format, for local use.

Dev

python -m pytest            # tests, incl. real captures
ruff check src tests tools
mypy
python tools/validate_frame_db.py /path/to/telegrams.db   # frames vs ebusd
python tools/replay.py /path/to/telegrams.db              # a capture through the engine