xsdata.formats.dataclass.generator module¶
-
class
xsdata.formats.dataclass.generator.
DataclassGenerator
[source]¶ Bases:
xsdata.formats.mixins.AbstractGenerator
-
templates_dir
: Optional[pathlib.Path] = PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/xsdata/envs/v20.5.1/lib/python3.7/site-packages/xsdata/formats/dataclass/templates')¶
-
render
(classes)[source]¶ Given a list of classes return to the writer factory the target file path full module path and the rendered code.
-
render_module
(resolver, classes)[source]¶ - Parameters
resolver (
DependenciesResolver
) –
- Return type
-
render_classes
(classes)[source]¶ Get a list of sorted classes from the imports resolver, apply the python code conventions and return the rendered output.
-