dwdwfsapi
Python client to retrieve data provided by DWD via their geoserver WFS API
What it is and what it does
dwdwfsapi is a Python client that queries the German Weather Service (DWD) Geoserver to fetch real-time weather warnings, bio-weather forecasts, and pollen flight predictions for specific German locations. You initialize it with a warncell ID, GPS coordinates, or location name, and it retrieves structured warning data including severity levels, event types, time ranges, and health impact information.
The package wraps the DWD's WFS (Web Feature Service) API, handling the HTTP requests via requests and urllib3, and parses the responses into Python dictionaries and datetime objects. It's designed for applications that need to display or act on German weather alerts—such as mobile apps, home automation systems, or health-related services—and supports periodic polling via its update() method to keep data current.
Use it for:
- Display current and forecast weather warnings for a specific German region in a mobile or web app.
- Trigger automated alerts or notifications when a new weather warning reaches a certain severity level.
- Build a health advisory system that shows bio-weather impacts (e.g., asthma risk, cardiovascular stress) for a user's location.
- Integrate pollen flight forecasts into allergy management or outdoor activity planning applications.
- Monitor multiple warncells and aggregate warning data for regional dashboards or emergency response systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Retrieves weather warnings, bio-weather forecasts, and pollen flight data for German locations from the DWD (Deutscher Wetterdienst) Geoserver WFS API.
Yes, if you need to integrate German weather warnings or bio-weather forecasts into a Python application. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and is licensed permissively. The main constraint is the Python 3.11+ requirement; if your project supports that, it's a straightforward choice for DWD data access.
Install
dwdwfsapi on PyPI
pip
pip install dwdwfsapiuv
uv add dwdwfsapipoetry
poetry add dwdwfsapiInstalling dwdwfsapi
Before you install
Installs cleanly with only two common dependencies (requests and urllib3). Actively maintained with recent commits; last update in August 2026 and latest release in March 2024.
License in practice
Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install dwdwfsapi
from dwdwfsapi import DwdWeatherWarningsAPI
dwd = DwdWeatherWarningsAPI('813073088')
if dwd.data_valid:
print(dwd.current_warning_level)
for warning in dwd.current_warnings:
print(warning)
Requires Python 3.11 or later.
Verify before relying
- Whether the package handles rate limiting or connection failures gracefully when querying DWD servers.
- Whether forecast data is cached or always fetched fresh on each update() call.
- Whether the pollen flight module is fully documented in the public API or still in development.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — requests, urllib3 |
| Maintenance | actively maintained — 879 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 73,595/month — #14,965 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dwdwfsapi-1.1.0-py3-none-any.whl
Keywords: deutscher wetterdienst, dwd, ows, wfs
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
simple-dwd-weatherforecastRetrieves hourly weather forecasts for the next…
permissive · top 15,000 on PyPI
meteomaticsConnects Python applications to the Meteomatics…
permissive · top 15,000 on PyPI
openmeteo-requestsFetches weather data from the Open-Meteo API…
permissive · top 15,000 on PyPI
irm-kmi-apiAsync Python client to fetch current weather,…
permissive · top 15,000 on PyPI
ecmwf-opendataDownloads ECMWF open meteorological data using…
permissive · top 15,000 on PyPI
meteofrance-apiPython client for the private Météo-France API,…
permissive · top 15,000 on PyPI
AI-WQ-packageSupports participation in the ECMWF AI Weather…
permissive · top 15,000 on PyPI
herbie-dataHerbie downloads numerical weather prediction…
permissive · top 15,000 on PyPI
accuweatherAsync Python wrapper for fetching current…
permissive · top 15,000 on PyPI
pyowmPyOWM is a Python client library that wraps…
permissive · top 15,000 on PyPI