# KNMI-py
Python wrapper to fetch and parse observations from KNMI,
either as csv or Pandas DataFrame
See http://knmi.nl/kennis-en-datacentrum/achtergrond/data-ophalen-vanuit-een-script
Note: This library is not affiliated in any way with KNMI, it only uses the KNMI API to request data.
Currently only daily data is implemented.
## Installation
KNMI-py is available via pip.
`python -m pip install knmi-py`
## 5 Functions
- `knmi.get_day_data_raw(stations, start, end, inseason, variables)`
- `knmi.get_day_data_dataframe(stations, start, end, inseason, variables)`
- `knmi.get_hour_data_raw(stations, start, end, inseason, variables)`
- `knmi.get_hour_data_dataframe(stations, start, end, inseason, variables)`
- `knmi.get_forecast_dataframe(station, conform_values, variables)`
## Metadata
Don't know which station number you need, or what the variables mean?
We got you covered:
- `knmi.stations` provides a list of all available stations
- `knmi.variables` provides a list of all variables and explanations
## Metadata included in DataFrame
All raw data is included as argument to the DataFrame
(however, the data is lost once you start manipulating the frame, so you'll have to copy it)
# Example
```python
import knmi
df = knmi.get_day_data_dataframe(stations=[260])
print(df.disclaimer)
print(df.stations)
print(df.legend)
df = df.rename(columns=df.legend)
print(df)
```
## Disclaimer
The KNMI-py Python library is not affiliated, created or maintained by KNMI. It merely uses the KNMI API to request data.
Raw data
{
"_id": null,
"home_page": "https://github.com/energyid/knmi-py",
"name": "knmi-py",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "knmi weather data pandas",
"author": "EnergieID.be",
"author_email": "jan@energieid.be",
"download_url": "https://files.pythonhosted.org/packages/18/67/fe91cf7998ef8e89d1c32b14a83c6b6de81d3191ae1893e7969e54a20be7/knmi-py-0.1.10.tar.gz",
"platform": null,
"description": "# KNMI-py\nPython wrapper to fetch and parse observations from KNMI,\neither as csv or Pandas DataFrame\n\nSee http://knmi.nl/kennis-en-datacentrum/achtergrond/data-ophalen-vanuit-een-script\n\nNote: This library is not affiliated in any way with KNMI, it only uses the KNMI API to request data.\n\nCurrently only daily data is implemented.\n\n## Installation\nKNMI-py is available via pip.\n\n`python -m pip install knmi-py`\n\n## 5 Functions\n- `knmi.get_day_data_raw(stations, start, end, inseason, variables)`\n- `knmi.get_day_data_dataframe(stations, start, end, inseason, variables)`\n- `knmi.get_hour_data_raw(stations, start, end, inseason, variables)`\n- `knmi.get_hour_data_dataframe(stations, start, end, inseason, variables)`\n- `knmi.get_forecast_dataframe(station, conform_values, variables)`\n\n## Metadata\nDon't know which station number you need, or what the variables mean?\nWe got you covered:\n\n- `knmi.stations` provides a list of all available stations\n- `knmi.variables` provides a list of all variables and explanations\n\n## Metadata included in DataFrame\nAll raw data is included as argument to the DataFrame\n(however, the data is lost once you start manipulating the frame, so you'll have to copy it)\n\n# Example\n\n```python\nimport knmi\ndf = knmi.get_day_data_dataframe(stations=[260])\nprint(df.disclaimer)\nprint(df.stations)\nprint(df.legend)\ndf = df.rename(columns=df.legend)\nprint(df)\n```\n\n## Disclaimer\n\nThe KNMI-py Python library is not affiliated, created or maintained by KNMI. It merely uses the KNMI API to request data.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python API wrapper for KNMI data",
"version": "0.1.10",
"project_urls": {
"Homepage": "https://github.com/energyid/knmi-py"
},
"split_keywords": [
"knmi",
"weather",
"data",
"pandas"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6c77cad1188a1c0159a36a5164dee2a9b36056603d1ed97d6b130a55d5f61e75",
"md5": "bb6dc35cf29b0d129718570006d6c14a",
"sha256": "439d7afa0b87fc7f6ce7346f0c946590cb6b9565e5eb182a44cbc0017c57c091"
},
"downloads": -1,
"filename": "knmi_py-0.1.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bb6dc35cf29b0d129718570006d6c14a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 11557,
"upload_time": "2023-06-16T12:10:51",
"upload_time_iso_8601": "2023-06-16T12:10:51.384015Z",
"url": "https://files.pythonhosted.org/packages/6c/77/cad1188a1c0159a36a5164dee2a9b36056603d1ed97d6b130a55d5f61e75/knmi_py-0.1.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1867fe91cf7998ef8e89d1c32b14a83c6b6de81d3191ae1893e7969e54a20be7",
"md5": "9a5fab8454cb4237aadd0f1516538dff",
"sha256": "75f540888010d4dea90a3534eff1628cb41555047d6cd7a8ccc3745788cd1394"
},
"downloads": -1,
"filename": "knmi-py-0.1.10.tar.gz",
"has_sig": false,
"md5_digest": "9a5fab8454cb4237aadd0f1516538dff",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13349,
"upload_time": "2023-06-16T12:10:52",
"upload_time_iso_8601": "2023-06-16T12:10:52.941228Z",
"url": "https://files.pythonhosted.org/packages/18/67/fe91cf7998ef8e89d1c32b14a83c6b6de81d3191ae1893e7969e54a20be7/knmi-py-0.1.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-16 12:10:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "energyid",
"github_project": "knmi-py",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "knmi-py"
}