Light Logo
Python SDK (v0.16.0)Reference

hardware

Hardware module.

hardware module

Hardware module.

class HardwareWithDetails

Bases: Hardware

Represents a hardware item with more details.

gpus : int

Number of GPUs available on the hardware.

cpus : int

Number of CPUs available on the hardware.

ram_per_gpu_gb : int

Amount of Ram (in GB) allocated per GPU.

ram_gb : int

Total RAM (in GB) available on the hardware.

name : str

identifier : str

created_at : str

Timestamp when the hardware was created.

class HardwareResource(api)

Bases: Resource

Initializes the Resource with an API instance.

  • Parameters: api (API) – An instance of the API class.

list(pagination_options=None)

List hardware.

  • Parameters: pagination_options (Optional [PaginationOptions ]) – Optional settings to control pagination behavior.
  • Returns: Paginated response containing : hardware items and navigation metadata.
  • Return type: PaginatedResponse[Hardware]

async async_list(pagination_options=None)

List hardware.

  • Parameters: pagination_options (Optional [PaginationOptions ]) – Optional settings to control pagination behavior.
  • Returns: Paginated response containing : hardware items and navigation metadata.
  • Return type: PaginatedResponse[Hardware]