dal.plugins.schema.version10 package

Submodules

dal.plugins.schema.version10.version10 module

Copyright (C) Mov.ai - All Rights Reserved Unauthorized copying of this file, via any medium is strictly prohibited Proprietary and confidential

Developers: - Alexandre Pires (alexandre.pires@mov.ai) - 2020

class dal.plugins.schema.version10.version10.SchemaAttributeDeserializer(schema: dict, relations: dict)

Bases: object

Deserializer through a dict and convert to a tree

deserialize(root: TreeNode, data: dict)

Abstract method to run the data deserializer

class dal.plugins.schema.version10.version10.SchemaV1Deserializer

Bases: ObjectDeserializer, Plugin

Deserializer through a dict and convert to a tree

SCHEMA_TYPE_MAPPING = {'any': <class 'object'>, 'bool': <class 'bool'>, 'float': <class 'float'>, 'hash': <class 'dict'>, 'str': <class 'str'>}
deserialize(root: TreeNode, data: dict)

Abstract method to run the data deserializer

static get_python_type(schema_type: str)

returns the related python type

property plugin_name

Get current plugin class

property plugin_version

Get current plugin class

Module contents

Copyright (C) Mov.ai - All Rights Reserved Unauthorized copying of this file, via any medium is strictly prohibited Proprietary and confidential

Developers: - Alexandre Pires (alexandre.pires@mov.ai) - 2020

class dal.plugins.schema.version10.SchemaV1Deserializer

Bases: ObjectDeserializer, Plugin

Deserializer through a dict and convert to a tree

SCHEMA_TYPE_MAPPING = {'any': <class 'object'>, 'bool': <class 'bool'>, 'float': <class 'float'>, 'hash': <class 'dict'>, 'str': <class 'str'>}
deserialize(root: TreeNode, data: dict)

Abstract method to run the data deserializer

static get_python_type(schema_type: str)

returns the related python type

property plugin_name

Get current plugin class

property plugin_version

Get current plugin class