Toml edit
toml_edit
Shared tomlkit container helpers for metadata merging.
table_at(container, key)
Return the table at key, creating an empty one when absent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
container
|
TomlContainer
|
The document or table to read the branch from. |
required |
key
|
str
|
The key holding the nested table. |
required |
Returns:
| Type | Description |
|---|---|
Table
|
The existing table, or the freshly created and attached one. |
Raises:
| Type | Description |
|---|---|
ValueError
|
When key already holds a non-table value. |