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

Add progress bar #77

Open
baterflyrity opened this issue Apr 4, 2020 · 15 comments
Open

Add progress bar #77

baterflyrity opened this issue Apr 4, 2020 · 15 comments

Comments

@baterflyrity
Copy link

Hi.
When searching and updating a lot of packages there is no progress indicator and (or) remaining time.
Can someone add this feature? For example, simple implementation of progress indicators can be found here.

@Pradhvan
Copy link

This looks intresting, I can take a look into this and create a PR for it. 😄

@Pradhvan
Copy link

@baterflyrity hey! can you share the packages that don't have a progress indicator? I tried pip-review with some packages that I have both have some kind of progress indicator.

@baterflyrity
Copy link
Author

baterflyrity commented Jan 28, 2021

@Pradhvan hi! Thanks for a try. I dont have any progress indicator for any package. You can test this code:

sudo python3 -m pip install --upgrade pip numpy

Collecting pip
Using cached pip-21.0-py3-none-any.whl (1.5 MB)
Requirement already up-to-date: numpy in c:\python39\lib\site-packages (1.19.5)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
Successfully uninstalled pip-20.2.3
Successfully installed pip-21.0

@jgonggrijp
Copy link
Owner

@Pradhvan @baterflyrity Could the differences between your observations be due to different versions of pip?

@baterflyrity
Copy link
Author

I am using the latest one btw.

@Pradhvan
Copy link

It's showing a progress bar in my install, pasted the terminal output below @baterflyrity @jgonggrijp

> pip-review --interactive
idna==3.1 is available (you have 2.10)
Upgrade now? [Y]es, [N]o, [A]ll, [Q]uit y
pip==21.0 is available (you have 20.2.1)
Upgrade now? [Y]es, [N]o, [A]ll, [Q]uit (y) y
setuptools==52.0.0 is available (you have 49.2.1)
Upgrade now? [Y]es, [N]o, [A]ll, [Q]uit (y) y
Collecting idna==3.1
  Using cached idna-3.1-py3-none-any.whl (58 kB)
Collecting pip==21.0
  Downloading pip-21.0-py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 287 kB/s 
Collecting setuptools==52.0.0
  Downloading setuptools-52.0.0-py3-none-any.whl (784 kB)
     |████████████████████████████████| 784 kB 592 kB/s 
Installing collected packages: idna, pip, setuptools
  Attempting uninstall: idna
    Found existing installation: idna 2.10
    Uninstalling idna-2.10:
      Successfully uninstalled idna-2.10
  Attempting uninstall: pip
    Found existing installation: pip 20.2.1
    Uninstalling pip-20.2.1:
      Successfully uninstalled pip-20.2.1
  Attempting uninstall: setuptools
    Found existing installation: setuptools 49.2.1
    Uninstalling setuptools-49.2.1:
      Successfully uninstalled setuptools-49.2.1

@baterflyrity
Copy link
Author

@Pradhvan can u pls highlight installation progress bar or record video/gif. I cant see it in your output(

@Pradhvan
Copy link

Pradhvan commented Jan 29, 2021

@baterflyrity I thought this was progress bar 😓

  Downloading pip-21.0-py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 287 kB/s 
Collecting setuptools==52.0.0
  Downloading setuptools-52.0.0-py3-none-any.whl (784 kB)
     |████████████████████████████████| 784 kB 592 kB/s 

@baterflyrity
Copy link
Author

@Pradhvan yes you are right :) But notice that these bars represent only download progresses per each package.
So in case installing from requirements.txt file (e.g. to setup [virtual] environment) you can wait and wait and wait watching tons of progress bars.

@Pradhvan
Copy link

@baterflyrity okay, so this feature would give one progress bar for all the packages combined?

@baterflyrity
Copy link
Author

@Pradhvan yes but i suppose to leave personal ones too.

@Pradhvan
Copy link

wouldn't it look a bit weird with two progress bars @baterflyrity

@baterflyrity
Copy link
Author

wouldn't it look a bit weird with two progress bars @baterflyrity

no

no

@Pradhvan
Copy link

ahh! this UI makes sense. I can give it a shot.

@someparsa
Copy link

Probably making a user interface like the package manager we have for La/TeX can be beneficial here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants