An easy to use wrapper to the NASA EOSDIS Common Metadata Repository API

This repository is a copy of jddeal/python_cmr which is no longer maintained. It has been copied here with the permission of the original author for the purpose of continuing to develop a python library that can be used for CMR access.
Python CMR is an easy to use wrapper to the NASA EOSDIS Common Metadata Repository API. This package aims to make querying the API intuitive and less error-prone by providing methods that will preemptively check for invalid input and handle the URL encoding the CMR API expects.
Getting access to NASA’s earth science metadata is as simple as this:
>>> from cmr import CollectionQuery, GranuleQuery
>>> api = CollectionQuery()
>>> collections = api.archive_center("LP DAAC").keyword("AST_L1*").get(5)
>>> for collection in collections:
>>> print(collection["short_name"])
AST_L1A
AST_L1AE
AST_L1T
>>> api = GranuleQuery()