mlnext.io.load#

mlnext.io.load(path: str) Dict[str, Any][source]#

Loads a file from path with the supported python parser.

Parameters:

path (str) – Path to file.

Raises:

ValueError – Raised if

Returns:

Returns the content.

Return type:

T.Dict[str, T.Any]

Example

>>> # Loads file from path
>>> load('./resources/task.json')
{
    "name": "task",
    ...
}