nasa / python_cmr

Python library for querying the common metadata repository.
MIT License
24 stars 22 forks source link

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

Closed frankinspace closed 1 month ago

frankinspace commented 1 month ago

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 commented 1 month ago

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