xsdata.codegen.writer module

class xsdata.codegen.writer.CodeWriter(generator)[source]

Bases: object

Proxy to format generators and files structure creation.

Parameters

generator (AbstractGenerator) –

generator: xsdata.formats.mixins.AbstractGenerator
write(classes)[source]

Iterate over the designated generator outputs and create the necessary directories and files.

Parameters

classes (List[Class]) –

print(classes)[source]

Iterate over the designated generator outputs and print them to the console.

Parameters

classes (List[Class]) –

classmethod from_config(config)[source]
Parameters

config (GeneratorConfig) –

Return type

CodeWriter