pasteur.utils.parser

pasteur.utils.parser#

Description

Parsing related utility functions.

Functions

dict_to_flat_params(params)

eval_params(params[, locals])

flat_params_to_dict(params)

Converts a list of format {a.b.c: 5, c: b} to {a: {b: {c:5}}, c: 'b'}.

get_params_for_pipe(name, params)

Returns the parameters for the provided pipeline by merging the nodes default, <view> and the top level one in one dictionary.

merge_dicts(*ds)

merge_params(params)

merge_two_dicts(a, b)

Recursively merges dictionaries a, b by prioritizing b.

str_params_to_dict(params[, locals])

Converts a list of format ["a.b.c=5", "c=b"] to {a: {b: {c:5}}, c: 'b'}.