$npx skillfedfor your agent

xsdata-pydantic

xsdata pydantic plugin

Worth itPyPI Code GeneratorsReleased May 2024313.2K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — xsdata_pydantic-24.5-py3-none-any.whl
v24.5 · released 2024-05-08 · Python >=3.8 · 2 runtime deps: pydantic, xsdata

Yes. Low install friction, active maintenance, no known vulnerabilities, permissive MIT license, and broad Python version support. Solves a real problem for anyone working with XML schemas or WSDL in Python and wanting pydantic's validation and type safety. Suitable for production use.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires xsdata CLI to generate pydantic models from XSD/WSDL schemas first; Python 3.8 or later.
  • Low friction install with only pydantic and xsdata as runtime dependencies.
  • Actively maintained with recent commits and support for current Python versions.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions.

last release 2024-05-08 (828 days) · last repo commit 2026-04-01 · 89 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 313,198 downloads/mo, #7,719 on PyPI

Verify before relying

pip install xsdata-pydantic

from xsdata_pydantic.bindings import XmlParser

parser = XmlParser()
result = parser.parse(open('document.xml'), Rss)
print(result.channel.item[0].title)
  • Whether generated models handle deeply nested or recursive schema structures reliably.
  • Performance characteristics when parsing very large XML or JSON documents.
  • Compatibility with all pydantic v2 features and validation modes.
Same gist for agents: .md · .json

What it is and what it does

xsdata-pydantic bridges XML/JSON schema definitions and pydantic's type system. It uses xsdata to parse XSD, WSDL, and DTD schemas, then generates pydantic BaseModel classes that represent the document structure. Once generated, you can parse XML or JSON into typed Python objects and serialize them back, gaining IDE autocomplete, runtime validation, and type checking throughout your workflow.

The package is typically used in two phases: first, run the xsdata CLI to generate model files from a schema; then, import those models and use XmlParser or serializers from xsdata-pydantic.bindings to read and write documents. It's designed for developers who work with structured data formats and want the safety and ergonomics of pydantic's validation without manually writing model classes.

Use it for

  • Parse RSS/Atom feeds or SOAP responses into typed objects with validation.
  • Generate Python models from enterprise WSDL or XSD files for API integration.
  • Serialize Python dataclasses back to XML with schema-aware structure and attributes.
  • Build data pipelines that consume JSON or XML from external sources with type safety.
  • Validate incoming XML documents against a schema before processing in your application.

Worth the install?

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

Worth it

Yes.

Low install friction, active maintenance, no known vulnerabilities, permissive MIT license, and broad Python version support. Solves a real problem for anyone working with XML schemas or WSDL in Python and wanting pydantic's validation and type safety. Suitable for production use.

Install

xsdata-pydantic on PyPI

Before you install

Low friction install with only pydantic and xsdata as runtime dependencies. Actively maintained with recent commits and support for current Python versions.

Requires xsdata CLI to generate pydantic models from XSD/WSDL schemas first; Python 3.8 or later.

License in practice

MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions.

Quickstart

pip install xsdata-pydantic

from xsdata_pydantic.bindings import XmlParser

parser = XmlParser()
result = parser.parse(open('document.xml'), Rss)
print(result.channel.item[0].title)

Verify before relying

  • Whether generated models handle deeply nested or recursive schema structures reliably.
  • Performance characteristics when parsing very large XML or JSON documents.
  • Compatibility with all pydantic v2 features and validation modes.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
pydanticxsdata
MaintenanceActively maintained 828 days since the last release
Last repo commit
First released
Downloads313,198 / month, #7,719 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Code GeneratorsTopic :: Text Processing :: Markup :: XML

Evidence: xsdata_pydantic-24.5-py3-none-any.whl

Tags

Capabilities
xml to pydantic model generatorjson schema binding pydanticxsd code generationxml parsing with type hintsschema-driven data bindingxml serialization pydanticwsdl to python models
Topics
schema-bindingcode-generationxml-json
PyPI keywords
xsdwsdlschemadtdbindingxmljsondataclassesgeneratorclipydantic

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 to pydantic model generator”

  • xsdata-pydanticGenerates pydantic models from XML and JSON schemas, then parses and…
  • datamodel-code-generatorGenerates Python data models (Pydantic, dataclasses, TypedDict,…
  • pydantic-xmlPydantic-xml adds XML serialization and deserialization to pydantic…

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

More Code Generators packages

proto-plus Worth it
PyPI · Python Modules · released Aug 2026

Proto Plus wraps protocol buffers to provide Python classes that behave like native Python types while maintaining protocol buffer serialization and schema validation.

Install it if you're working with protocol buffers in Python and want a more Pythonic interface, or if you're using Google Cloud libraries that depend on it.

Apache-2.0pure Python · 3.10+
343.8Mdownloads / mo
Cython Worth it
PyPI · Python Modules · released Jul 2026

Cython is a source code translator that compiles Python code to C, enabling optional static typing and direct C/C++ interoperability to generate efficient native extensions.

Install it if you need to optimize Python performance, wrap C/C++ libraries, or build fast native extensions.

permissive licensepure Python · 3.8+
136.1Mdownloads / mo
asttokens Worth it
PyPI · Python Modules · released Jul 2026

Annotates Python abstract syntax trees with the positions of tokens and source code text, enabling tools to map AST nodes back to their originating code for refactoring, analysis, and transformation.

permissive licensepure Python · 3.8+
134.8Mdownloads / mo
beartype Worth it
PyPI · Python Modules · released Dec 2025

Beartype is a runtime type checker that validates Python type hints at function call time, catching type violations before they cause downstream bugs.

Install it if you want runtime type safety for your annotated code or need to validate type hints on third-party packages.

MITpure Python · 3.10+
99.1Mdownloads / mo
llvmlite With conditions
PyPI · Code Generators · released Aug 2026

llvmlite provides a lightweight Python binding to LLVM's IR builder, optimizer, and JIT compiler APIs, enabling you to write JIT compilers and code generators without needing the full LLVM C++ API surface.

BSD-2-Clause AND Apache-2.0 WITH LLVM-exceptioncompiled wheel · 3.10+
69.3Mdownloads / mo
astor Worth it
PyPI · Code Generators · released Dec 2019

astor converts Python abstract syntax trees (ASTs) back to readable source code and provides tools for AST manipulation, inspection, and non-recursive tree traversal.

Install it if you need AST round-tripping or advanced tree inspection.

BSD-3-Clausepure Python
20.0Mdownloads / mo

See also pydantic-xml · xsdata · PyXB-X · xml-python · xmlschema · dydantic · py-avro-schema · pydantic-factories · pydantic_yaml