$npx skillfedfor your agent

dict2xml

Small utility to convert a python dictionary into an XML string

Worth itPyPI Python ModulesReleased Jan 20261.1M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — dict2xml-1.7.8-py3-none-any.whl
v1.7.8 · released 2026-01-14 · Python >=3.5

Yes. The package is lightweight, dependency-free, stable, and carries no known vulnerabilities. Install it if you need straightforward dictionary-to-XML conversion. Skip it if you require XML attributes, namespaces, or CDATA handling—those are documented limitations, not bugs.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • No runtime dependencies and a pure-Python wheel distribution make installation straightforward.
  • The package is aging (last release 212 days ago) but remains actively maintained; the repository is not archived and the codebase is stable.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial use, modification, and distribution with minimal restrictions, making it suitable for most projects.

last release 2026-01-14 (212 days) · last repo commit 2026-01-14 · 33 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,094,040 downloads/mo, #4,375 on PyPI

Verify before relying

from dict2xml import dict2xml

data = {'a': 1, 'b': [2, 3]}
result = dict2xml(data, wrap="root", indent="  ")
  • Whether the package handles deeply nested structures or very large dictionaries without performance degradation.
  • Support for XML namespaces, attributes, or CDATA sections beyond what the description explicitly covers.
Same gist for agents: .md · .json

What it is and what it does

dict2xml is a lightweight utility that serializes Python dictionaries into XML strings. It takes a dictionary as input and produces formatted XML output with control over element wrapping, indentation, and newline handling. The library offers a simple functional interface via dict2xml() and a more flexible Converter class for advanced use cases like custom key sorting, self-closing tags for specific values, and control over how arrays are wrapped.

The package has no external runtime dependencies, making it quick to install and integrate. It supports Python 3.5+ and has been in production use since 2012. Key limitations include no support for XML attributes, custom data type hooks, or XML declarations—it focuses on straightforward dictionary-to-XML conversion for data serialization tasks.

Use it for

  • Serialize application configuration dictionaries to XML for legacy systems or interoperability.
  • Convert API response data structures into XML format for downstream processing or storage.
  • Generate XML reports or data exports from Python data structures in batch jobs.
  • Transform nested Python objects into XML for SOAP or XML-RPC communication.
  • Export structured data from Python applications to XML-based workflows or tools.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is lightweight, dependency-free, stable, and carries no known vulnerabilities. Install it if you need straightforward dictionary-to-XML conversion. Skip it if you require XML attributes, namespaces, or CDATA handling—those are documented limitations, not bugs.

Install

dict2xml on PyPI

Before you install

No runtime dependencies and a pure-Python wheel distribution make installation straightforward. The package is aging (last release 212 days ago) but remains actively maintained; the repository is not archived and the codebase is stable.

License in practice

MIT license permits commercial use, modification, and distribution with minimal restrictions, making it suitable for most projects.

Quickstart

from dict2xml import dict2xml

data = {'a': 1, 'b': [2, 3]}
result = dict2xml(data, wrap="root", indent="  ")

Verify before relying

  • Whether the package handles deeply nested structures or very large dictionaries without performance degradation.
  • Support for XML namespaces, attributes, or CDATA sections beyond what the description explicitly covers.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.5
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 212 days since the last release
Last repo commit
First released
Downloads1,094,040 / month, #4,375 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: Markup :: XML

Evidence: dict2xml-1.7.8-py3-none-any.whl

Tags

Capabilities
dictionary to xml conversionpython dict xml serializationconvert dict to xml stringxml generation from pythondict xml formatterpython data to xml
Topics
xml-serializationdata-conversion

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 › “convert dict to xml string”

  • dict2xmlConverts Python dictionaries into XML strings with configurable…
  • jxmleaseConverts XML to Python data structures (lists, dicts, strings) that…
  • dicttoxml2Converts Python dictionaries and native data types into valid XML…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
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
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also javaproperties · MarkupPy · xmljson · tomli-w · xmlformatter · dicttoxml2 · soup2dict · xmltodict · prettierfier · data-to-xml