Skip to main content

APCC Climate Information toolKit API package

Project description

Installation

Install via pip with:

$ pip install apccapi

Configure (Linux)

Obtain your API key from the CLIK (Climate Information toolKit) at https://cliks.apcc21.org and enter it into the apccapi.properties file, formatting it as follows:

$ vi ~/.apccapi.properties

key={your API key}
request_url=https://request.apcc21.org/apccdata
status_url=https://request.apcc21.org/status

Configure (Windows)

Obtain your API key from the CLIK (Climate Information toolKit) at https://cliks.apcc21.org, and create the apccapi.properties file in your Windows Home directory (typically C:\Users\YourUserName) with the following format:

key={your API key}
request_url=https://request.apcc21.org/apccdata
status_url=https://request.apcc21.org/status

Test

Perform a small test retrieve of MME data:

$ python
>>> import apccapi
>>> c = apccapi.Client()
>>> c.retrieve(
	{
		'jobtype': 'MME',
		'dataset': 'MME_3MONTH',
		'type': 'FORECAST',
		'method': 'SCM',
		'variable': ['prec', 't2m'],
		'period': ['Monthly mean'],
		'yearmonth': ['201909']
	},
	'mme3.zip'
)
>>>

License

MIT License

Copyright (c) 2019 - 2024, APEC Climate Center

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apccapi-0.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apccapi-0.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file apccapi-0.0.1.tar.gz.

File metadata

  • Download URL: apccapi-0.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for apccapi-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7e7b332e2fb0af89a5d6aa85b6dbe1cd36b8855b9888ecc620f59455a1073aa1
MD5 9dc9e0388779188330afc0a9132c8443
BLAKE2b-256 87275eacd313e578ab3fa8638cecd53b7dc95855762418310edf945cc82e5fd3

See more details on using hashes here.

File details

Details for the file apccapi-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: apccapi-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for apccapi-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5785d6c5fb89bab76c4c30db4153b4d8c9e24e97e373f534b9e0a6cd19a018d
MD5 5cb94a5f3f3633ec1f2794c80b7c6db4
BLAKE2b-256 4482477016ed86dee92f6fc340ae8ca3a155138d42555a7ec0ff255a84be0b9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page