Install & Compatibility
Where this runs
tested against v0.13.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 22.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.3s · import 0.000s · 23MB
20MB installed
● package 20MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CollectionQuery
✓ from cmr import CollectionQuery
✗ from cmr import CMR
GranuleQuery
✓ from cmr import GranuleQuery
Query
✓ from cmr import Query
Basic usage: instantiate CMR client, run collection or granule query, get results.
from cmr import CMR
# Initialize CMR client with optional auth
cmr = CMR(environment='prod')
# Search for collections
collections = cmr.collection_query().keyword('temperature').get()
print(collections[:2])
# Search for granules
granules = cmr.granule_query().short_name('MOD11A1').get()
print(granules[:2])
Upgrade
Version history
0.13.0latest on PyPI · released Sep 13, 2024
Audit
Dependencies
requestsrequiredHTTP client for CMR API calls
python-dateutilrequiredDate parsing for temporal queries
sixoptionalPython 2/3 compatibility