### INI File Content Example Source: https://github.com/pytest-dev/iniconfig/blob/main/README.rst This is an example of an INI file structure that can be parsed by iniconfig. It includes sections, key-value pairs, comments, and multi-line values. ```ini # content of example.ini [section1] # comment name1=value1 # comment name1b=value1,value2 # comment [section2] name2= line1 line2 ``` -------------------------------- ### Basic iniconfig Usage Source: https://github.com/pytest-dev/iniconfig/blob/main/README.rst Demonstrates how to load an INI file and access its contents using the iniconfig module. Shows retrieving values, handling missing keys, and iterating through sections. ```python >>> import iniconfig >>> ini = iniconfig.IniConfig("example.ini") >>> ini['section1']['name1'] # raises KeyError if not exists 'value1' >>> ini.get('section1', 'name1b', [], lambda x: x.split(',')) ['value1', 'value2'] >>> ini.get('section1', 'notexist', [], lambda x: x.split(',')) [] >>> [x.name for x in list(ini)] ['section1', 'section2'] >>> list(list(ini)[0].items()) [('name1', 'value1'), ('name1b', 'value1,value2')] >>> 'section1' in ini True >>> 'inexistendsection' in ini False ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.