xml-python is a library for making Python objects from XML, designed to parse XML nodes using decorated functions. Last updated in January 2021 (v0.4.3), the project appears to be unmaintained with no public documentation beyond its minimal PyPI description.
pip install xml-pythonVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to define a Python object that maps to an XML structure using `xml-python`'s decorator-based parsing. It defines a `MyNodeObject` class and a `parse_root` function decorated to handle the 'root' XML tag, extracting data from its 'title' and 'text' child nodes.
Evaluate alternatives like `xml.etree.ElementTree` (built-in standard library), `lxml` for performance and advanced features, or `xmltodict` for XML to dictionary conversion, which are actively maintained and well-documented.
Sanitize XML input from untrusted sources. For critical applications, consider using libraries specifically designed with security in mind (e.g., `defusedxml` which hardens standard library parsers). If possible, validate XML against a schema (XSD) if one is available.
No dependency data recorded yet.