dicttoxml
Converts a Python dictionary or other native data type into a valid XML string.
Decision gist · record as of 2026-08-14
Yes, if you need simple dict-to-XML conversion and can accept an unmaintained package. The core functionality is stable and has no known vulnerabilities. The copyleft license (GPLv2) is a hard blocker if you cannot open-source your code. For new projects, consider whether a maintained alternative better suits your long-term needs, but for isolated, low-risk use cases, dicttoxml remains functional.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later; Python 2.x is no longer supported.
- No runtime dependencies and low install friction.
- However, the package is abandoned—last release was 2022-12-23 and no commits since then.
License · maintenance · safety
copyleft license (copyleft) — Licensed under GNU General Public License Version 2, a copyleft license. If you distribute software using dicttoxml, you must make your source code available under the same license terms.
last release 2022-12-23 (1330 days) · last repo commit 2022-12-23 · 385 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,280,129 downloads/mo, #3,167 on PyPI
Alternatives
Verify before relying
pip install dicttoxml
from dicttoxml import dicttoxml
xml = dicttoxml({'key': 'value'})
print(xml)- Whether the package handles edge cases in modern Python versions (3.10+) given its abandoned status since 2022.
- Performance characteristics on very large or deeply nested data structures.
What it is and what it does
dicttoxml is a lightweight serializer that takes Python data structures—dicts, lists, tuples, sets, and primitive types—and produces well-formed XML output. It automatically wraps output in an XML declaration and root element, though both can be customized or omitted. The library supports type attributes on elements (which can be disabled), handles datetime objects by converting them to ISO format, treats None as empty XML elements, and provides options for custom root names, encoding specification, and unique ID generation. It has no external dependencies and installs as a pure Python wheel.
The package is straightforward for simple dict-to-XML tasks but is no longer maintained. It works reliably for its core purpose—converting Python objects to XML strings with configurable formatting—but will not receive updates for new Python versions or edge cases. It is best suited for projects that need basic serialization without the overhead of heavier XML libraries and can tolerate a frozen feature set.
Use it for
- Convert API responses (e.g., JSON fetched from a URL) into XML format for downstream systems that require it.
- Serialize application configuration stored as Python dicts into XML files for consumption by other tools.
- Generate XML snippets for embedding in larger XML documents without writing manual string concatenation.
- Transform Python data structures into XML for data interchange with legacy systems or services.
- Create XML test fixtures from Python dictionaries in unit tests.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need simple dict-to-XML conversion and can accept an unmaintained package.
The core functionality is stable and has no known vulnerabilities. The copyleft license (GPLv2) is a hard blocker if you cannot open-source your code. For new projects, consider whether a maintained alternative better suits your long-term needs, but for isolated, low-risk use cases, dicttoxml remains functional.
Install
dicttoxml on PyPI
Before you install
No runtime dependencies and low install friction. However, the package is abandoned—last release was 2022-12-23 and no commits since then. It remains functional for its narrow scope but will not receive bug fixes or maintenance.
Requires Python 3.6 or later; Python 2.x is no longer supported.
License in practice
Licensed under GNU General Public License Version 2, a copyleft license. If you distribute software using dicttoxml, you must make your source code available under the same license terms.
Quickstart
pip install dicttoxml
from dicttoxml import dicttoxml
xml = dicttoxml({'key': 'value'})
print(xml)
Verify before relying
- Whether the package handles edge cases in modern Python versions (3.10+) given its abandoned status since 2022.
- Performance characteristics on very large or deeply nested data structures.
Package facts
| License | copyleft license copyleft |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,330 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,280,129 / month, #3,167 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: dicttoxml-1.7.16-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “xml generation from python objects”
- dicttoxmlConverts Python dictionaries and other native data types into valid…
- dicttoxml2Converts Python dictionaries and native data types into valid XML…
- pykmlpyKML parses and creates KML documents using a Pythonic XML interface…
Give your agent the search over MCP, or paste the wish link into any chat.
More Markup packages
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
A Python markdown parser that converts markdown to HTML following the CommonMark specification, with support for plugins and custom syntax rules.
Install it if you need reliable markdown-to-HTML conversion.
Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.
Install it if you need to parse or extract data from markup documents.
et_xmlfile writes large XML files with minimal memory overhead by serializing elements to disk as they are created, rather than holding the entire tree in memory.
Install it if incremental XML writing fits your use case; skip it if your XML documents are small or you already use lxml.
Parses and edits TOML files while preserving formatting, comments, and structure, then serializes them back with layout intact.
Install it if you're building tools that touch TOML files and user readability of the source matters.
Parses Python docstrings in ReST, Google, Numpydoc, and Epydoc formats, extracting structured information like descriptions, parameters, return types, and exceptions.
Install it if you need to programmatically read and extract structured data from Python docstrings.
See also dicttoxml2 · json2xml · jxmlease · untangle · xmltodict · javaproperties · attrdict · xmlformatter · xmljson · http-sfv