sift_client.util.metadata
¶
| FUNCTION | DESCRIPTION |
|---|---|
metadata_dict_to_proto |
Converts metadata dictionary into a list of MetadataValue objects. |
metadata_proto_to_dict |
Converts a list of MetadataValue objects into a dictionary. |
metadata_dict_to_proto
¶
Converts metadata dictionary into a list of MetadataValue objects.
| PARAMETER | DESCRIPTION |
|---|---|
_metadata
|
Dictionary of metadata key-value pairs.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[MetadataValue]
|
List of MetadataValue objects. |
metadata_proto_to_dict
¶
Converts a list of MetadataValue objects into a dictionary.
| PARAMETER | DESCRIPTION |
|---|---|
metadata
|
List of MetadataValue objects.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dict[str, str | float | bool]
|
Dictionary of metadata key-value pairs. |