Skip to content

toml

Source

Hook for reading TOML. Wraps python's native toml library which does not support writing toml, only reading.

Inputs

Name Type Default Required Description
path str True The file path to read or write to.

Arguments

Position Argument Type
1 path str

Returns

Union[dict, str]

Examples

Read toml

Read a toml file into a key

expanded:
  ->: toml
  path: path/to/toml/file.toml
compact->: toml path/to/toml/file.toml