Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"UI compliant" output? #11698

Open
vangelem opened this issue Feb 21, 2025 · 1 comment
Open

"UI compliant" output? #11698

vangelem opened this issue Feb 21, 2025 · 1 comment
Labels
question Asking for clarification or support

Comments

@vangelem
Copy link

Question

Hello astral team!
We're designing a UI that dynamically creates venvs, installs packages and runs subprocesses. For the venv creation and package installation bit, we're using uv (of course!) in the backgroud because of its speed.
Now even if uv is super fast, our users still have to wait for a few minutes sometimes and would like to get some information on the current venv creation / package installation status. Of course, we could simply redirect stdout to a console somewhere in the UI but I'd like to get something a little bit more UX friendly, like displaying a progress bar from our UI front end framework (PyQt to name it).
So, I don't know if it is/would be possible to have an option on the two commands we're using here (uv venv and uv pip install) to replace the standard output by something rather simple e.g. 0/10, 1/10, ... that we could easily send through a regex and integrate in the UI?
Cheers,
Matt

Platform

Windows

Version

0.5.30

@vangelem vangelem added the question Asking for clarification or support label Feb 21, 2025
@Gankra
Copy link
Contributor

Gankra commented Feb 21, 2025

It's an interesting idea... but I'm a bit inclined to have this kind negotiated with json(-lines) output, similar to how cargo/rustc does it. Potentially related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

2 participants