Documentation Index
Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
Use this file to discover all available pages before exploring further.
list_runners
Source: src/cwsandbox/_discovery.py:443next_page_token.
Parameters
runner_group_id(str | None): Restrict results to this runner group.profile_name(str | None): Only return runners that have this profile.gpu_type(str | None): Only return runners that support this GPU type.architecture(str | None): Only return runners that support this CPU architecture.include_resources(bool): IfTrue, include live resource availability on each runner. Defaults toFalse(basic view).min_available_cpu_millicores(int | None): Only return runners with at least this many unreserved CPU millicores. Automatically enablesinclude_resources. Filtered client-side.min_available_memory_bytes(int | None): Only return runners with at least this many unreserved memory bytes. Automatically enablesinclude_resources. Filtered client-side.min_available_gpu_count(int | None): Only return runners with at least this many unreserved GPUs. Automatically enablesinclude_resources. Filtered client-side.ingress_mode(str | None): Only return runners whose profiles support this ingress mode. Requires an additional profile fetch. Filtered client-side.egress_mode(str | None): Only return runners whose profiles support this egress mode. Requires an additional profile fetch. Filtered client-side.
ingress_mode and egress_mode filters check across all profiles on each runner, not only the profile specified by profile_name. A runner will match if any of its profiles provides the requested mode, even if the profile selected by profile_name does not.
Returns
list[Runner]: List ofRunnerobjects matching the filters.
CWSandboxAuthenticationError: If credentials are invalid.CWSandboxError: On network or service errors.
get_runner
Source: src/cwsandbox/_discovery.py:562runner_id(str): Unique identifier of the runner.
Runner:Runnerwith full details.
ValueError: If runner_id is empty.RunnerNotFoundError: If no runner exists with the given ID.CWSandboxAuthenticationError: If credentials are invalid.CWSandboxError: On network or service errors.
list_profiles
Source: src/cwsandbox/_discovery.py:636next_page_token.
Parameters
gpu_type(str | None): Only return profiles that support this GPU type.architecture(str | None): Only return profiles that support this CPU architecture.runner_id(str | None): Only return profiles belonging to this runner.ingress_mode(str | None): Only return profiles that support this ingress mode. Filtered client-side after fetching results from the backend.egress_mode(str | None): Only return profiles that support this egress mode. Filtered client-side after fetching results from the backend.
list[Profile]: List ofProfileobjects matching the filters.
CWSandboxAuthenticationError: If credentials are invalid.CWSandboxError: On network or service errors.
get_profile
Source: src/cwsandbox/_discovery.py:718profile_name(str): Name of the profile to retrieve.runner_id(str | None): Optionally scope the lookup to a specific runner.
Profile:Profilematching the given name.
ValueError: If profile_name is empty.ProfileNotFoundError: If no matching profile is found.CWSandboxAuthenticationError: If credentials are invalid.CWSandboxError: On network or service errors.
format_bytes
Source: src/cwsandbox/_discovery.py:34value(int): Number of bytes.
str: Human-readable string with appropriate unit.
format_cpu
Source: src/cwsandbox/_discovery.py:62millicores(int): CPU capacity in millicores.
str: Human-readable string in cores.