skillfed

openccu-loom-types

Generated Pydantic / enum types for the openccu-loom REST + WebSocket contract

openccu-loom-types v0.3.15 262.5K downloads/30d#8,373 on PyPI0
Permissive license MIT Active released

What it is and what it does

openccu-loom-types is a generated type package that mirrors the wire contract of the openccu-loom home automation daemon. It exports three modules: enums (string-typed Python enums matching daemon wire values), rest (Pydantic models for the REST API surface), and ws (Pydantic models for WebSocket envelopes and push payloads). All models are regenerated from the daemon's OpenAPI schema via datamodel-code-generator, ensuring they stay in sync with the daemon's contract.

The package exists to give Python clients a single, version-pinned source of truth for the daemon's types, preventing model drift and duplication across consumers. It carries two stamped constants—schema_digest and daemon_api_version—that clients use to verify type/daemon parity at connect time. Regeneration and release are fully automated: the daemon's release workflow triggers a PR in this repo, CI validates the regeneration, and a successful merge auto-publishes to PyPI.

Use it for:

  • Building a typed Python client for the openccu-loom daemon without duplicating model definitions
  • Validating REST request/response payloads against the daemon's contract at runtime
  • Consuming WebSocket push events with full type safety and IDE autocomplete
  • Verifying schema_digest at client startup to catch daemon/type version mismatches
  • Integrating home automation logic that depends on stable enum values from the CCU

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides generated Pydantic models and string enums for the openccu-loom daemon's REST and WebSocket contract, enabling type-safe client integration.

Yes, if you are building a Python client for openccu-loom or consuming its REST/WebSocket APIs. The package is actively maintained, has no security vulnerabilities, carries a permissive MIT license, and requires only pydantic as a dependency. Install friction is minimal. The types are generated and CI-validated on every daemon release, so they stay authoritative. Not relevant if you are not working with the openccu-loom daemon.

Install

openccu-loom-types on PyPI

pip

pip install openccu-loom-types

uv

uv add openccu-loom-types

poetry

poetry add openccu-loom-types

Installing openccu-loom-types

Before you install

Low friction: pure Python wheel with a single runtime dependency on pydantic. Active maintenance with releases tied to the daemon's CI/CD pipeline; last commit 2026-08-14.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both commercial and open-source projects.

Quickstart

pip install openccu-loom-types

from openccu_loom_types.rest import SomeRestModel
from openccu_loom_types.enums import SomeEnum
from openccu_loom_types.ws import WebSocketEnvelope

Requires Python >= 3.11

Verify before relying

  • Whether the package is suitable for production use in home automation systems beyond the daemon's own clients
  • Stability guarantees for the generated model API across minor/patch version bumps
  • Whether schema_digest validation is enforced or advisory in consuming clients

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.11)
Install friction low — pure-Python wheel
Runtime dependencies 1 — pydantic
Maintenance actively maintained — 0 days since the last release
Last repo commit
First released
Downloads 262,505/month — #8,373 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: openccu_loom_types-0.3.15-py3-none-any.whl

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Home AutomationTyping :: Typed

Tags

pydantic models for rest apiwebsocket type definitionshome automation api typesopenapi schema pydantictyped daemon client bindingsccu home automation typescontract-first api models
generated-typeshome-automationapi-contract

More Home Automation packages

netaddr

Represents and manipulates IPv4, IPv6, MAC…

permissive · top 5,000 on PyPI

homeassistant

Home Assistant is an open-source home…

permissive · top 5,000 on PyPI

python-statemachine

Defines finite state machines and statecharts…

permissive · top 5,000 on PyPI

btsocket

A Python library for controlling BlueZ…

permissive · top 15,000 on PyPI

aiohomematic

An async Python library for controlling and…

permissive · top 15,000 on PyPI

hass-web-proxy-lib

Provides base classes and utilities for Home…

permissive · top 15,000 on PyPI

openccu-loom-client

Async Python REST and WebSocket client for the…

permissive · top 15,000 on PyPI

openresponses-types

Provides Pydantic models for the OpenResponses…

permissive · top 15,000 on PyPI

openccu-data

Extracts and distributes Homematic CCU…

permissive · top 15,000 on PyPI

k8

Provides Python type models for Kubernetes…

permissive · top 15,000 on PyPI

langchain-protocol

Provides Python type definitions (TypedDict,…

permissive · top 1,000 on PyPI

django-pydantic-field

Provides type-safe Pydantic model schemas for…

permissive · top 5,000 on PyPI

kumo-api

kumo-api defines RESTful API resource schemas…

permissive · top 15,000 on PyPI

scim2-models

Provides Pydantic models for SCIM2 (System for…

permissive · top 15,000 on PyPI

aiohomematic-config

Transforms Homematic device paramset…

permissive · top 15,000 on PyPI

datacontract-specification

Reads and writes YAML files conforming to the…

permissive · top 5,000 on PyPI