module documentation

Undocumented

Class CommentValue Undocumented
Class InlineTableDict Sentinel subclass of dict for inline tables.
Class TomlDecodeError Base toml Exception / Error.
Class TomlDecoder Undocumented
Class TomlPreserveCommentDecoder Undocumented
Function load Parses named file or files as toml and returns a dictionary
Function loads Parses string as toml
Constant TIME_RE Undocumented
Function _detect_pathlib_path Undocumented
Function _getpath Undocumented
Function _ispath Undocumented
Function _load_date Undocumented
Function _load_unicode_escapes Undocumented
Function _strictly_valid_num Undocumented
Function _unescape Unescape characters in a TOML string.
Variable _escape_to_escapedchars Undocumented
Variable _escapedchars Undocumented
Variable _escapes Undocumented
Variable _groupname_re Undocumented
Variable _number_with_underscores Undocumented
def load(f, _dict=dict, decoder=None): (source)

Parses named file or files as toml and returns a dictionary Args: f: Path to the file to open, array of files to read into single dict or a file descriptor _dict: (optional) Specifies the class of the returned toml dictionary decoder: The decoder to use Returns: Parsed toml file represented as a dictionary Raises: TypeError -- When f is invalid type TomlDecodeError: Error while decoding toml IOError / FileNotFoundError -- When an array with no valid (existing) (Python 2 / Python 3) file paths is passed

def loads(s, _dict=dict, decoder=None): (source)

Parses string as toml Args: s: String to be parsed _dict: (optional) Specifies the class of the returned toml dictionary Returns: Parsed toml file represented as a dictionary Raises: TypeError: When a non-string is passed TomlDecodeError: Error while decoding toml

TIME_RE = (source)

Undocumented

Value
re.compile(r'([0-9]{2}):([0-9]{2}):([0-9]{2})(\.([0-9]{3,6}))?')
def _detect_pathlib_path(p): (source)

Undocumented

def _getpath(p): (source)

Undocumented

def _ispath(p): (source)

Undocumented

def _load_date(val): (source)

Undocumented

def _load_unicode_escapes(v, hexbytes, prefix): (source)

Undocumented

def _strictly_valid_num(n): (source)

Undocumented

def _unescape(v): (source)

Unescape characters in a TOML string.

_escape_to_escapedchars = (source)

Undocumented

_escapedchars: list[str] = (source)

Undocumented

_escapes: list[str] = (source)

Undocumented

_groupname_re = (source)

Undocumented

_number_with_underscores = (source)

Undocumented