OutputFormat

class xsdata.models.config.OutputFormat(value='dataclasses', repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, slots=False, kw_only=False)[source]

Output format options.

Parameters
  • value (str) – Name of the format

  • repr (bool) – Generate repr methods

  • eq (bool) – Generate equal method

  • order (bool) – Generate rich comparison methods

  • unsafe_hash (bool) – Generate hash method when frozen is false

  • frozen (bool) – Enable read only properties with immutable containers

  • slots (bool) – Enable __slots__, python >= 3.10

  • kw_only (bool) – Enable keyword only constructor arguments, python >= 3.10