PycodeSerializer#
- class xsdata.formats.dataclass.serializers.PycodeSerializer(config=<factory>, context=<factory>)[source]#
Pycode serializer for dataclasses.
Return a python representation code of a model instance.
- Parameters:
config (
SerializerConfig
) – Serializer configurationcontext (
XmlContext
) – Model context provider
- render(obj, var_name='obj')[source]#
Convert and return the given object tree as python representation code.
- __eq__(other)#
Return self==value.
- __hash__ = None#