AEMET-OpenData
AEMET OpenData Rest API library
What it is and what it does
AEMET-OpenData is a Python wrapper around Spain's AEMET (Agencia Estatal de Meteorología) public weather API. It abstracts the REST interface to let you fetch current conditions, forecasts, and other meteorological data without building HTTP requests directly. The package uses aiohttp for async HTTP calls and geopy for location handling, making it suitable for integration into home automation systems and real-time weather applications.
The package is actively maintained and targets modern Python (3.11+). It was originally built for Home Assistant but works in any context where you need programmatic access to AEMET's public weather data. The codebase is relatively small and focused on a single API surface.
Use it for:
- Fetch current weather conditions and forecasts for Spanish locations in a Home Assistant integration
- Build a weather dashboard or monitoring tool that pulls real-time data from AEMET
- Integrate Spanish meteorological data into IoT or smart home automation workflows
- Retrieve historical or forecast weather data for analysis or reporting
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client for the AEMET OpenData Rest API that retrieves public weather information, forecasts, and related meteorological data from Spain's national weather agency.
Yes, if you need Spanish weather data and can accept the GPL-2.0-only copyleft license. The package is actively maintained, has low install friction, and integrates cleanly with async Python code. No known vulnerabilities. Not suitable for proprietary projects due to license constraints.
Install
aemet-opendata on PyPI
pip
pip install aemet-opendatauv
uv add aemet-opendatapoetry
poetry add aemet-opendataInstalling AEMET-OpenData
Before you install
Low install friction with only two runtime dependencies (aiohttp, geopy). Actively maintained with recent commits; last release was 601 days ago but repo shows ongoing activity. Supports current Python versions (3.11, 3.12, 3.13).
License in practice
Licensed under GPL-2.0-only (copyleft). Any derivative work or integration must be distributed under the same license terms; proprietary or closed-source projects cannot use this package without relicensing.
Quickstart
pip install AEMET-OpenData
from AEMET_OpenData import AEMET
aemet = AEMET(api_key='your_api_key')
weather_data = await aemet.get_weather()
Requires Python >= 3.11. Requires a valid AEMET OpenData API key (obtainable from https://opendata.aemet.es/).
Verify before relying
- Whether the package supports async/await patterns throughout or only in specific methods
- Current state of AEMET API stability and whether breaking changes occur frequently
- Whether geopy is used for location geocoding or coordinate transformation
Package facts
| License | GPL-2.0-only (copyleft) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — aiohttp, geopy |
| Maintenance | actively maintained — 601 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,304/month — #14,637 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: AEMET_OpenData-0.6.4-py3-none-any.whl
Keywords: AEMET, weather, forecast, home
Tags
More Home Automation packages
Represents and manipulates IPv4, IPv6, MAC…
permissive · top 5,000 on PyPI
homeassistantHome Assistant is an open-source home…
permissive · top 5,000 on PyPI
python-statemachineDefines finite state machines and statecharts…
permissive · top 5,000 on PyPI
btsocketA Python library for controlling BlueZ…
permissive · top 15,000 on PyPI
aiohomematicAn async Python library for controlling and…
permissive · top 15,000 on PyPI
hass-web-proxy-libProvides base classes and utilities for Home…
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
meteomaticsConnects Python applications to the Meteomatics…
permissive · top 15,000 on PyPI
ecmwf-api-clientPython client for accessing ECMWF's IFS…
permissive · top 15,000 on PyPI
ecmwf-opendataDownloads ECMWF open meteorological data using…
permissive · top 15,000 on PyPI
open-meteoProvides an asynchronous Python client for…
permissive · top 15,000 on PyPI
meteofrance-apiPython client for the private Météo-France API,…
permissive · top 15,000 on PyPI
simple-dwd-weatherforecastRetrieves hourly weather forecasts for the next…
permissive · top 15,000 on PyPI
pyatmopyatmo provides a Python API to query Netatmo…
permissive · top 15,000 on PyPI
irm-kmi-apiAsync Python client to fetch current weather,…
permissive · top 15,000 on PyPI