← Về thư mục
openai4s/compute/registry.py
- _now_ms · function · L41-L42 — def _now_ms() -> int
- _data_dir · function · L45-L48 — def _data_dir() -> Path
- _path · function · L51-L52 — def _path(data_dir: Path | None = None) -> Path
- _empty · function · L55-L56 — def _empty() -> dict
- _seed_from_env · function · L59-L92 — def _seed_from_env(data: dict) -> bool
- load · function · L95-L109 — def load(data_dir: Path | None = None) -> dict
- _write · function · L112-L117 — def _write(data: dict, data_dir: Path | None = None) -> None
- save · function · L120-L122 — def save(data: dict, data_dir: Path | None = None) -> None
- list_hosts · function · L126-L127 — def list_hosts(data_dir: Path | None = None) -> dict
- ssh_config_aliases · function · L130-L152 — def ssh_config_aliases() -> list[str]
- is_known_alias · function · L155-L178 — def is_known_alias(alias: str, data_dir: Path | None = None) -> bool
- get_host · function · L181-L182 — def get_host(alias: str, data_dir: Path | None = None) -> dict | None
- add_host · function · L185-L212 — def add_host( alias: str, *, label: str | None = None, gpus: str | None = None, gpu_count: int = 0, data_dir: Path | None = None, ) -> dict
- remove_host · function · L215-L224 — def remove_host(alias: str, data_dir: Path | None = None) -> bool
- set_default · function · L227-L234 — def set_default(alias: str, data_dir: Path | None = None) -> bool
- default_host · function · L237-L238 — def default_host(data_dir: Path | None = None) -> str | None
- set_capability · function · L242-L264 — def set_capability( alias: str, cap: str, meta: dict, data_dir: Path | None = None ) -> dict
- capability_host · function · L267-L282 — def capability_host( cap: str, data_dir: Path | None = None ) -> tuple[str | None, dict | None]