GeneratorOutput#

class xsdata.models.config.GeneratorOutput(package='generated', format=<factory>, structure_style=StructureStyle.FILENAMES, docstring_style=DocstringStyle.RST, filter_strategy=ClassFilterStrategy.ALL_GLOBALS, relative_imports=False, compound_fields=<factory>, max_line_length=79, subscriptable_types=False, union_type=False, postponed_annotations=False, unnest_classes=False, ignore_patterns=False, include_header=False)[source]#

Generator output model representation.

Parameters:
  • package (str) – Target package

  • format (OutputFormat) – Output format

  • structure_style (StructureStyle) – Output structure style

  • docstring_style (DocstringStyle) – Docstring style

  • filter_strategy (ClassFilterStrategy) – Class filter strategy

  • relative_imports (bool) – Use relative imports

  • compound_fields (CompoundFields) – Use compound fields for repeatable elements

  • max_line_length (int) – Adjust the maximum line length

  • subscriptable_types (bool) – Use PEP-585 generics for standard collections, python>=3.9 Only

  • union_type (bool) – Use PEP-604 union type, python>=3.10 Only

  • postponed_annotations (bool) – Enable postponed evaluation of annotations

  • unnest_classes (bool) – Move inner classes to upper level

  • ignore_patterns (bool) – Ignore pattern restrictions

  • include_header (bool) – Include a header with codegen information in the output

__post_init__()[source]#

Post initialization method.

validate()[source]#

Reset configuration conflicts.

update(**kwargs)[source]#

Update instance attributes recursively.

__eq__(other)#

Return self==value.

__hash__ = None#