pyslk.list_clone_search#
- pyslk.list_clone_search(search_id: str | int | list[int] | list[str] | set[int] | set[str], only_files: bool = False, only_namespaces: bool = False, start: int | None = None, count: int | None = None, column_names=['permissions', 'owner', 'group', 'filesize', 'timestamp_mtime', 'timestamp_created', 'timestamp_modified', 'timestamp_storage', 'tape_id', 'filename']) <Mock name='mock.DataFrame' id='139757892385232'> #
Return pandas.DataFrame containing results from search id
Calls
list_clone_search_raw()
and parses the return string into apandas.DataFrame()
. Assumes six output columns of ‘slk_helpers list_clone_search’ having the widths 12, 16, 999 (999 => as wide as necessary).- Parameters:
search_id (
str
,int
,list
,set
) – search id of search which results should be printedonly_files (
bool
) – print only files (like default for slk list)only_namespaces (
bool
) – print only namespacesstart (int) – collect search results starting with the result ‘start’; if set to 1 then collect from the beginning
count (int) – Collect as many search results as defined by this parameter. If set to 0 then collect until end.
column_names (
list
) – names of the columns in the pandas.DataFrame
- Returns:
output of ‘slk_helpers list_search’ parsed into a pandas.DataFrame with three columns (permissions, size, filename)
- Return type:
pandas.DataFrame