Provided by: xsdata_23.8-1.1_all
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
-r, --recursive Search files recursively in the source directory -c, --config TEXT Project configuration -pp, --print Print output --cache Cache sources loading --debug Show debug messages -p, --package TEXT Target package, default: generated -o, --output [dataclasses] Output format name, default: dataclasses --repr / --no-repr Generate __repr__ method, default: true --eq / --no-eq Generate __eq__ method, default: true --order / --no-order Generate __lt__, __le__, __gt__, and __ge__ methods, default: false --unsafe-hash / --no-unsafe-hash Generate __hash__ method if not frozen, default: false --frozen / --no-frozen Enable read only properties, default false --slots / --no-slots Enable __slots__, default: false, python>=3.10 Only --kw-only / --no-kw-only Enable keyword only arguments, default: false, python>=3.10 Only -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 -fs, --filter-strategy [all|allGlobals|referredGlobals] Class filter strategy, default: globals --relative-imports / --no-relative-imports Use relative imports, default: false --compound-fields / --no-compound-fields Use compound fields for repeatable elements, default: false -mll, --max-line-length INTEGER Adjust the maximum line length, default: 79 --subscriptable-types / --no-subscriptable-types Use PEP-585 generics for standard collections, default: false, python>=3.9 Only --union-type / --no-union-type Use PEP-604 union type, default: false, python>=3.10 Only --postponed-annotations / --no-postponed-annotations Enable postponed evaluation of annotations, default: false --unnest-classes / --no-unnest-classes Move inner classes to 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