darf.src.io.command_interpolation module
Commands Interpolation Module
This module contains the command interpolation methods that should been called when a command is required inside an interpolation
- darf.src.io.command_interpolation.fn(function, *args, **kwargs)
fn. Identifies the requested interpolation function ans substitutes with the value returned by the function
- Parameters:
function – function
args – args
kwargs – kwargs
- darf.src.io.command_interpolation.str_interpolate(s: str, pattern: str = '\\{[^\\}]*\\}') str
str_interpolate. Interpolate a string with the given pattern using regex.sub
- Parameters:
s (str) – s
pattern (str) – pattern
- Return type:
str