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

Issues/37 Add function for returning an iterator instead of sequence #91

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

frankinspace
Copy link
Collaborator

Closes #37

Reopened accidental merge from #89

Added a new function results which returns an iterator that will yield all hits by default. Optional parameters for controlling the limit and page size are also available.

Deprecated the get_all in favor of results.

Deprecated get in favor of results.

Updated the unit tests to have equivalent tests for the new results function. Also updated the usage of vcrpy so that cassettes are named for the test function.

@frankinspace
Copy link
Collaborator Author

Sorry for the confusion @chuckwondo ... this should incorporate all the suggested changes from #89

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@chuckwondo chuckwondo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @frankinspace! I'm approving, but if you're not opposed, I've made a nit-picky request for adding some blank lines in the changelog for editing readability.

Co-authored-by: Chuck Daniels <chuck@developmentseed.org>
@frankinspace frankinspace merged commit ac1aab3 into develop Sep 25, 2024
7 checks passed
@frankinspace frankinspace deleted the issues/37 branch September 25, 2024 00:43
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

Successfully merging this pull request may close these issues.

Return query results as an iterator
2 participants