Skip to main content

A Python API wrapper for KNMI data

Project description

# KNMI-py
Python wrapper to fetch and parse observations from KNMI,
either as csv or Pandas DataFrame


Currently only daily data is implemented.

## Installation
KNMI-py is available via pip.

On Linux and Mac OS: `pip install knmi-py`

On Windows: `python -m pip install knmi-py`

## 2 Functions
- `knmi.get_day_data_raw(stations, start, end, inseason, variables)`
- `knmi.get_day_data_dataframe(stations, start, end, inseason, 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

import knmi
df = knmi.get_day_data_dataframe(stations=[260])
df = df.rename(columns=df.legend)

Project details

Download files

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

Files for knmi-py, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size knmi_py-0.1.6-py3-none-any.whl (11.1 kB) File type Wheel Python version 3.7 Upload date Hashes View hashes
Filename, size knmi-py-0.1.6.tar.gz (11.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page