module documentation

Support for TOML.

Class NestedTextToTOML Undocumented
Class TOMLToNestedText Undocumented
Function NTTError_from_TOMLDecodeError Undocumented
Constant EXTENSIONS Undocumented
Constant SUBCOMMANDS Undocumented
Variable require_support Undocumented
Variable TOML_SUPPORT Undocumented
Function _fix_data Force the data to be a top-level hash table.
Function _load_file Read TOML from input_file and return typed data.
@NTTError_from.register
@docstring_for_NTTError_from
def NTTError_from_TOMLDecodeError(exc: TOMLDecodeError) -> NTTError: (source)

Undocumented

EXTENSIONS: tuple[str, ...] = (source)

Undocumented

Value
('toml')
SUBCOMMANDS = (source)

Undocumented

Value
{'nt2': {'names': ('toml'), 'app': NestedTextToTOML},
 '2nt': {'names': ('toml'), 'app': TOMLToNestedText}}
require_support = (source)

Undocumented

TOML_SUPPORT: bool = (source)

Undocumented

def _fix_data(data: TOMLData) -> TOMLHashData: (source)

Force the data to be a top-level hash table.

Parameters
data:TOMLDataTOML data.
Returns
TOMLHashDataThe data as a top-level hash table.
def _load_file(input_file: LocalPath) -> TOMLData: (source)

Read TOML from input_file and return typed data.

Parameters
input_file:LocalPathLocalPath with TOML content.
Returns
TOMLDataThe TOML data.