Skip to content
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

Feature Request: Verbose Mode for functions retrieving lots of records #131

Open
ronrest opened this issue Mar 21, 2021 · 0 comments
Open

Comments

@ronrest
Copy link
Contributor

ronrest commented Mar 21, 2021

For some queries that retrieve lots of records (and take a long time to run), the user experience would be improved if we allow the user to receive some feedback on the progress made so far. Eg, by adding a verbose argument.

If the data is being retrieved in batches, then it could print out the number of items it has retrieved so far.

My current thought, is to have the progress show up as a single line, which gets cleared and overwritten with every batch of data it receives. Something along the lines of

>>> client.get_studies(verbose=True)
received 150 items

And if the user specifies an upper limit to the number of items to retrieve, using the max_items argument outlined in gihub issue#130, then it could display something like this:

>>> client.get_studies(max_items=200, verbose=True)
received 150 items (out of a max of 200)

I am happy to implement this, but I want to get peoples feedback, and suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant