$npx skillfedfor your agent

dicttoxml

Converts a Python dictionary or other native data type into a valid XML string.

With conditionsPyPI MarkupReleased Dec 20222.3M downloads / mocopyleft licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — dicttoxml-1.7.16-py3-none-any.whl
v1.7.16 · released 2022-12-23 · Python >=3.6

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

Licensecopyleft license copyleft
Python supportSupports the current Python release >=3.6
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 1,330 days since the last release
Last repo commit
First released
Downloads2,280,129 / month, #3,167 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: dicttoxml-1.7.16-py3-none-any.whl

Tags

Capabilities
dict to xml conversionpython dictionary xml serializationdata structure to xmljson to xml converterxml generation from python objects
Topics
serializationxml-generation

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 Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
markdown-it-py Worth it
PyPI · Python Modules · released May 2026

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.

MITpure Python · 3.10+
613.8Mdownloads / mo
beautifulsoup4 Worth it
PyPI · Python Modules · released Jun 2026

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.

MITpure Python · 3.7.0+
432.1Mdownloads / mo
et-xmlfile With conditions
PyPI · Markup · released Oct 2024

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.

MITpure Python · 3.8+dormant
343.3Mdownloads / mo
tomlkit Worth it
PyPI · Markup · released Jul 2026

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.

MITpure Python · 3.9+
338.0Mdownloads / mo
docstring-parser Worth it
PyPI · Python Modules · released Apr 2026

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.

MITpure Python · 3.8+
274.9Mdownloads / mo

See also dicttoxml2 · json2xml · jxmlease · untangle · xmltodict · javaproperties · attrdict · xmlformatter · xmljson · http-sfv