Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CompanyOnTheWorld/cmr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python CMR Client Library

Python client library that abstracts CMR API calls for search, ingest, update, and deletion of collections and granules.

Setup

Run:

$ python setup.py install

Or

$ pip install -e .

Usage

Populate your CMR credentials into a cmr.cfg file, using cmr.cfg.example as a template. Alternatively, on instantiation, if no CFG file is provided then the CMR object will load credentials from these environment variables: CMR_PROVIDER, CMR_USERNAME, CMR_PASSWORD, and CMR_CLIENT_ID.

Then, run:

$ python
>>> from pyCMR.pyCMR import CMR
>>> cmr = CMR('/path/to/my/cmr.cfg')  # or `cmr = CMR()` to load from env vars

Test

python setup.py test

About

Client for CMR APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%