## Installation
Install via pip with:
```bash
$ 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.
Raw data
{
"_id": null,
"home_page": "https://www.apcc21.org",
"name": "apccapi",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "APCC, apcc, Climate, Climate Information, Climate API",
"author": "APEC Climate Center",
"author_email": "joohyung@apcc21.org",
"download_url": "https://files.pythonhosted.org/packages/87/27/5eacd313e578ab3fa8638cecd53b7dc95855762418310edf945cc82e5fd3/apccapi-0.0.1.tar.gz",
"platform": null,
"description": "## Installation\r\n\r\nInstall via pip with:\r\n\r\n```bash\r\n$ pip install apccapi\r\n```\r\n\r\n## Configure (Linux)\r\n\r\nObtain 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:\r\n\r\n```\r\n$ vi ~/.apccapi.properties\r\n\r\nkey={your API key}\r\nrequest_url=https://request.apcc21.org/apccdata\r\nstatus_url=https://request.apcc21.org/status\r\n```\r\n\r\n## Configure (Windows)\r\n\r\nObtain 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:\r\n\r\n```\r\nkey={your API key}\r\nrequest_url=https://request.apcc21.org/apccdata\r\nstatus_url=https://request.apcc21.org/status\r\n```\r\n\r\n## Test\r\n\r\nPerform a small test retrieve of MME data:\r\n```\r\n$ python\r\n>>> import apccapi\r\n>>> c = apccapi.Client()\r\n>>> c.retrieve(\r\n\t{\r\n\t\t'jobtype': 'MME',\r\n\t\t'dataset': 'MME_3MONTH',\r\n\t\t'type': 'FORECAST',\r\n\t\t'method': 'SCM',\r\n\t\t'variable': ['prec', 't2m'],\r\n\t\t'period': ['Monthly mean'],\r\n\t\t'yearmonth': ['201909']\r\n\t},\r\n\t'mme3.zip'\r\n)\r\n>>>\r\n\r\n```\r\n\r\n## License\r\n\r\nMIT License\r\n\r\nCopyright (c) 2019 - 2024, APEC Climate Center\r\n\r\nPermission 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\r\ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE 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.\r\n",
"bugtrack_url": null,
"license": null,
"summary": "APCC Climate Information toolKit API package",
"version": "0.0.1",
"project_urls": {
"CLIK": "https://cliks.apcc21.org",
"Homepage": "https://www.apcc21.org"
},
"split_keywords": [
"apcc",
" apcc",
" climate",
" climate information",
" climate api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4482477016ed86dee92f6fc340ae8ca3a155138d42555a7ec0ff255a84be0b9f",
"md5": "5cb94a5f3f3633ec1f2794c80b7c6db4",
"sha256": "f5785d6c5fb89bab76c4c30db4153b4d8c9e24e97e373f534b9e0a6cd19a018d"
},
"downloads": -1,
"filename": "apccapi-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5cb94a5f3f3633ec1f2794c80b7c6db4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 5433,
"upload_time": "2024-10-18T06:40:35",
"upload_time_iso_8601": "2024-10-18T06:40:35.586525Z",
"url": "https://files.pythonhosted.org/packages/44/82/477016ed86dee92f6fc340ae8ca3a155138d42555a7ec0ff255a84be0b9f/apccapi-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "87275eacd313e578ab3fa8638cecd53b7dc95855762418310edf945cc82e5fd3",
"md5": "9dc9e0388779188330afc0a9132c8443",
"sha256": "7e7b332e2fb0af89a5d6aa85b6dbe1cd36b8855b9888ecc620f59455a1073aa1"
},
"downloads": -1,
"filename": "apccapi-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "9dc9e0388779188330afc0a9132c8443",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4528,
"upload_time": "2024-10-18T06:40:37",
"upload_time_iso_8601": "2024-10-18T06:40:37.463298Z",
"url": "https://files.pythonhosted.org/packages/87/27/5eacd313e578ab3fa8638cecd53b7dc95855762418310edf945cc82e5fd3/apccapi-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-18 06:40:37",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "apccapi"
}