← Về thư mục
openai4s/kernel/preinstall.py
- _importable · function · L115-L119 — def _importable(import_name: str) -> bool
- missing_core · function · L122-L124 — def missing_core() -> list[tuple[str, str]]
- _has_pip · function · L127-L137 — def _has_pip() -> bool
- _pip_install · function · L140-L178 — def _pip_install( pip_names: list[str], *, upgrade: bool = False, timeout: int = 1800 ) -> tuple[bool, str]
- install · function · L181-L196 — def install(pip_names: list[str], *, upgrade: bool = False) -> dict
- core_plan · function · L199-L231 — def core_plan() -> dict
- ensure_core · function · L234-L297 — def ensure_core(background: bool = True) -> dict
- _run · function · L256-L292 — def _run() -> dict
- installed_report · function · L300-L329 — def installed_report() -> list[dict]
- _version · function · L332-L350 — def _version(import_name: str) -> str | None
- full_freeze · function · L353-L390 — def full_freeze() -> list[dict]
- _interpreter_prefix · function · L393-L405 — def _interpreter_prefix(interpreter: str) -> str
- _is_this_interpreter · function · L408-L422 — def _is_this_interpreter(interpreter: str) -> bool
- _confined_probe · function · L425-L497 — def _confined_probe( base_argv: list[str], workspace: str ) -> tuple[list[str], dict[str, str], Any]
- ProbeStopped · class · L500-L501 — class ProbeStopped(RuntimeError)
- _descendant_pids · function · L512-L563 — def _descendant_pids(root: int) -> list[int]
- _signal_probe · function · L566-L577 — def _signal_probe(proc: subprocess.Popen, signum: int) -> None: # Skipped once the leader has been reaped: its pid may name another process.
- _kill_pids · function · L580-L585 — def _kill_pids(pids: list[int]) -> None
- _stop_probe_tree · function · L588-L606 — def _stop_probe_tree(proc: subprocess.Popen, *, graceful: bool) -> None
- _communicate · function · L609-L625 — def _communicate( proc: subprocess.Popen, timeout: float, stop: threading.Event | None ) -> tuple[bytes, bytes]
- run_confined_probe · function · L628-L700 — def run_confined_probe( base_argv: list[str], *, timeout: float, stop: threading.Event | None = None, ) -> "subprocess.CompletedProcess"
- freeze_for · function · L703-L763 — def freeze_for(interpreter: str | None, *, timeout: float = 20.0) -> list[dict] | None
- status · function · L766-L768 — def status() -> dict