pyslk.tape_status_raw

pyslk.tape_status_raw#

pyslk.tape_status_raw(tape_id: int | str | None = None, tape_barcode: str | None = None, details: bool = False, return_type: int = 0) str | int | CompletedProcess#

Check the status of a tape

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

  • details (bool) – print a more detailed description of the retrieval status

  • 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]