skillfed

xml-python

A library for making Python objects from XML.

xml-python v0.4.3 3.8M downloads/30d#2,504 on PyPI
Copyleft license MPL Abandoned released

What it is and what it does

xml-python is a library for deserializing XML documents into Python objects. Instead of working with DOM trees or ElementTree structures, you define Python classes and the library maps XML elements to object instances, letting you access XML data through normal Python attributes.

The package depends only on attrs, a lightweight library for class definition. It was last released on 2021-01-07 and has received no updates since; the project is no longer maintained. Before adopting it, verify that it works with your Python version and that its XML handling meets your use case, since there will be no ongoing support for bugs or compatibility issues.

Use it for:

  • Deserialize XML configuration files into Python dataclass-like objects for easier programmatic access
  • Convert XML API responses into typed Python objects instead of navigating nested dictionaries
  • Map XML document structures to Python classes for data validation and type safety
  • Build Python object models from XML schemas without hand-coding parser logic

Worth the install?

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

Converts XML documents into Python objects, allowing you to work with XML data as native Python instances rather than parsing raw XML text.

No. The package is abandoned (last release 2021-01-07, no updates since) and offers no clear advantage over maintained alternatives. The lack of active maintenance means no bug fixes, security updates, or Python version compatibility improvements. Use only if you have a specific legacy dependency on this exact library.

Install

xml-python on PyPI

pip

pip install xml-python

uv

uv add xml-python

poetry

poetry add xml-python

Installing xml-python

Before you install

Installation is straightforward with no compiled dependencies, but the package has been abandoned since January 2021. No active maintenance or bug fixes should be expected.

License in practice

Licensed under MPL (Mozilla Public License), a copyleft license. You may use and modify the code, but derivative works must be distributed under the same license terms.

Quickstart

pip install xml-python

from xml_python import XmlObject

xml_data = '<root><item>value</item></root>'
obj = XmlObject.from_xml(xml_data)

Verify before relying

  • Whether the package actually supports the advertised XML-to-object conversion workflow (no working examples in fact sheet)
  • Current compatibility with modern Python versions (requires_python field is empty)
  • Whether attrs dependency is used for class generation or just as a utility
  • How this compares to maintained alternatives for XML-to-object mapping

Package facts

License MPL (copyleft)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — attrs
Maintenance abandoned — 2,045 days since the last release
First released
Downloads 3,751,707/month — #2,504 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: xml_python-0.4.3-py3-none-any.whl

Tags

xml to python objectsxml parsing pythondeserialize xmlxml object mappingxml data bindingconvert xml to classesxml schema binding
abandonedxml-serialization

More Markup packages