#NEWLINE# @ classmethod #NEWLINE# def from_str_params( cls , params_str ) : #NEWLINE# #INDENT# '\n        Creates an instance from a str->str hash.\n\n        :param params_str: dict of param name -> value as string.\n        ' #NEWLINE# kwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( param_name , param ) in cls . get_params ( ) : #NEWLINE# #INDENT# if ( param_name in params_str ) : #NEWLINE# #INDENT# kwargs [ cls ] = param . parse ( params_str [ param_name ] ) #NEWLINE# #UNINDENT# #UNINDENT# return cls ( ** kwargs )