anyconfig.backend.toml

TOML backend.

New in version 0.1.0.

class anyconfig.backend.toml.Parser

Bases: anyconfig.backend.base.FromStreamLoader, anyconfig.backend.base.ToStreamDumper

TOML parser.

_type = 'toml'
_extensions = ['toml']
load_from_string(*args, **kwargs)

Returns a dictionary containing s, a string, parsed as toml.

load_from_stream(*args, **kwargs)

Returns a dictionary containing the named file parsed as toml.

dump_to_string(*args, **kwargs)

Returns a string containing the toml corresponding to o, a dictionary

dump_to_stream(*args, **kwargs)

Writes out to f the toml corresponding to o. Returns said toml.

__module__ = 'anyconfig.backend.toml'

Previous topic

anyconfig.backend.properties

Next topic

anyconfig.backend.yaml

This Page