ini¶
Hook for reading and writing ini files. Hook reads from path
if no data
field is provided, otherwise it writes the data
to path
.
Inputs¶
Name | Type | Default | Required | Description |
---|---|---|---|---|
path | str | True | The file path to put read or write to. | |
data | Union[dict, list, str] | None | False | Map or renderable string to a map key to write. Must have three levels for the section, key, and value - ie {section:{key1:value1, key2:value2}}. |
allow_no_value | bool | True | True | Whether to allow a no values. |
Arguments¶
Position | Argument | Type |
---|---|---|
1 | path | str |
2 | data | Union[dict, list, str] |
Returns¶
Union[dict, str, list]