get_ini.get_ini

get_ini.get_ini(filename)[source]

Read and parse an INI file with automatic type conversion.

This function reads an INI configuration file and returns a parser that automatically converts values to appropriate Python types. It uses MyConfigParser to handle type inference, making it ideal for scientific applications with complex configuration needs.

Parameters:

filename (str) – Path to the INI configuration file

Returns:

Configured parser instance with loaded and type-converted values

Return type:

MyConfigParser

Notes

The function supports all standard INI file features plus: - Section-based organization - Key-value pairs with automatic type conversion - Complex data structures (lists, dicts, etc.) - Fallback to string values when conversion fails