data.data.json package

Submodules

data.data.json.data_v1 module

Defines the data needed for executing a recipe

class data.data.json.data_v1.DataV1(data=None)

Bases: object

Represents a v1 data JSON

get_dict()

Returns the internal dictionary that represents this recipe data

Returns:The internal dictionary
Return type:dict
data.data.json.data_v1.convert_data_to_v1_json(data, interface)

Returns the v1 data JSON for the given data

Parameters:
Returns:

The v1 data JSON

Return type:

data.data.json.data_v1.DataV1

data.data.json.data_v6 module

Manages the v6 data schema

class data.data.json.data_v6.DataV6(data=None, do_validate=False)

Bases: object

Represents a v6 data JSON

get_data()

Returns the data represented by this JSON

Returns:The data
Return type:data.data.data.Data:
get_dict()

Returns the internal dictionary

Returns:The internal dictionary
Return type:dict
data.data.json.data_v6.convert_data_to_v6_json(data)

Returns the v6 data JSON for the given data

Parameters:data (data.data.data.Data) – The data
Returns:The v6 data JSON
Return type:data.data.json.data_v6.DataV6

Module contents