maci.tomldump
dumps data to a file as toml
Last updated
dumps data to a file as toml
Last updated
Dumps a dictionary to a file formatted as TOML. Nothing is returned. Creates a new or overwrites an existing file by default (See to change mode).
Basic Example of dumping data to a file using default positional parameters
In this example, we simply dump data to a file using the tomldump function and pass a string of the filepath to the file as the first argument to the function, then pass the dictionary data as the second argument to the function.
Describes all parameter functionality and accepted data types
This function uses the tomli-w library installed as a dependency from pypi as its underlying functionality. For more information on tomli-w, visit: