Light Logo
Python SDK (v0.34.0)Reference

hardware

Hardware module.

hardware module

Hardware module.

class Hardware

Bases: TypedDict

Represents a hardware item.

name : str

The name of the hardware.

identifier : str

The identifier of the hardware.

gpus : int

Number of GPUs available on the hardware.

cpus : int

Number of CPUs available on the hardware.

vram_gb : int

Amount of VRAM (in GB) available on the hardware.

ram_gib : int

Total RAM (in GiB) available on the hardware.

created_at : str

Timestamp when the hardware was created.

description : str | None

Description of the hardware.

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 (PaginationOptions | None) – 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 (PaginationOptions | None) – Optional settings to control pagination behavior.
  • Returns: Paginated response containing hardware items and navigation metadata.
  • Return type: PaginatedResponse[Hardware]