Scan your whole stack
Are you using prana-api-client?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.15.0
prana-api-client was last scanned on 26 Nov 2026 at version 0.15.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.15.0 LATEST | 26 Nov 2026 | No rules fired |
| 0.13.0 | 26 Nov 2026 | No rules fired |
Findings for v0.15.0. 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 0.15.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Async Python client for the local HTTP API of Prana recuperators, used by the
Home Assistant prana integration. Includes a device simulator for development
without hardware.
aiohttp, fully typed (py.typed)pip install prana-api-client
The import name is prana_local_api_client.
import asyncio
from prana_local_api_client import (
PranaFanType,
PranaLocalApiClient,
PranaPositionType,
PranaSwitchType,
)
async def main() -> None:
async with PranaLocalApiClient("192.168.1.100") as client:
info = await client.get_device_info()
state = await client.get_state()
print(info.pranaModel, state.supply.speed, state.inside_temperature)
await client.set_speed(30, PranaFanType.SUPPLY) # speed step 3 (x10)
await client.set_switch(PranaSwitchType.NIGHT, True)
if info.is_neo and state.fresh_air_position is not None:
await client.set_position(PranaPositionType.FRESH_AIR, 2)
asyncio.run(main())
| Usage | Session |
|---|---|
PranaLocalApiClient(host, session=my_session) |
yours; never closed by the client (recommended in Home Assistant) |
async with PranaLocalApiClient(host) as client: |
opened for the block and closed on exit |
plain calls without async with |
a short-lived session per request |
PranaLocalApiClient(host, port=80, *, session=None, timeout=10.0)
| Method | Endpoint | Notes |
|---|---|---|
get_device_info() -> PranaDeviceInfo |
GET /info |
|
get_state() -> PranaState |
GET /getState |
|
set_speed(speed, fan_type) |
POST /setSpeed |
speed in tenths of a step (30 = step 3); fan_type: supply, extract, bounded (use bounded while bound mode is on) |
set_speed_is_on(on, fan_type) |
POST /setSpeedIsOn |
turn a motor on/off |
set_switch(switch_type, value) |
POST /setSwitch |
see PranaSwitchType |
set_brightness(value) |
POST /setBrightness |
one of 0, 1, 2, 4, 8, 16, 32 (level n → 2 ** (n - 1)) |
set_position(position_type, value) |
POST /setPosition |
Neo only: fresh_air / extract, 0 (off) … 3 |
Invalid arguments raise ValueError before anything is sent.
PranaDeviceInfo: manufactureId (serial), isValid, fwVersion,
pranaModel (name, e.g. "PRANA NEO"), label, model_id (raw model byte),
and the is_neo property.PranaState: supply, extract and bounded (FanState: speed,
is_on, max_speed in steps); the bound, heater, auto, auto_plus,
winter, night and boost flags; brightness (0–6); and sensors
(inside_temperature, outside_temperature, *_2, humidity, co2, voc,
air_pressure; temperatures in °C). On Neo it also has fresh_air_position
and extract_position. Values the device does not report are None.Neo reports pranaModel = 5. Compared with the regular models:
auto is called Auto turbo and auto_plus
Auto comfort in the Prana app.inside_temperature is the supply air temperature and outside_temperature_2
is the extract air temperature.fresh_air_position or
extract_position, so check for None before offering these modes.PranaApiClientException
└── UpdateFailed any failed request
├── PranaApiCommunicationError connection error or timeout
├── PranaApiUpdateFailed non-200 status (.status)
└── PranaApiInvalidResponse unexpected payload
The package includes a fake device that serves the whole API, with the mode rules above:
prana-simulator --model neo --host 0.0.0.0 # or: python -m prana_local_api_client.simulator
prana-simulator --model 200 --port 8080 # models: neo, 200, 340
On macOS a regular user can bind port 80 only on 0.0.0.0, which also makes
the simulator reachable from your local network. Sensor values drift every few
seconds, and each accepted command is logged.
python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"
ruff check . && ruff format --check . && mypy && pytest --cov
CI runs these checks on Python 3.10–3.14, along with pip-audit and a test
build of the package. To release, bump version in pyproject.toml, update
CHANGELOG.md, and push a vX.Y.Z tag. The release workflow checks that the
tag matches the version, then publishes to PyPI and creates a GitHub release.
MIT
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.