Skip to content

Add support for data streams (with known total size) #84

@ppolewicz

Description

@ppolewicz

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions