skillfed

AEMET-OpenData

AEMET OpenData Rest API library

aemet-opendata v0.6.4 76.3K downloads/30d#14,637 on PyPI8
Copyleft license GPL-2.0-only Active released

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-opendata

uv

uv add aemet-opendata

poetry

poetry add aemet-opendata

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Home Automation

Tags

AEMET weather API clientSpanish weather data PythonAEMET OpenData libraryweather forecast API wrappermeteorological data retrievalhome automation weatherAEMET REST client
weather-apihome-automationasync-http

More Home Automation packages