Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use tqdm for uploading and downloading generic packages with a progress bar. #3034

Open
@SH2282000

Description

@SH2282000

Description of the problem, including code/CLI snippet

Hi,
This feature request concerns the following methods:

This could be easily implemented in:

url = f"{self._computed_path}/{package_name}/{package_version}/{file_name}"
query_data = {} if select is None else {"select": select}
server_data = self.gitlab.http_put(
url, query_data=query_data, post_data=file_data, raw=True, **kwargs
)

Expected Behavior

We could chunk the files and use tqdm to follow the progress of the upload or the download of heavy files.

Actual Behavior

Just need to wait, no information can be retrieved concerning the current status when uploading or downloading.

Specifications

  • python-gitlab version: N/A
  • Gitlab server version (or gitlab.com):N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions