xsdata.formats.dataclass.generator module¶
-
class
xsdata.formats.dataclass.generator.
DataclassGenerator
[source]¶ Bases:
xsdata.generators.PythonAbstractGenerator
-
templates_dir
: Optional[pathlib.Path] = PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/xsdata/envs/v20.3/lib/python3.7/site-packages/xsdata/formats/dataclass/templates')¶
-
render
(schema, classes, package)[source]¶ Given a schema, a list of classes and a target package return to the writer factory the target file path and the rendered code.
-
module_name
(module)[source]¶ Return a unique and safe module name.
In case of module name collisions append the module name index.
- Return type
-