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 #89

Closed frankinspace closed 1 week ago

frankinspace commented 1 week ago

Closes #37

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

Changed the get_all function to use get_iter.

Marked get as deprecated in favor of get_iter.

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

frankinspace commented 1 week ago

Clicked the wrong button in my IDE and accidentally merged this. Will open a new PR with suggested changes