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
Since pixi uses the UV resolver for pypi packages and (probably uses uv to install them as well?), if it's not difficult, it'd be great to expose an interface to: uv run my_script.py.
One benefit of doing this over defining tasks, is that your scripts can have their own dependencies defined in-line, without having to create a new dependency group & task for each one-off script:
# /// script
# dependencies = [
# "requests<3",
# "rich",
# ]
# ///
import requests
from rich.pretty import pprint
resp = requests.get("https://peps.python.org/api/peps.json")
data = resp.json()
pprint([(k, v["title"]) for k, v in data.items()][:10])
The text was updated successfully, but these errors were encountered:
Problem description
Since pixi uses the UV resolver for pypi packages and (probably uses uv to install them as well?), if it's not difficult, it'd be great to expose an interface to:
uv run my_script.py
.One benefit of doing this over defining tasks, is that your scripts can have their own dependencies defined in-line, without having to create a new dependency group & task for each one-off script:
The text was updated successfully, but these errors were encountered: