-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 support for data streams (with known total size) #84
Comments
Thank you for the link and the code, yes we are always open to new features :) We'll see how we can manage to integrate that inside |
I guess you can just take my |
Indeed I'd like to add it to the base tqdm class, I think this 2015-12-26 20:26 GMT+01:00 Paweł Polewicz [email protected]:
|
I see. Do you want me to implement it and create a pull request, or you want to do it yourself? |
Well yes, you know best about the needs for this feature, so feel free to 2015-12-27 1:56 GMT+01:00 Paweł Polewicz [email protected]:
|
I'll do both the example and the implementation, please assign it to me. I am also looking into how to test it and document it. I noticed that arguments of tqdm class are documented in a structured way of some kind - where could I read about the syntax of this format? |
@ppolewicz Ok perfect, thank you very much! |
Thanks for rst hint, it really helped me. I got it working with an example, but then during review and testing found that supporting read() and write() was easy. Supporting every possible operation that a file-like object might be expected to handle, on the other hand, is not so easy :-) I will work on this further tomorrow. |
Thank you ppolewicz, and don't worry to take your time, we're not in a hurry :) |
Yes, it's RST (and also Markdown) compatible. One thing to note is that documentation in code (anything that might show up when running Secondly, please use two spaces between the variable name and the colon, and use Thirdly, just in the RST, add two spaces to the end of the bullet point parameters of tqdm to ensure they show up as a sort of header. |
But above all don't be worried :) you don't have to do everything, we're happy to fill in ;) |
Note to self: add #84 (comment) to CONTRIBUTING.md |
fixed by #844 |
Hi,
It is easy to integrate tqdm with urllib when downloading a file, but when something is being uploaded, it is not so easy. One needs to intercept
.read()
or.write()
calls and update tqdm manually.I needed it in b2 command line tool, so I have implemented it there, but maybe a stream wrapper could be useful for other tqdm users? This code is more specific to tqdm than to b2 command line tool.
Do you want to support progress tracking of data streams?
The text was updated successfully, but these errors were encountered: