# martinblech/xmltodict

Python module that makes working with XML feel like you are working with JSON

Repository: https://github.com/martinblech/xmltodict
Canonical: https://ross.abutalabs.com/products/xmltodict
Language: Python
License: MIT
License Family: permissive
Last push: 2026-08-19T19:04:24+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 71, longevity 100
- inputs: {"age_days": 5251, "days_push": 14, "days_rel": 193, "gap_med": 4, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5751, forks 475 (observed 2026-08-28T04:09:29.024290+00:00)

## What it is
xmltodict is a Python library that converts XML documents into Python dictionaries and back, making XML manipulation feel like working with JSON. It is built on Expat for speed, supports namespaces, offers a streaming mode for large XML files, and includes a command-line interface.

## Use cases
- parse xml files into python dicts
- convert xml to
- process large xml dumps like wikipedia with low memory
- handle xml with namespaces in python
- convert dict back to xml string
- pipe xml data through a command line script

## When to choose
- you want simple dict-based access to XML data in Python
- you need to stream very large XML documents without loading them fully into memory
- you want a quick XML-to-JSON style conversion with attribute and namespace support

## When to avoid
- you need full XML schema validation or XPath/XSLT support
- you need to preserve comments, processing instructions, or exact document order
- you are working with extremely complex mixed-content XML requiring fine-grained control

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, cli
- domain: parsers, developer-tools, files
- platform: python, cli, cross-platform
- tags: xml, xml-to-dict, streaming-parser, expat

## Member repositories
- martinblech/xmltodict (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:29.024290+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:53:18.152725+00:00, confidence not recorded.
  - readme: https://github.com/martinblech/xmltodict (fetched 2026-08-28T04:09:29.024290+00:00, sha 34fe6fd49fa4)
  - registry_pypi: https://pypi.org/pypi/xmltodict/json (fetched 2026-08-29T08:48:31.272133+00:00, sha 891c90f75706)
- Data as of 2026-08-30T08:39:29.467469+00:00.
