ini2toml.drivers package#

Submodules#

ini2toml.drivers.configparser module#

ini2toml.drivers.configparser.parse(text: str, opts: Mapping = mappingproxy({})) ini2toml.intermediate_repr.IntermediateRepr[source]#
ini2toml.drivers.configparser.translate_section(section: Mapping)[source]#

ini2toml.drivers.configupdater module#

ini2toml.drivers.full_toml module#

ini2toml.drivers.lite_toml module#

ini2toml.drivers.plain_builtins module#

The purpose of this module is to “collapse” the intermediate representation of a TOML document into Python buitin data types (mainly a composition of dict, list, int, float, bool, str).

This is not a loss-less process, since comments are not preserved.

ini2toml.drivers.plain_builtins.collapse(obj)[source]#
ini2toml.drivers.plain_builtins.convert(irepr: ini2toml.intermediate_repr.IntermediateRepr) dict[source]#

Module contents#