--- id: python-didl-lite version: "1.5.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # python-didl-lite — DIDL-Lite (Digital Item Declaration Language) tools for Python License: permissive · Maintenance: active · Downloads: 156.7K/mo ## What it is and what it does python-didl-lite provides tools to read and write DIDL-Lite XML, the standard format for declaring digital items in UPnP media systems. It wraps the XML parsing and serialization logic needed to work with UPnP ContentDirectory metadata, following the UPnP-av specifications. The package is a straightforward codec: it does not enforce type checking or perform automatic data coercion, leaving that responsibility to the caller. Typical use is in UPnP media servers, clients, or tools that need to parse or generate DIDL-Lite metadata describing audio, video, or image items. The single runtime dependency is defusedxml, which handles the XML I/O. The package targets modern Python (3.10+) and has been actively maintained since its 2018 initial release. Use it for: - Parse DIDL-Lite metadata from a UPnP ContentDirectory service response to extract item details - Generate DIDL-Lite XML documents to describe media items in a UPnP media server - Convert between DIDL-Lite and application-specific data structures in media management tools - Validate or inspect DIDL-Lite documents against UPnP-av specifications - Build UPnP client libraries that need to understand media item metadata ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Reads and writes DIDL-Lite XML documents, a standard format for declaring digital items in UPnP media systems. Yes. The package solves a specific, well-defined problem (DIDL-Lite XML I/O) with low install friction, active maintenance, no known vulnerabilities, and a permissive license. Install it if you are building UPnP media tools or need to parse/generate DIDL-Lite metadata. Skip it if you do not work with UPnP systems. ## Install pip install python-didl-lite uv add python-didl-lite poetry add python-didl-lite ## Installing python-didl-lite Before you install: Low friction: pure Python wheel with a single runtime dependency (defusedxml). Actively maintained with recent releases; last commit 2026-08-14. Supports current Python versions (3.10–3.14). License in practice: Apache-2.0 permissive license allows commercial and private use with minimal restrictions. Quickstart: pip install python-didl-lite import python_didl_lite # Parse or create DIDL-Lite XML documents # See tests/ for usage examples Requires Python 3.10 or later. Note: the package does not perform type checking; users must handle data type coercion between strings and other types. Verify before relying: - Whether the package handles all UPnP-av ContentDirectory v1 and v2 features completely - Performance characteristics when working with large DIDL-Lite documents - Whether defusedxml is used for security hardening against XML attacks ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 156.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags DIDL-Lite XML parsing, UPnP media metadata, digital item declaration, DIDL-Lite serialization, UPnP content directory, XML media format, DIDL document handling, upnp, xml-format, media-metadata [View on SkillFed](https://skillfed.io/packages/python-didl-lite) · [View on PyPI](https://pypi.org/project/python-didl-lite/)