pyslk.tape_library_raw

pyslk.tape_library_raw#

pyslk.tape_library_raw(tape_id: int | str | None = None, tape_barcode: str | None = None, return_type: int = 0) str | int | CompletedProcess#

Return the name of the library in which the tape is stored

Parameters:
  • tape_id (int or str or None) – id of a tape in the tape library

  • tape_barcode (str or None) – barcode of a tape in the tape library

  • return_type (int) – select between 0 (== str output), 1 (== exit code), 2 (subprocess output)

Returns:

stdout of the slk_helpers call

Return type:

Union[str, int, subprocess.CompletedProcess]