bapsf_motion.utils.toml

Module for TOML file functionality.

TOMl functionality exists in different 3rd party packages and builtin packages across Python versions. This module is intended to import the appropriate packages based on the Python environment version and name wrangle the functionality to provide a consistent interface for bapsf_motion.

Exceptions

TOMLDecodeError

An error raised if a document is not valid TOML.

Inheritance diagram of bapsf_motion.utils.toml.TOMLDecodeError

Functions

as_toml_string(config)

Iterate through a configuration dictionary and convert all keys to strings.

dump(obj, fp, /, *[, multiline_strings, indent])

dumps(obj, /, *[, multiline_strings, indent])

load(fp, /, *[, parse_float])

Parse TOML from a binary file object.

loads(s, /, *[, parse_float])

Parse TOML from a string.