locan.data.metadata_utils.metadata_from_toml_string

locan.data.metadata_utils.metadata_from_toml_string(toml_string)[source]

Turn toml string into protobuf message instances.

Note

Parses Timestamp elements from string ‘2022-05-14T06:58:00Z’. Parses Duration elements from int in nanoseconds.

Parameters:

toml_string (str | None) – TOML string with metadata.

Returns:

Message instances with name as declared in toml file.

Return type:

dict[str, google.protobuf.message.Message] | None