Skip to main content

wetterdienst

Wetterdienst - Open weather data for humans

Warming stripes for Hohenpeißenberg, Germany: one stripe per year from 1781 to 2025, blue for cold years and red for warm ones
Hohenpeißenberg, Germany: 245 years of mean air temperature, one stripe per year from 1781 to 2025 — fetched and drawn with wetterdienst.

Global warming is not an opinion.

Erderwärmung ist keine Meinung.

CI status Documentation status Code coverage PyPI version Conda version Python version compatibility Project license PyPI downloads Citation reference

Wetterdienst gives you weather, climate and hydrology data from 22 national services through one interface: one way to find a station, one way to ask for values, one shape of result. It is a polars-based Python library, a command line client, a REST API, an MCP endpoint and a web app, all serving the same data.

Contributions and feedback are very welcome — we do not use most of this data ourselves, so what you need is what tells us what to build next. Hand in an issue or a PR.

What we support

Provider Country What you get
DWD 🇩🇪 Germany observations, MOSMIX/DMO forecasts, radar, warnings, road weather, derived indices
AEMET 🇪🇸 Spain observations (API key)
CHMI 🇨🇿 Czechia observations
DMI 🇩🇰 Denmark observations, incl. Greenland and the Faroe Islands
EA 🇬🇧 England hydrology
Eaufrance 🇫🇷 France hydrology
ECCC 🇨🇦 Canada observations
FMI 🇫🇮 Finland observations
GeoSphere 🇦🇹 Austria observations
IMGW 🇵🇱 Poland meteorology, hydrology
IPMA 🇵🇹 Portugal observations
KNMI 🇳🇱 Netherlands observations (API key)
LHMT 🇱🇹 Lithuania observations
Met Office 🇬🇧 UK MIDAS Open observations (CEDA account)
Météo-France 🇫🇷 France observations, SYNOP
MeteoSwiss 🇨🇭 Switzerland observations
met.no 🇳🇴 Norway Frost observations (API key)
NOAA 🌍 worldwide GHCN daily and hourly, stations across the globe
NWS 🇺🇸 USA observations
RMI 🇧🇪 Belgium observations
SMHI 🇸🇪 Sweden observations
WSV 🇩🇪 Germany hydrology (Pegelonline)

Across those: over 600 canonical parameters, resolutions from 1 minute to annual, and archives reaching back centuries where the service keeps them. Every provider is reached the same way, and a parameter means the same thing whichever service reports it — temperature_air_mean_2m is the mean air temperature at 2 m, converted to the same unit, everywhere.

Licenses and usage requirements differ per provider, so check the data chapter before you publish anything built on them. It also lists every dataset and parameter per provider.

Features

  • Stations, values and station history (metadata changes) through one request model
  • Find stations by name, id, distance from a point, bounding box or rank
  • Request by parameters, periods, start, end; Options say how values come back, Settings configure the host
  • Unit conversion, interpolation and summarization for a point between stations
  • DWD weather alerts (CAP warnings) with GeoJSON geometry, by community or district
  • SQL queries over results, export to CSV/JSON/Excel/Parquet/Zarr and to SQLite, PostgreSQL, CrateDB, InfluxDB and DuckDB
  • Command line client, REST API and a public Docker image
  • MCP (Model Context Protocol) endpoint, so LLM agents can query the data as tools
  • Web app with map-based explorer, forecasts, climate stripes, a glossary and an overview of the providers, at wetterdienst.eobs.org

Setup

pip install wetterdienst           # from PyPI
pip install "wetterdienst[export]" # with an extra
pip install git+https://github.com/earthobservations/wetterdienst  # most recent

Extras: bufr, cratedb, duckdb, eccodes, excel, export, influxdb, interpolation, knmi, mcp, mysql, pdf, plotting, postgresql, radar, radarplus, restapi, sql. Check the installation with wetterdienst --help.

