Naive XML Bindings for python¶
Features¶
Code generation for XML Schema definitions
Supports qualified/unqualified elements and attributes
Supports enumerations and inner classes
Flattening strategies to keep the code as simple as possible.
Preserve embedded documentation and references
Pluggable code writer that supports different formats
Format: Python Data Classes
PEP8 naming conventions and code output
Full support for type hints even with forward references
XML Parser & Serializer based on lxml
JSON Parser & Serializer
Format: PlantUML class diagram
Check the documentation test suites and the samples repo for more ✨✨✨
Why naive?
The W3C XML Schema offers so much flexibility and abstraction layers and grammatical rules to support practically any xml document definition.
Itergration teams and clients don’t care about any of that, take out abstraction and flexibility and you are left with lean named data structures with typed attributes and a namespace for humans to read!
Roadmap¶
Add option to split classes in multiple files
Python renderers: attrs and pydantic
Java renderer: JaxB compatible models :)
Validators
- Getting started
- Code Generator
- Architecture
- Formats
- Tests
- Changelog
- About
- API Reference
- xsdata
- xsdata package
- xsdata.builder module
- xsdata.cli module
- xsdata.formats package
- xsdata.formats.dataclass package
- xsdata.formats.dataclass.filters module
- xsdata.formats.dataclass.generator module
- xsdata.formats.dataclass.mixins module
- xsdata.formats.dataclass.models module
- xsdata.formats.dataclass.parsers module
- xsdata.formats.dataclass.serializers module
- xsdata.formats.dataclass.utils module
- xsdata.formats.mixins module
- xsdata.formats.plantuml package
- xsdata.formats.plantuml.generator module
- xsdata.generators module
- xsdata.logger module
- xsdata.models package
- xsdata.models.codegen module
- xsdata.models.elements module
- xsdata.models.enums module
- xsdata.models.mixins module
- xsdata.parser module
- xsdata.reducer module
- xsdata.resolver module
- xsdata.tool module
- xsdata.utils package
- xsdata.utils.text module
- xsdata.writer module