Skip to content

with #70

@kousu

Description

@kousu

It would be cool if I could write:

        with ProgressBar(widgets=widgets, maxval=os.stat(fname).st_size) as pbar:
            fp = open(fname, 'rb')
            fp = ProgressFile(fp, pbar.update)
            client.uploadFile(dataset, fp, posixpath.join(dir, file))

With pbar.start() and pbar.finish() sequestered into pbar.__enter__ and pbar.__exit__ respectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions