Skip to content

feature: display progress bar when downloading multi-page responses #72

Open

Description

@hydrosquall

Motivation

For a long running command (longer than 1 minute) for a big table (like pull requests or commits), it can be tricky to know if the script is still running, or if a rate limit/error was encountered

We know how many pages there are, so it may be possible to indicate how many remain.

url = "https://api.github.com/repos/{}/pulls?state=all&filter=all".format(repo)

Resources

Activity

  1. simonw commented on Apr 21, 2022

    @simonw
    Collaborator

    That's interesting - yeah it looks like the number of pages can be derived from the Link header, which is enough information to show a progress bar, probably using Click just to avoid adding another dependency.

    https://docs.github.com/en/rest/guides/traversing-with-pagination

  2. changed the title [-]feature: display progress bar when downloading responses[/-] [+]feature: display progress bar when downloading multi-page responses[/+] on Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions