pyslk.set_tag

Contents

pyslk.set_tag#

pyslk.set_tag(path_or_id: str | int, metadata: dict, recursive: bool = False) dict | None#

Apply metadata to the namespace and child resources

Parameters:
  • path_or_id (str or int) – search id or gns path of resources to retrieve

  • metadata (dict) – dict that holds as keys “[metadata schema].[field]” and as values the metadata values

  • recursive (bool) – use the -R flag to tag recursively, Default: False

Returns:

new metadata of the target files

Return type:

dict or None