On Linux, a process that imports ecCodes (bufr or eccodes extra) itself, before wetterdienst does, and then imports pyproj (which radarplus brings) can crash at exit (ecmwf/eckit#354). See known issues for the workaround.

Prefer Docker? The image ships with the optional dependencies included:

docker pull ghcr.io/earthobservations/wetterdienst
docker run -ti ghcr.io/earthobservations/wetterdienst wetterdienst --version

See the Docker chapter for running the REST API and the app from the image.

Example

Daily precipitation for Zinnwald-Georgenfeld, August 2002 — the flood:

from wetterdienst.provider.dwd.observation import DwdObservationRequest

request = DwdObservationRequest(
    parameters=[("daily", "climate_summary", "precipitation_amount")],
    start="2002-08-11",
    end="2002-08-13",
).filter_by_station_id(station_id=(5779,))

stations = request.df
stations.head()
# ┌────────────┬─────────────────┬────────────┬─────────────────────────┬───┬───────────┬───────────┬──────────────────────┬─────────┐
# │ resolution ┆ dataset         ┆ station_id ┆ start_timestamp         ┆ … ┆ longitude ┆ elevation ┆ name                 ┆ region  │
# │ ---        ┆ ---             ┆ ---        ┆ ---                     ┆   ┆ ---       ┆ ---       ┆ ---                  ┆ ---     │
# │ str        ┆ str             ┆ str        ┆ datetime[μs, UTC]       ┆   ┆ f64       ┆ f64       ┆ str                  ┆ str     │
# ╞════════════╪═════════════════╪════════════╪═════════════════════════╪═══╪═══════════╪═══════════╪══════════════════════╪═════════╡
# │ daily      ┆ climate_summary ┆ 05779      ┆ 1971-01-01 00:00:00 UTC ┆ … ┆ 13.7516   ┆ 877.0     ┆ Zinnwald-Georgenfeld ┆ Sachsen │
# └────────────┴─────────────────┴────────────┴─────────────────────────┴───┴───────────┴───────────┴──────────────────────┴─────────┘

values = request.values().all().df
values.head()
# ┌────────────┬────────────┬─────────────────┬──────────────────────┬─────────────────────────┬───────┬───────────────┐
# │ station_id ┆ resolution ┆ dataset         ┆ parameter            ┆ timestamp               ┆ value ┆ quality_flags │
# │ ---        ┆ ---        ┆ ---             ┆ ---                  ┆ ---                     ┆ ---   ┆ ---           │
# │ str        ┆ str        ┆ str             ┆ str                  ┆ datetime[μs, UTC]       ┆ f64   ┆ str           │
# ╞════════════╪════════════╪═════════════════╪══════════════════════╪═════════════════════════╪═══════╪═══════════════╡
# │ 05779      ┆ daily      ┆ climate_summary ┆ precipitation_amount ┆ 2002-08-11 00:00:00 UTC ┆ 67.9  ┆ 10            │
# │ 05779      ┆ daily      ┆ climate_summary ┆ precipitation_amount ┆ 2002-08-12 00:00:00 UTC ┆ 312.0 ┆ 10            │
# │ 05779      ┆ daily      ┆ climate_summary ┆ precipitation_amount ┆ 2002-08-13 00:00:00 UTC ┆ 26.3  ┆ 10            │
# └────────────┴────────────┴─────────────────┴──────────────────────┴─────────────────────────┴───────┴───────────────┘

values.to_pandas()  # if you would rather have pandas

The same thing from the command line:

wetterdienst stations --provider=dwd --network=observation --parameters=daily/kl --all
wetterdienst values --provider=dwd --network=observation --parameters=daily/kl --stations=1048,4411

More in examples and in the quickstart.

Where to start

Documentation: wetterdienst.readthedocs.io

What we stand for

  • 🏳️‍🌈🏳️‍⚧️ We stand with the LGBTQI+ community.
  • ✊ No place for Nazis. FCKNZS.
  • 🌡️ Global warming is not an opinion.
  • 🔓 Weather data belongs to everyone.

Acknowledgements

We want to acknowledge all environmental agencies which provide their data open and free of charge first and foremost for the sake of endless research possibilities.

We want to acknowledge all contributors for being part of the improvements to this library that make it better and better every day.

Supported by

JetBrains logo     Anthropic logo

Special thanks to the kind people at JetBrains s.r.o. for a PyCharm licence through their open-source support programme, and to Anthropic for a Claude Max subscription for open-source maintainers.

Metadata

Release files for wetterdienst 0.176.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wetterdienst 0.176.0
File Size Uploaded Provenance
wetterdienst-0.176.0.tar.gz 862.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wetterdienst 0.176.0
File Interpreter ABI Platform
wetterdienst-0.176.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / wetterdienst-0.176.0.tar.gz

Download URL wetterdienst-0.176.0.tar.gz
Size 862.4 kB
Tags Source
SHA-256 checksum
How to use checksums
72d5de07cff43d383353f84302611c92ba541ee96498717b9c0178c21c18b368
BLAKE2b-256 checksum
How to use checksums
e32b6ea356be5b7bcf668629b661230aa5e69073a8aededfefdbc115517e1ec7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / wetterdienst-0.176.0-py3-none-any.whl

Download URL wetterdienst-0.176.0-py3-none-any.whl
Size 959.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5ca1e38543ed23219f014869f03710743952f0ac5c71e37017c436fea91015a
BLAKE2b-256 checksum
How to use checksums
4337a302eab5b9e0a731e7e5d3541c711656c594660787a0a0cb1d8265aa62a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for wetterdienst 0.176.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wetterdienst-0.176.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.176.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page