diff options
author | Baudouin Raoult <baudouin.raoult@ecmwf.int> | 2018-05-11 04:54:43 +0100 |
---|---|---|
committer | Baudouin Raoult <baudouin.raoult@ecmwf.int> | 2018-05-11 04:54:43 +0100 |
commit | 0587bf7d3abeb53d1e4032db51fe1ca557e91b37 (patch) | |
tree | 4c0d057c21e8e96dbe7c7b9152332dda67d53075 | |
parent | 7c7c6b60be37506e27fe3978f75c90732f9bc638 (diff) | |
parent | 117c9bfab28c84a2a7bf48443fe074b68902d222 (diff) |
Merge branch 'master' of https://software.ecmwf.int/stash/scm/cds/cdsapi
-rw-r--r-- | MANIFEST.in | 3 | ||||
-rw-r--r-- | README.rst | 25 | ||||
-rw-r--r-- | setup.py | 2 |
3 files changed, 28 insertions, 2 deletions
diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..07b2794 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include *.in +include *.rst +recursive-include cdsapi *.py @@ -1 +1,24 @@ -Todo + +Install +------- + +Install via `pip` with:: + + $ pip install cdsapi + + +Configure +--------- + +Get your API key from the CDS portal and write it into the configuration file:: + + $ vim ~/.cdsapi + +Test +---- + + $ python + >>> import cdsapi + >>> cds = cdsapi.Client() + >>> cds.get_resource("insitu-glaciers-extent", {}) + ... @@ -21,7 +21,7 @@ setuptools.setup( author='ECMWF', author_email='software@ecmwf.int', license='Apache 2.0', - url='https://software.ecmwf.int/stash/projects/CST/repos/cdscompute', + url='https://software.ecmwf.int/stash/projects/CST/repos/cdsapi', description="Climate Data Store API", long_description=read('README.rst'), packages=setuptools.find_packages(), |