gws.lib.inifile
¶
Tools to deal with ini config files.
Source code: gws.lib.inifile
Package Contents¶
- gws.lib.inifile.from_paths(*paths: str) dict ¶
Merges the key-value pairs of .ini files into a dictionary.
- Parameters:
paths – Paths to .ini files.
- Returns:
Dictionary containing all the key-value pairs with the sections as prefixes.
- gws.lib.inifile.to_string(d: dict) str ¶
Converts key-value pairs in a dictionary to a string grouped in sections.
- Parameters:
d – Key-value pairs.
- Returns:
String formatted like .ini files.