fontlab_instamix.uv
uv
Find, download and run uv as its own binary.
Never runs sys.executable: inside FontLab that is FontLab itself.
uv is downloaded from GitHub releases into <data>/python/uv/ and its
SHA-256 is checked against the .sha256 file published with the release.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
CANDIDATES |
attribute | ||
RELEASES |
attribute | ||
asset_name |
function | (plat: str=sys.platform) -> str |
|
asset_url |
function | (version: str | None=None, plat: str=sys.platform) -> str |
|
download |
function | (data: Path, version: str | None=None, fetch=fetch_bytes) -> Path |
Download uv into <code><data>/python/uv/</code> and return its path. |
ensure |
function | (data: Path, *, allow_download: bool=True) -> Path |
Return uv, downloading it if needed and allowed. |
exe_name |
function | () -> str |
|
extract_binary |
function | (archive: bytes, name: str, plat: str=sys.platform) -> bytes |
Return the bytes of the uv binary inside a release archive. |
fetch_bytes |
function | (url: str) -> bytes |
Download <code>url</code> (kept small so tests can replace it). |
find |
function | (data: Path | None=None) -> Path | None |
Return a usable uv binary or <code>None</code>. |
local_uv |
function | (data: Path) -> Path |
Where instamix keeps its own uv: <code><data>/python/uv/uv</code>. |
run |
function | (uv: Path, args: list[str], runner=subprocess.run) -> subprocess.CompletedProcess |
Run <code>uv <args></code><code>; raise :class:</code>UvError on failure. |