GithubHelp home page GithubHelp logo

Download Progress Bar about legendary HOT 7 OPEN

derrod avatar derrod commented on August 28, 2024
Download Progress Bar

from legendary.

Comments (7)

artemyto avatar artemyto commented on August 28, 2024 12

I think it is better to update progress information on the same place, rather than spamming terminal with tons of text. For reference: https://stackoverflow.com/questions/517127/how-do-i-write-output-in-same-place-on-the-console

from legendary.

zezic avatar zezic commented on August 28, 2024 3

Consider using the tqdm

from legendary.

derrod avatar derrod commented on August 28, 2024

While the current progress indicator is a placeholder and I do plan on replacing it with a nicer one later, I do not quite understand what is hard to understand about a progress percentage?

from legendary.

MikeGriniezakis avatar MikeGriniezakis commented on August 28, 2024

The precentage is fine but I think it has a few unnecessary details for the average user. You can remove these details and make them optional. Also, it would be easier to understand if you can visualise the progress.

from legendary.

John-Gee avatar John-Gee commented on August 28, 2024

Agreed to this, filling up the console with such little information is not helpful.

from legendary.

legendofmiracles avatar legendofmiracles commented on August 28, 2024

Does the logging library used support this (link)?

Edit: I don't think so...
I am right now looking into using sys.stdout.write to write the text and then update it, i'll show my progress here

Edit 2: I got it working! with enough space it looks like this:
image
and with not enough space, it looks like this
image
with no progress bar :/

I'll work on it a bit more, and then open a PR merging my changes into base.
Any things i should still change before opening a PR @derrod?

from legendary.

legendofmiracles avatar legendofmiracles commented on August 28, 2024

So, a few days later...
I've been trying a bit to resize with the terminal, but i've been strugelling A LOT.
It just won't fit with every terminal size.
i think i'll make it a make it a small progress bar, that almost will never fail:
image

EDIT:
I think i got a progress bar to work, that works!
Demonstration in the video
I opened a PR: #126

from legendary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.