skillfed

xknxproject

A library to gather information from ETS project files used for KNX

xknxproject v3.10.0 107.8K downloads/30d#12,595 on PyPI117
Copyleft license GPL-2.0-only Active released

What it is and what it does

xknxproject is a library for extracting and parsing KNX project files—the configuration archives used by the ETS (Engineering Tool Software) to define building automation systems. It reads password-protected project files from ETS 4, 5, and 6 and exposes the underlying XML structure as typed Python objects, making it easy to programmatically access device addresses, group addresses, communication objects, DPT types, room assignments, and function mappings.

The library is designed for developers who need to integrate KNX project data into other tools or systems—particularly Home Assistant integrations and custom automation workflows. It depends on pyzipper for archive handling and striprtf for text extraction, and returns results as a typed dictionary that can be serialized to JSON. Parse times are typically 1.5 seconds for medium projects and longer for larger configurations.

Use it for:

  • Extract device and group address mappings from an ETS project to populate a Home Assistant KNX integration
  • Parse communication object definitions and DPT types to validate a KNX system configuration programmatically
  • Read room and location metadata from a project file to generate documentation or a device inventory
  • Automate migration of KNX project data into a custom building management system
  • Analyze device channels and their GA assignments to debug or audit a KNX installation

Worth the install?

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

Extracts and parses KNX project files (ETS 4, 5, and 6 formats, including password-protected archives) to read device addresses, group addresses, communication objects, and location metadata as structured data.

Yes, if you need to read KNX project files programmatically and accept the GPL-2.0 copyleft constraint. The library is actively maintained, has low install friction, and solves a specific problem with no known vulnerabilities. Not suitable for proprietary or closed-source projects due to its license.

Install

xknxproject on PyPI

pip

pip install xknxproject

uv

uv add xknxproject

poetry

poetry add xknxproject

Installing xknxproject

Before you install

Low friction install with only two runtime dependencies (pyzipper, striprtf). Actively maintained with a recent release (12 days old) and steady repository activity.

License in practice

GPL-2.0-only copyleft license means any code that links this library must also be released under GPL-2.0 or compatible terms; proprietary or closed-source projects cannot use it.

Quickstart

from xknxproject import XKNXProj
from xknxproject.models import KNXProject

knxproj = XKNXProj(
    path="file.knxproj",
    password="optional_password",
    language="de-DE"
)
project: KNXProject = knxproj.parse()

Requires Python >=3.9.0; loading a middle-sized project takes about 1.5 seconds, larger projects may take >3 seconds.

Verify before relying

  • Performance characteristics for very large projects beyond the mentioned >3s threshold
  • Which ETS 4, 5, and 6 project features are fully supported versus partially supported or excluded
  • Language fallback behavior when configured language is unavailable

Package facts

License GPL-2.0-only (copyleft)
Python support supports the current Python release (>=3.9.0)
Install friction low — pure-Python wheel
Runtime dependencies 2 — pyzipper, striprtf
Maintenance actively maintained — 12 days since the last release
Last repo commit
First released
Downloads 107,787/month — #12,595 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: xknxproject-3.10.0-py3-none-any.whl

Keywords: KNX, ETS, Home Assistant

Development Status :: 4 - BetaIntended Audience :: DevelopersProgramming Language :: Python :: 3

Tags

KNX project file parserETS project extractionKNX device address readerhome automation configuration parserKNX group address extractor
knx-automationhome-assistantconfiguration-parser

More Utilities packages