Install & Compatibility
Where this runs
tested against v1.0.14 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.10
✕ build_error
✕ build_error
py 3.9
✕ build_error
✕ build_error
14MB installed
● package 14MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
dicttoxml
✓ from data_to_xml import dicttoxml
✗ from dicttoxml import dicttoxml
Convert a dict to XML with optional root element and type attributes disabled.
from dicttoxml import dicttoxml
my_dict = {
'name': 'Alice',
'age': 30,
'items': ['book', 'pen']
}
xml_str = dicttoxml(my_dict, custom_root='person', attr_type=False)
print(xml_str.decode() if isinstance(xml_str, bytes) else xml_str)
Upgrade
Version history
1.0.14latest on PyPI · released May 17, 2026
Audit
Dependencies
lxmlrequiredUsed under the hood for XML generation; error if missing.