xsdata.formats.mixins module¶
-
class
xsdata.formats.mixins.GeneratorResult(path, title, source)[source]¶ Bases:
objectGenerator easy access output wrapper.
- Parameters
-
path: pathlib.Path¶
-
class
xsdata.formats.mixins.AbstractGenerator(tpl_dir)[source]¶ Bases:
objectAbstract code generator class.
- Parameters
tpl_dir (
str) – Templates directory
-
template(name)[source]¶ Return the named template from the initialized environment.
- Parameters
name (
str) –- Return type
Template
-
abstract
render(classes)[source]¶ Return a iterator of the generated results.
- Parameters
- Return type
-
classmethod
module_name(module)[source]¶ Convert the given module name to match the generator conventions.
-
classmethod
package_name(package)[source]¶ Convert the given module name to match the generator conventions.