types-xmltodict
Typing stubs for xmltodict
Decision gist · record as of 2026-08-14
Yes, if you use xmltodict and run static type checking. Installing this stub package is free and adds no runtime cost, and it immediately enables your type checker to validate xmltodict usage. If you don't use a type checker or don't use xmltodict, there's no reason to install it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; type checker (mypy, pyright, etc.) must be installed separately to use the stubs.
- Low friction installation with no runtime dependencies.
- Maintained as part of the active typeshed project with recent updates; last commit on 2026-08-14.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows free use, modification, and distribution with minimal restrictions.
last release 2026-05-18 (88 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,433,550 downloads/mo, #3,907 on PyPI
Alternatives
Verify before relying
pip install types-xmltodict
# In your code using xmltodict:
import xmltodict
data: dict = xmltodict.parse('<root><item>value</item></root>')- Whether this stub package is automatically discovered by type checkers or requires explicit configuration
- Coverage completeness for all xmltodict APIs in the targeted version range
What it is and what it does
This is a type stub package that ships type annotations for xmltodict, a library that converts XML into Python dictionaries. Type stubs allow static type checkers to understand the types and signatures of xmltodict's functions and classes without modifying the original library. When you install this package alongside xmltodict and a type checker like mypy or pyright, the checker can validate that your code is calling xmltodict correctly and handling the returned data with the right types.
The stubs are maintained as part of typeshed, the central repository of type information for Python packages. This version targets xmltodict 1.0.1 and has been tested with mypy 2.1.0 and pyright 1.1.409. Since it contains no runtime code, installation adds no overhead to your application—it only helps during development and CI type-checking phases.
Use it for
- Enable mypy or pyright to catch type errors in code that uses xmltodict.parse() and related functions
- Provide IDE autocomplete and inline type hints when working with xmltodict in a modern editor
- Enforce type safety in XML parsing workflows without modifying the xmltodict library itself
- Support CI/CD pipelines that run static type checks on projects using xmltodict
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use xmltodict and run static type checking.
Installing this stub package is free and adds no runtime cost, and it immediately enables your type checker to validate xmltodict usage. If you don't use a type checker or don't use xmltodict, there's no reason to install it.
Install
types-xmltodict on PyPI
Before you install
Low friction installation with no runtime dependencies. Maintained as part of the active typeshed project with recent updates; last commit on 2026-08-14.
Requires Python 3.10 or later; type checker (mypy, pyright, etc.) must be installed separately to use the stubs.
License in practice
Apache-2.0 permissive license allows free use, modification, and distribution with minimal restrictions.
Quickstart
pip install types-xmltodict
# In your code using xmltodict:
import xmltodict
data: dict = xmltodict.parse('<root><item>value</item></root>')
Verify before relying
- Whether this stub package is automatically discovered by type checkers or requires explicit configuration
- Coverage completeness for all xmltodict APIs in the targeted version range
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 88 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,433,550 / month, #3,907 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_xmltodict-1.0.1.20260518-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 › “type stubs xmltodict”
- types-xmltodictProvides type annotations for the xmltodict package, enabling static…
- xmltodictConverts XML to Python dictionaries and back, treating XML parsing…
- types-assertpyProvides type stubs enabling static type checkers like mypy and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-defusedxml · types-toml · xmltodict · types-polib · types-html5lib · types-simplejson · types-Markdown · types-psutil · types-jmespath · xmltojson