--- id: aemet-opendata version: "0.6.4" license: GPL-2.0-only license_treatment: copyleft maintenance: active --- # AEMET-OpenData — AEMET OpenData Rest API library License: copyleft · Maintenance: active · Downloads: 76.3K/mo ## 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 above — 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 pip install aemet-opendata uv add aemet-opendata 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_current - Install friction: low - Maintenance: active - Downloads: 76.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags AEMET weather API client, Spanish weather data Python, AEMET OpenData library, weather forecast API wrapper, meteorological data retrieval, home automation weather, AEMET REST client, weather-api, home-automation, async-http [View on SkillFed](https://skillfed.io/packages/aemet-opendata) · [View on PyPI](https://pypi.org/project/aemet-opendata/)