Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

aioampio

Latest version: v2.0.0b3

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: kstaniek
5 Versions
74 Downloads

Scan summary

aioampio was last scanned on 25 Nov 2026 at version 2.0.0b3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions, all published on 25 Nov 2026.
  • Findings: No rules fired in version 2.0.0b3.
  • Downloads: 74 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.0.0b3 LATEST 25 Nov 2026 No rules fired
2.0.0b2 25 Nov 2026 No rules fired
2.0.0b1 25 Nov 2026 No rules fired
1.0.2 25 Nov 2026 Not shown
1.0.1 25 Nov 2026 Not shown

No rules fired in 2.0.0b3

Findings

Findings for v2.0.0b3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.0.0b3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

aioampio

An asyncio library for Ampio devices using python-can. Requires Python 3.12 or newer; Python 3.12, 3.13, and 3.14 are tested in CI.

Library boundary

aioampio is a standalone asyncio library. It owns CAN transport, Ampio frame encoding and decoding, resource models, state notifications, and commands. It must run without Home Assistant installed and must not import Home Assistant or depend on its event bus, registries, entities, or configuration entries.

Consumer integrations adapt the public library API to their own lifecycle and state model. Home Assistant entities, service mappings, fixtures, and compatibility tests belong in hacs-ampio, not in this package. Library tests use synthetic CAN frames and callbacks; tests/test_library_boundary.py additionally blocks Home Assistant imports in a fresh interpreter while initializing the library.

Version 2 beta

Version 2 changes the constructor, metrics, and alarm-state APIs. Test the beta in a development environment before updating an integration. The published Ampio Home Assistant integration remains pinned to the stable 1.0.x library until its version 2 validation is complete.

python -m pip install aioampio==2.0.0b1

Connect to a gateway

Load an Ampio YAML configuration, initialize the resources, and then start the connection. Always stop the bridge in a finally block.

import asyncio
from pathlib import Path

import yaml

from aioampio import AmpioBridge
from aioampio.bridge_config import BridgeConfig


async def main():
    config = yaml.safe_load(
        await asyncio.to_thread(Path("config.yaml").read_text, encoding="utf-8")
    )
    bridge = AmpioBridge(
        config,
        interface="waveshare",
        channel="can0",
        host="192.0.2.1",
        port=20001,
        bridge_config=BridgeConfig(),
    )
    try:
        await bridge.initialize()
        await bridge.start()
        if not await bridge.wait_connected(timeout=10):
            raise TimeoutError("Ampio gateway did not connect")
        await asyncio.Event().wait()
    finally:
        await bridge.stop()


asyncio.run(main())

For SocketCAN, use interface="socketcan" and channel="can0" without network arguments. For in-process tests, use interface="virtual" and a shared channel name. Backend-specific keyword arguments are forwarded to python-can.

CAN reception uses python-can's notifier thread. Decoding, state updates, and callbacks run on the asyncio event loop. RX workers yield between bounded batches. Blocking bus construction, transmission, and teardown run in executor threads.

Configure the aioampio logger to control library messages. Bridge and controller loggers are its children, for example aioampio.can0 and aioampio.can0.light. Replace old aioampio[can0] logging overrides with aioampio or aioampio.can0.

Command line

The CLI validates configuration or starts a receive-only bridge. It does not send actuator commands.

# Validate YAML without opening a CAN connection.
aioampio --config config.yaml --validate

# Use a Waveshare gateway.
aioampio --config config.yaml --host 192.0.2.1 --port 20001

# Use another python-can backend.
aioampio --config config.yaml --interface socketcan --channel vcan0

# Use a virtual bus for local testing.
aioampio --config config.yaml --interface virtual --channel test

Waveshare is the default interface and requires a host. Its default remote port is 20001. Other backends receive host and port only when supplied, preserving their own defaults. Press Ctrl+C to stop and clean up the bridge.

Migrating from 1.0.x

Constructor

Replace positional host and port arguments:

# Version 1
bridge = AmpioBridge(config, "192.0.2.1", 20001)

# Version 2
bridge = AmpioBridge(
    config, interface="waveshare", channel="can0", host="192.0.2.1", port=20001
)

Use BridgeConfig for connection timeouts, watchdogs, worker counts, and queue limits. These settings are separate from backend-specific keyword arguments.

Metrics

The metrics property returns a BridgeMetrics snapshot. Request a new snapshot when reading current counters.

snapshot = bridge.metrics
print(snapshot.connected, snapshot.rx_total, snapshot.connection_state)

# For dictionary consumers, replace bridge.metrics["rx_total"] with:
print(bridge.get_metrics_dict()["rx_total"])
Alarm state

Replace alarm.state access with alarm.get_state(). It returns the armed, arming, arming_10s, breached, and alarm flags. Each flag can be None until its first update.

state = alarm.get_state()
armed = state["armed"]

Development

python -m pip install -e . pytest==8.4.2 pytest-asyncio==1.2.0 pytest-cov==7.0.0
pytest tests/

The full suite runs against virtual CAN or mocked buses and does not send commands to physical devices. CI runs the suite on Python 3.12, 3.13, and 3.14. A separate Python 3.13 lint job runs the repository pre-commit hooks; both tests and lint must pass before PyPI publication.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases aioampio

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229