Skip to content

API Reference parrot.self_.uv

github-actions[bot] edited this page Dec 2, 2026 · 2 revisions

parrot.self_.uv

View source

Bounded uv resolution for the managed runtime (brief installer-uv-shadowing).

Attribute LIBEXEC_DIR

Type: str

Attribute PINNED_UV_VERSION

Type: str

Attribute UV_MAX_VERSION

Type: str

Attribute UV_MIN_VERSION

Type: str

Attribute UV_PATH_FILE

Type: str

Class UvResolution

The uv the runtime runs, its version, and where it was found.

Fields:

Field Type Default Description
path Path
version str
source UvSource

Attribute UvSource

Function find_path_uv

Return the first PATH uv outside the Parrot bin and libexec directories.

find_path_uv() -> Path | None

Returns: Path | None

Function in_range

Return whether version is within the supported uv range.

in_range(version: str | None) -> bool

Parameter Type Default Description
version str | None

Returns: bool

Function legacy_uv_files

Return legacy uv and uvx files or symlinks under parrot_home()/bin.

legacy_uv_files() -> list[Path]

Returns: list[Path]

Function libexec_dir

Return the private parrot_home()/libexec directory.

libexec_dir() -> Path

Returns: Path

Attribute logger

Function managed_uv

Return the pinned uv installed in libexec.

managed_uv() -> Path

Returns: Path

Function migrate_legacy_uv

Move a legacy bin uv layout into libexec or record a compatible system uv.

migrate_legacy_uv() -> list[str]

Returns: list[str]

Alias parrot_home

Re-exported from parrot.launcher.parrot_home.

Function parse_version

Return numeric parts of the first version-like token in text.

parse_version(text: str) -> tuple[int, ...] | None

Parameter Type Default Description
text str

Returns: tuple[int, ...] | None

Function probe_version

Run <path> --version and return a parsed version, if available.

probe_version(path: Path) -> str | None

Parameter Type Default Description
path Path

Returns: str | None

Function read_recorded_uv

Return the first non-empty recorded uv path, if present.

read_recorded_uv() -> Path | None

Returns: Path | None

Function record_system_uv

Atomically record an absolute system-uv path without resolving symlinks.

record_system_uv(path: Path) -> Path

Parameter Type Default Description
path Path

Returns: Path

Function resolve_uv

Resolve a compatible uv from managed, recorded, PATH, then legacy locations.

resolve_uv() -> UvResolution

Returns: UvResolution

Raises:

  • FileNotFoundError — No compatible uv is available.

Function uv_path_file

Return the recorded compatible system-uv path file.

uv_path_file() -> Path

Returns: Path

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally