Scroll to navigation

XSDATA GENERATE(1) xsdata generate Manual XSDATA GENERATE(1)

NAME

xsdata-generate - Generate code from xml schemas, webservice...

SYNOPSIS

xsdata generate [OPTIONS] SOURCE

DESCRIPTION


Generate code from xml schemas, webservice definitions and any xml or json
document.


The input source can be either a filepath, uri or a directory
containing xml, json, xsd and wsdl files.

OPTIONS

Search files recursively in the source directory
Project configuration
Print output
Cache sources loading
Show debug messages
Target package [default: generated]
Output format name [default: dataclasses]
Generate __repr__ method [default: True]
Generate __eq__ method [default: True]
Generate __lt__, __le__, __gt__, and __ge__ methods [default: False]
Generate __hash__ method if not frozen [default: False]
Enable read only properties [default: False]
Enable __slots__, python>=3.10 Only [default: False]
Enable keyword only arguments, python>=3.10 Only [default: False]
Output structure style [default: filenames]
Docstring style [default: reStructuredText]
Class filter strategy [default: allGlobals]
Use relative imports [default: False]
Use compound fields for repeatable elements [default: False]
Adjust the maximum line length [default: 79]
Use PEP-585 generics for standard collections, python>=3.9 Only [default: False]
Use PEP-604 union type, python>=3.10 Only [default: False]
Enable postponed evaluation of annotations [default: False]
Move inner classes to upper level [default: False]
Ignore pattern restrictions [default: False]
Include a header with codegen information in the output [default: False]
2024-04-02 24.1