--- id: data-to-xml version: "1.0.14" license: Dual License: All software and documentation is distributed under "BSD 3-Clause License" AND "Mozilla Public License Version 2.0" ================================== BSD 3-Clause License… (full text in the JSON record) license_treatment: unclear maintenance: active --- # data-to-xml — A simple dict to xml converter License: unclear · Maintenance: active · Downloads: 177.2K/mo ## What it is and what it does data-to-xml is a lightweight Python library that transforms dictionaries and lists into XML format. It takes Python data structures as input and produces valid XML output, making it useful for scenarios where you need to serialize structured data to XML without writing manual XML construction code. The package has no runtime dependencies, installs cleanly, and supports modern Python versions (3.11, 3.12, 3.13) on both CPython and PyPy. It is marked as Production/Stable and has been actively maintained since its initial release. Use it for: - Export configuration dictionaries to XML format for legacy systems or XML-based APIs. - Convert JSON-like Python data structures to XML for data interchange with XML-dependent tools. - Serialize application state or structured data to XML files for archival or transmission. - Transform API response data (typically dict-based) into XML for downstream XML processors. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Converts Python dictionaries and lists into XML documents with configurable structure and formatting. Yes. The package is lightweight, dependency-free, actively maintained, dual-licensed under permissive terms, and solves a straightforward problem. Install it if you need dict-to-XML conversion and can work with Python 3.11+. No known security issues. ## Install pip install data-to-xml uv add data-to-xml poetry add data-to-xml ## Installing data-to-xml Before you install: Installs with no dependencies and maintains active development. Last release 89 days ago with recent commits. License in practice: Dual-licensed under BSD-3-Clause and Mozilla Public License 2.0. Both are permissive open-source licenses; you may choose which terms apply to your use. Quickstart: pip install data-to-xml from data_to_xml import dict_to_xml data = {'root': {'item': 'value'}} xml_string = dict_to_xml(data) Requires Python 3.11 or later. Verify before relying: - Whether the converter handles nested structures, attributes, and mixed content types as expected for your use case. - Performance characteristics when converting large or deeply nested data structures. - Availability and completeness of documentation beyond the GitHub examples directory. ## Package facts - License: Dual License: All software and documentation is distributed under "BSD 3-Clause License" AND "Mozilla Public License Version 2.0" ================================== BSD 3-Clause License… (full text in the JSON record) (unclear) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 177.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags dict to xml converter, python dictionary xml serialization, list to xml conversion, data structure xml output, json-like to xml, python object xml export, serialization, xml-generation [View on SkillFed](https://skillfed.io/packages/data-to-xml) · [View on PyPI](https://pypi.org/project/data-to-xml/)