Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 758 Bytes

File metadata and controls

37 lines (28 loc) · 758 Bytes

Home > LAB API


Lab API

Location Codes:

  • Alumni Hall: "ALUMNI"
  • Benedum Hall: "BENEDUM"
  • Cathedral G27: "CATH_G27"
  • Cathedral G62: "CATH_G62"
  • David Lawrence Hall: "LAWRENCE"
  • Hillman Library: "HILLMAN"
  • Sutherland Hall: "SUTH"

get_status(lab_name)

Parameters:

  • lab_name: Lab name (comes from LabAPI's LOCATIONS)

Returns:

Returns a dictionary with status and amount of OS machines.

Example:

Code:
get_status(lab_name='ALUMNI')
get_status(lab_name='CATH_G62')
Sample Output:
{'status': 'closed', 'windows': 0, 'mac': 0, 'linux': 0}
{'status': 'open', 'windows': 96, 'mac': 29, 'linux': 2}