← Về thư mục
openai4s/kernel/environments.py
- Environment · class · L85-L202 — class Environment
- interpreter · method · L104-L107 — def interpreter(self) -> str | None
- bin_dir · method · L110-L116 — def bin_dir(self) -> str | None
- package_set · method · L119-L129 — def package_set(self) -> set[str]
- has_package · method · L131-L132 — def has_package(self, name: str) -> bool
- notable · method · L134-L136 — def notable(self, limit: int = 12) -> list[str]
- description · method · L138-L144 — def description(self) -> str
- python_version · method · L146-L167 — def python_version(self) -> str | None
- _probe_python_version_confined · method · L169-L186 — def _probe_python_version_confined(self) -> str
- to_dict · method · L188-L202 — def to_dict(self, with_packages: bool = False) -> dict
- _hidden_names · function · L216-L218 — def _hidden_names() -> set[str]
- _envs_roots_from_prefix · function · L221-L250 — def _envs_roots_from_prefix(prefix: str | os.PathLike[str]) -> list[Path]
- _env_roots · function · L253-L304 — def _env_roots() -> list[Path]
- add · function · L258-L266 — def add(p: Path) -> None
- _detect_env · function · L307-L328 — def _detect_env(env_dir: Path) -> Environment | None
- _generation_root · function · L331-L349 — def _generation_root() -> Path | None
- _generation_environments · function · L352-L403 — def _generation_environments() -> list[Environment]
- standard_generation_layout_is_safe · function · L406-L417 — def standard_generation_layout_is_safe() -> bool
- _pointer_fingerprint · function · L420-L449 — def _pointer_fingerprint() -> tuple
- _base_environment · function · L452-L463 — def _base_environment() -> Environment
- discover_environments · function · L466-L505 — def discover_environments(force: bool = False) -> list[Environment]
- invalidate_cache · function · L508-L518 — def invalidate_cache() -> None
- get_environment · function · L521-L534 — def get_environment(name: str | None) -> Environment | None
- default_env_name · function · L537-L550 — def default_env_name() -> str
- list_environments · function · L553-L554 — def list_environments(with_packages: bool = True) -> list[dict]