calypso.utils.to_toml module
- calypso.utils.to_toml.dict_to_toml(data_dict, parent_key='')
Convert a Python dictionary to a TOML formatted string, skipping keys with None values.
- calypso.utils.to_toml.format_list(value_list)
Format a Python list into a TOML-compatible list string.
- calypso.utils.to_toml.format_value(value)
Format a Python value into a TOML-compatible string representation.
- Parameters:
value (any) – The value to format.
- Returns:
The TOML-formatted string representation of the value.
- Return type:
- calypso.utils.to_toml.write_toml(inputdat_dict, output_file)