from_toml#

classmethod Config.from_toml(text, path=None, **kwargs)#

Parse a config object from a TOML string.

Parameters
  • text (str) – TOML data containing the config.

  • path (Optional[Path]) – The path to the config file, if known.

  • **kwargs – Overrides values in the resulting config object.

Returns

The config object.

Return type

Config