xknxproject
A library to gather information from ETS project files used for KNX
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 xknxprojectuv
uv add xknxprojectpoetry
poetry add xknxprojectInstalling 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
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
xknxXKNX is an asynchronous Python library for…
permissive · top 15,000 on PyPI
knx-frontendProvides a web-based user interface panel for…
permissive · top 15,000 on PyPI
textractExtracts text from documents in multiple…
permissive · top 15,000 on PyPI
pyapPyap detects and parses postal addresses from…
permissive · top 15,000 on PyPI
extractcodeExtracts a wide range of archive formats (tar,…
permissive · top 15,000 on PyPI
usaddressusaddress parses unstructured US address…
permissive · top 5,000 on PyPI
pyap2Pyap2 detects and parses postal addresses from…
permissive · top 15,000 on PyPI
ipsw-parserParses and extracts data from iOS IPSW firmware…
copyleft · top 15,000 on PyPI
petlpetl extracts, transforms, and loads tables of…
permissive · top 5,000 on PyPI
mailbitsProvides utilities for parsing, converting, and…
permissive · top 15,000 on PyPI