API reference#
This page provides an auto-generated summary of the pyslk API.
Wrapper Functions which return nice output#
Wrappers of slk
and slk_helpers
commands with improved output.
|
Get archive size from search id or GNS path by recursively listing all files of archive and adding file sizes |
|
Get a checksum of a resource |
|
Change the group of a resource or namespace |
|
Change the access mode of a resource or namespace |
|
Change the owner of a resource or namespace |
|
Return the version of slk and/or slk_helpers |
|
Construct destination paths for source resources when they were archived to given destination |
|
Count number of tapes onto which provided files are stored; distinguishes between multi-tape and single-tape files |
|
Soft delete a namespace (optionally all child objects of a non-empty |
Shows expiration date of your token |
|
|
Generates a search query that searches for the listed resources |
|
Generates a search query that searches for the listed resources |
|
Check the status of a job |
|
Get metadata |
|
returns resource_id to a resource path |
|
Get path for a resource id |
|
Get path for a resource id |
|
Returns file size in byte |
|
Get type of a resource |
|
Apply metadata to the namespace and child resources |
|
return tape barcode for provided tape id |
|
return tape id for provided tape barcode |
|
Group files by tape id. |
|
Check if whether file(s) is/are flagged as partial; return True/False |
|
Check if whether file(s) is/are flagged as partial; returns dict with keys 'flag_partial' and 'no_flag_partial' |
|
Shows current hostname you are connected to |
|
Extract metadata from HSM file(s) and return them in JSON structure |
|
Extract metadata from HSM file(s) and return them in JSON structure |
|
Extract metadata from HSM file(s) and return them in JSON structure |
|
Check if whether file(s) is/are in HSM cache or not; returns True/False |
|
Check if whether file(s) is/are in HSM cache or not; returns dict with keys 'cached' and 'not_cached' |
|
Returns True if resource is a file |
|
Check the status of a tape |
|
Check the status of a tape |
|
Check the status of a tape |
|
Check the status of a tape |
|
Returns True if resource is a namespace |
|
Check if whether file(s) is/are stored on tape; returns True/False |
|
Check if whether file(s) is/are stored on tape or not; returns dict with keys 'on_tape' and 'not_on_tape' |
|
Check if tape is available |
|
Check if job exists |
Prints status of the queue of tape read jobs |
|
|
Read metadata from JSON dictionary and write them to archived files into HSM. |
|
Read metadata from JSON file and write them to archived files into HSM. |
|
Read metadata from JSON file and write them to archived files into HSM. |
|
Read metadata from JSON file and write them to archived files into HSM. |
|
Return pandas.DataFrame containing results from search id or GNS path |
|
Create a directory like 'mkdir()' but create parent directories recursively, if they do not exist |
|
Create a directory |
|
Move namespaces/files from one parent folder to another; renaming is not possible |
|
Rename a folder or file; moving is not possible |
|
Check if resource exists and return True/False |
|
Performs a search based on a search_string can be provided. |
|
Get path for a resource id |
|
Shows expiration date of your token |
|
Apply metadata to the namespace and child resources |
|
Returns file size in byte |
|
Check if tape exists |
|
Check the status of a tape |
|
Print the total number of search results regardless of read permissions of the current user |
Returns whether session token is valid or not |
|
Returns whether session token is valid or not |
|
List the version of slk |
|
List the version of slk_helpers |
Config#
Adjust and query slk config.
|
Get global slk config. |
|
Set pyslk configuration to intract with the slk backend. |
Basic wrappers without proper parsing of the output#
Basic wrappers for slk
and slk_helpers
commands.
|
Upload files in a directory and optionally tag resources |
|
Get a checksum of a resource |
|
Change the access mode of a resource or namespace |
|
Soft delete a namespace (optionally all child objects of a non-empty |
|
Check if resource exists |
|
Generates a search query that searches for the listed resources |
|
Generates a search query that searches based on the conditions provided as key-values pairs |
|
groups a list of files based on which tape they are stored on |
|
Change the group of a resource or namespace |
|
Get info whether file is flagged as partial file |
|
Shows current hostname you are connected to |
|
Extract metadata from HSM file(s) and return them in JSON structure |
|
Get info whether file is in HSM cache or not |
|
Get info whether file is stored on a tape or not (independent on whether it is stored in the cache) |
|
Check the status of a tape read job with the given ID |
|
Check if tape read job exists |
|
Prints status of the queue of tape read jobs |
|
Read metadata from JSON file and write them to archived files into HSM. |
|
List results from search id or GNS path |
|
List results from search id |
|
Get metadata |
|
Create a directory |
|
Move namespaces/files from one parent folder to another; renaming is not possible |
|
Change the owner of a resource or namespace |
|
Recall files from tape to cache via search id or GNS path |
|
Rename a folder or file; moving is not possible |
|
Get path for a resource id |
|
Get permissions of a resource provided via resource id or a resource path |
|
Get type of resource provided via resource id or a resource path |
|
Get path for a resource id |
|
Retrieve files via search id or GNS path. |
|
Check if search id exists |
|
Performs a search based on a search_string can be provided. |
|
Creates search and returns search id |
|
Shows expiration date of your token |
|
Returns file size in byte |
|
Apply metadata to the namespace and child resources |
|
return tape barcode for provided tape id |
|
return tape id for provided tape barcode |
|
Check the status of a tape |
|
Check if tape exists |
|
Print the total number of search results regardless of read permissions of the current user |
|
List the version of slk |
|
List the version of slk_helpers |
Functions soon to be deprecated#
Please use the corresponding functions without the slk
prefix.
|
Check if resource exists and return True/False |
|
Return pandas.DataFrame containing results from search id |
|
Performs a search based on a search_string can be provided. |