Using Python and its configparser module I want to have an .ini file that results in a user-space function call. It doesn't matter when the function is called, upon file read or parameter evaluation.
Example configuration file.
[section]
param = @to_upper_case( a_lower_case_string )
In my example I'd like the configuration file reader object to call the user defined function to_upper_case passing it the value a_lower_case_string. Of course to_upper_case would have to be known to the configparser before hand, and it would be defined in the user's Python code. I arbitrarily chose the @ symbol to indicate a function, for this example.
I am already aware of the ${...} parameter reference feature available through the ExtendedInterpolation() object, but it does not seem to offer function callbacks.