You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for Python version requests in uv python list (#12375)
Allows `uv python list <request>` to filter the installed list. I often
want this and it's not hard to add.
I tested the remote download filtering locally (#12381 is needed for
snapshot tests)
```
❯ cargo run -q -- python list --all-versions 3.13
cpython-3.13.2-macos-aarch64-none <download available>
cpython-3.13.1-macos-aarch64-none /opt/homebrew/opt/[email protected]/bin/python3.13 -> ../Frameworks/Python.framework/Versions/3.13/bin/python3.13
cpython-3.13.1-macos-aarch64-none <download available>
cpython-3.13.0-macos-aarch64-none /Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13
❯ cargo run -q -- python list --all-versions 3.13 --only-installed
cpython-3.13.1-macos-aarch64-none /opt/homebrew/opt/[email protected]/bin/python3.13 -> ../Frameworks/Python.framework/Versions/3.13/bin/python3.13
cpython-3.13.0-macos-aarch64-none /Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13
```
Copy file name to clipboardexpand all lines: docs/reference/cli.md
+9-1
Original file line number
Diff line number
Diff line change
@@ -4603,9 +4603,17 @@ Use `--only-installed` to omit available downloads.
4603
4603
<h3 class="cli-reference">Usage</h3>
4604
4604
4605
4605
```
4606
-
uv python list [OPTIONS]
4606
+
uv python list [OPTIONS] [REQUEST]
4607
4607
```
4608
4608
4609
+
<h3 class="cli-reference">Arguments</h3>
4610
+
4611
+
<dl class="cli-reference"><dt id="uv-python-list--request"><a href="#uv-python-list--request"<code>REQUEST</code></a></dt><dd><p>A Python request to filter by.</p>
4612
+
4613
+
<p>See <a href="#uv-python">uv python</a> to view supported request formats.</p>
4614
+
4615
+
</dd></dl>
4616
+
4609
4617
<h3 class="cli-reference">Options</h3>
4610
4618
4611
4619
<dl class="cli-reference"><dt id="uv-python-list--all-arches"><a href="#uv-python-list--all-arches"><code>--all-arches</code></a></dt><dd><p>List Python downloads for all architectures.</p>
0 commit comments