INI or INI like config files backend.
Changed in version 0.3: Introduce ‘ac_parse_value’ keyword option to switch behaviors, same as original configparser and rich backend parsing each parameter values.
Parser does nothing.
FIXME: May be too naive implementation.
Parameters: |
|
---|
>>> _parse(r'"foo string"')
'foo string'
>>> _parse("a, b, c")
['a', 'b', 'c']
>>> _parse("aaa")
'aaa'
Convert any to string.
Parameters: |
|
---|
>>> _to_s([1, 2, 3])
'1, 2, 3'
>>> _to_s("aaa")
'aaa'
Parameters: |
|
---|---|
Returns: | Dict or dict-like object represents config values |
Parameters: | cnf – Configuration data to dump :: self.container |
---|
Parameters: |
|
---|---|
Returns: | String representation of cnf object in INI format |
Bases: anyconfig.backend.base.FromStreamLoader, anyconfig.backend.base.ToStringDumper
Ini config files parser.
Parameters: |
|
---|---|
Returns: | Dict or dict-like object represents config values |
Parameters: |
|
---|---|
Returns: | String representation of cnf object in INI format |