XSDATA-GENERATE(1)
β¨ XSDATA-GENERATE β¨
okay so bestie, this is the xsdata-generate moment β it's part of the xsdata manual gang, and it's literally the glow-up machine that turns your schema files into actual code π
πΈ NAME πΈ
xsdata-generate β generate code from xsd, dtd, wsdl, xml and... (the ellipsis is doing a LOT of heavy lifting here fr)
π SYNOPSIS π
xsdata generate [OPTIONS] SOURCE
π¦ DESCRIPTION π¦
so like. you give it schemas. it gives you code. that's the whole vibe β¨
Generate code from xsd, dtd, wsdl, xml and json files.
The input SOURCE can be either a filepath, a uri, or a directory containing xml, json, xsd and wsdl files. no cap, it really does just slurp up whatever's in there π«Ά
π OPTIONS π
-r,--recursiveβ dig through the source directory recursively, like you're deep-diving your ex's insta at 2am π-c,--config TEXTβ your project configuration π--cacheβ cache sources loading (save that work, queen, you're not doing it twice π )--debugβ show debug messages π--extensions TEXTβ a comma-separated list of extensions to filter π§-p,--package TEXTβ target package [default:generated] π-o,--output [dataclasses]β output format name [default:dataclasses] β--repr/--no-reprβ generate the__repr__method [default:True] π--eq/--no-eqβ generate the__eq__method [default:True] β¨--order/--no-orderβ generate__lt__,__le__,__gt__, and__ge__methods [default:False] π₯--unsafe-hash/--no-unsafe-hashβ generate the__hash__method [default:False] β οΈ (the name literally has unsafe in it bestie, soβ¦ proceed with intention)--frozen/--no-frozenβ enable read only properties [default:False] βοΈ--slots/--no-slotsβ enable__slots__[default:False] π³οΈ-ss,--structure-style [filenames|namespaces|clusters|single-package|namespace-clusters]β output structure style [default:filenames] πΈ-ds,--docstring-style [reStructuredText|NumPy|Google|Accessible|Blank]β docstring style [default:reStructuredText] π--relative-imports/--no-relative-importsβ use relative imports [default:False] π§--compound-fields/--no-compound-fieldsβ use compound fields for repeatable elements [default:False] π§©--wrapper-fields/--no-wrapper-fieldsβ generate wrapper fields [default:False] π-mll,--max-line-length INTEGERβ adjust the maximum line length [default:79] π--generic-collections/--no-generic-collectionsβ use generic collections (Iterable,Mapping) [default:False] ποΈ--unnest-classes/--no-unnest-classesβ move inner classes to the upper level [default:False] πͺΊ--ignore-patterns/--no-ignore-patternsβ ignore pattern restrictions [default:False] π«--include-header/--no-include-headerβ include a header with codegen information in the output [default:False] π·οΈ
quick reminder bestie: every single flag above is doing exactly what it says in the original, I did not invent, rename, or merge a single one of these. the defaults are the defaults. periodt π
and that's the whole page π¦
this cutie was brought to you by version 26.2, dated 2026-03-02 β go forth and generate, my love, you're gonna slay β¨ππ
π¦ where this page comes from
- ubuntu stonking: xsdata 26.2-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms