Skip to main content

Python library to ease access to open weather data

Project description

https://github.com/earthobservations/wetterdienst/workflows/Tests/badge.svg https://codecov.io/gh/earthobservations/wetterdienst/branch/master/graph/badge.svg Documentation Status https://img.shields.io/badge/code%20style-black-000000.svg https://img.shields.io/pypi/pyversions/wetterdienst.svg https://img.shields.io/pypi/v/wetterdienst.svg https://img.shields.io/pypi/status/wetterdienst.svg https://pepy.tech/badge/wetterdienst/month https://img.shields.io/github/license/earthobservations/wetterdienst https://zenodo.org/badge/160953150.svg

Welcome to wetterdienst, your friendly weather service library for Python from the neighbourhood! We are an group of people, who try to make access to weather data in Python feel like a warm summer breeze, similar to other projects like rdwd , which originally drew our interest in this project. As we reach to provide you with data from multiple weather services, we are still stuck with this one weather service from Germany, that has questioned our believe in humanity. But we think we are at good condition to make further progress to soon fully cover the German weather service, right after finishing this documentation. But now it’s up to you to take a closer look at what we did here.

CAUTION Although the data is specified as being open, the DWD asks you to reference them as Copyright owner. To check out further, take a look at Open Data at the DWD and the Official Copyright

The full documentation of wetterdienst is available at: https://wetterdienst.readthedocs.io/en/latest/

To keep you updated about added features etc. we provide a Changelog . Furthermore to get insight on which data we have made available the section Data Coverage may be of special interest for you.

Getting started

Run the following

pip install wetterdienst

to make wetterdienst available in your current environment. To get some historical observed station data call

from wetterdienst import collect_dwd_data
from wetterdienst import Parameter, PeriodType, TimeResolution

station_data = collect_dwd_data(
    station_ids=[1048],
    parameter=Parameter.CLIMATE_SUMMARY,
    time_resolution=TimeResolution.DAILY,
    period_type=PeriodType.HISTORICAL
)

For other examples and functionality such getting metadata, running the library in a Docker image and a client take a look at the API section, which will be constantly updated with new functions. Also don’t miss out our examples .

Release history Release notifications | RSS feed

This version

0.4.0

Download files

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

Source Distribution

wetterdienst-0.4.0.tar.gz (38.3 kB view hashes)

Uploaded Source

Built Distribution

wetterdienst-0.4.0-py3-none-any.whl (50.6 kB view hashes)

Uploaded Python 3

Supported by

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