KeywordSeparator
- class ase2sprkkr.common.grammar_types.basic.KeywordSeparator(keyword, **kwargs)[source]
Separator with an exact string
Class hierarchy

Constructor
- __init__(keyword, **kwargs)[source]
Create the object.
- Parameters:
prefix – The string, that will be printed before the value
postfix – The string, that will be printed after the value
format – The (python) format string, that will be used for outputing the value. The format is passed as format argument to
str.formatroutine.after_format – In some cases, the additional formating is required after converting to the string and adding postfix/prefix.
default_value – The default value of the options of this type.
Nonemeans no default value.condition – Function, that check the validity of the value. It should return
Truefor a valid value, andFalseor string for invalid. The string is interpreted as an error message that explains the invalidity of the value.after_convert – Function, that - if it is given - is applied to the (entered or parsed) value. The function is applied on the result of the
convertmethod
- property _grammar