Settings

Examples

Init dwh config

from forepaas.core.settings import init_dwh_config

init_dwh_config()

API Reference

forepaas.core.settings.datastore_get_metas(dwh_uri, datastore)

Retrieve dwh metas in Datastore

Parameters:
Returns:

metas

Return type:

dict

forepaas.core.settings.dwh_get_metas(dwh_uri)

Request metas from the DWH

Parameters:

dwh_uri (str) – DWH uri

Returns:

metas

Return type:

dict

forepaas.core.settings.init_dwh_config(dwh_uri=None, cache=True)

Call the dataplant dwh to initiate DWH_CONFIG and get the metas

Parameters:

dwh_uri (str, optional) – DWh uri to call, defaults to None

Returns:

Success in calling metas or not

Return type:

bool

forepaas.core.settings.init_dwh_metas(metas)

Parse the dataplant metas

Parameters:

metas (dict) – metas from dataplant dwh call

Returns:

Success in calling metas or not

Return type:

dict

forepaas.core.settings.init_ml_config(filter, params)