--- id: types-xmltodict version: "1.0.1.20260518" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-xmltodict — Typing stubs for xmltodict License: permissive · Maintenance: active · Downloads: 1.4M/mo ## 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 above — verify before relying. Provides type annotations for the xmltodict package, enabling static type checkers like mypy and pyright to validate code that parses XML into Python dictionaries. 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 pip install types-xmltodict uv add types-xmltodict poetry add types-xmltodict ## Installing types-xmltodict 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. 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('value') Requires Python 3.10 or later; type checker (mypy, pyright, etc.) must be installed separately to use the stubs. 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_current - Install friction: low - Maintenance: active - Downloads: 1.4M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs xmltodict, xmltodict type hints, mypy xmltodict annotations, xml parsing type checking, typeshed stubs, static typing xml, pyright xmltodict, type-stubs, xml-parsing [View on SkillFed](https://skillfed.io/packages/types-xmltodict) · [View on PyPI](https://pypi.org/project/types-xmltodict/)