python-cmr icon indicating copy to clipboard operation
python-cmr copied to clipboard

add tools and services query class

Open sliu008 opened this issue 4 years ago • 1 comments

  • Add in tools and service cmr query classes to query umm-t and umm-s.
  • Change the base query class to be more generic and created a GranuleCollectionBaseQuery and ToolServiceBaseQuery classes.
  • Add in more parameters to query by provider, native id, and name.
  • Made concept id query more generic for each classes.
  • Added test cases for new tools query and service query classes.

sliu008 avatar Oct 07 '21 20:10 sliu008

@sliu008

This is great! I was able to checkout your PR and run the unit tests successfully.

Were you able to get live results after applying your changes? I've installed your PR changes locally but when I try doing:

import cmr
query = cmr.queries.ServiceQuery()
query.provider("POCLOUD").get_all()

I get back 0 results. Also, maybe a quick addition of examples to the readme would help

frankinspace avatar Oct 11 '21 21:10 frankinspace