-
Notifications
You must be signed in to change notification settings - Fork 5
✨ Create iterator for paginated server methods #62
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
✨ Create iterator for paginated server methods #62
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice!
So I can call now with this something like
for job in get_jobs():
...
??
Then a few questions
Yes, I just made a few changes so that this is possible. Now if you do
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice! thanks for the change. in the end the linter did something ;)
What do these changes do?
Introduce a python wrapper for the
osparc.SolversApi.get_jobs_page
method which allows the user to get a single iterator to all items in a list, even if the http method is paginated. I have introduces a general function which can be used for the other paginated http methods as soon as they have been implemented on the server side.Related issue/s
How to test