xsdata.formats.dataclass.filters module¶
-
xsdata.formats.dataclass.filters.
class_name
(name)[source]¶ Apply python conventions for class names.
-
xsdata.formats.dataclass.filters.
attribute_name
(name)[source]¶ Apply python conventions for instance variable names.
-
xsdata.formats.dataclass.filters.
constant_name
(name)[source]¶ Apply python conventions for constant names.
-
xsdata.formats.dataclass.filters.
type_name
(attr_type)[source]¶ Return native python type name or apply class name conventions.
-
xsdata.formats.dataclass.filters.
attribute_metadata
(attr, parent_namespace)[source]¶ Return a metadata dictionary for the given attribute.
-
xsdata.formats.dataclass.filters.
format_arguments
(data)[source]¶ Format given dictionary as keyword arguments.
-
xsdata.formats.dataclass.filters.
class_docstring
(obj, enum=False)[source]¶ Generate docstring for the given class and the constructor arguments.
-
xsdata.formats.dataclass.filters.
default_imports
(output)[source]¶ Generate the default imports for the given package output.