Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

See http://knmi.nl/kennis-en-datacentrum/achtergrond/data-ophalen-vanuit-een-script

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

`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) `

Release History

Release History

This version
History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
knmi_py-0.1.1-py3-none-any.whl (10.5 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Nov 24, 2017
knmi-py-0.1.1.tar.gz (9.9 kB) Copy SHA256 Checksum SHA256 Source Nov 24, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting