in2lambda.defaults.override¶

in2lambda.defaults.override(path: str) → None[source]¶

Replaces in2lambda’s defaults with those set in a TOML file.

The file is laid out as in2lambda’s own defaults.toml and need hold only the values to change. Objects created afterwards take the new defaults.

Parameters:

path – The TOML file.

Raises:

ValueError – The file is not valid TOML, or sets something in2lambda has no default for, or a value of the wrong type. The defaults are then left as they were.