meteostat
Access and analyze historical weather and climate data with Python.
What it is and what it does
Meteostat is a Python library for fetching and analyzing historical weather and climate data from a global network of weather stations. It abstracts away the complexity of locating nearby stations, retrieving measurements, and handling missing data through interpolation, letting you work directly with pandas DataFrames of temperature, precipitation, and other meteorological variables.
The package is designed for researchers, data analysts, and developers who need historical weather records for specific locations and time ranges. It handles station discovery by geographic proximity, data aggregation from multiple sources, and spatial interpolation to fill gaps. The main runtime dependencies are pandas (for data manipulation), requests (for HTTP access to data providers), and pytz (for timezone handling).
Use it for:
- Retrieve daily temperature data for a city over a year to analyze seasonal trends or validate climate models.
- Build a dataset of precipitation records for multiple locations to study rainfall patterns across regions.
- Interpolate weather measurements from nearby stations to estimate conditions at a specific coordinate with no direct observations.
- Combine historical weather data with other datasets (e.g., crop yields, energy consumption) for correlation analysis.
- Validate or backfill gaps in your own weather station data using Meteostat's global network.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Meteostat provides access to historical weather and climate data from weather stations worldwide, allowing you to retrieve and analyze temperature, precipitation, and other meteorological measurements for specific locations and time periods.
Yes, if you need historical weather data and can work with Python 3.11+. Low install friction, active maintenance, and no known vulnerabilities make it a practical choice. Verify the actual license terms in the repository before use, since the package metadata does not formally declare them. Data accuracy and availability vary by region—test coverage for your location of interest first.
Install
meteostat on PyPI
pip
pip install meteostatuv
uv add meteostatpoetry
poetry add meteostatInstalling meteostat
Before you install
Low install friction with a pure-Python wheel and only three common runtime dependencies (pandas, pytz, requests). Actively maintained with a recent release.
License in practice
License treatment is unclear in the package metadata. The description notes MIT licensing for the package itself and CC BY 4.0 for the underlying data, but this is not formally declared in the package metadata—verify the actual license terms before use.
Quickstart
pip install meteostat
from datetime import date
import meteostat as ms
point = ms.Point(50.1155, 8.6842, 113)
stations = ms.stations.nearby(point, limit=4)
ts = ms.daily(stations, date(2018, 1, 1), date(2018, 12, 31))
df = ms.interpolate(ts, point).fetch()
Requires Python 3.11 or later; data retrieval depends on network access to Meteostat's data providers.
Verify before relying
- Actual data availability and coverage for specific regions and historical periods
- Rate limits or quotas on API requests to Meteostat data providers
- Accuracy and completeness of interpolation for sparse station networks
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (<4.0,>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — pandas, pytz, requests |
| Maintenance | actively maintained — 146 days since the last release |
| First released | |
| Downloads | 699,610/month — #5,295 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: meteostat-2.1.4-py3-none-any.whl
Tags
More Information Analysis packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyarrowpyarrow provides Python bindings to Apache…
permissive · top 100 on PyPI
networkxNetworkX provides data structures and…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
snowflake-snowpark-pythonSnowpark Python provides APIs to query and…
permissive · top 1,000 on PyPI
semantic-link-functions-meteostatAdds semantic functions to FabricDataFrame that…
permissive · top 15,000 on PyPI
openmeteo-requestsFetches weather data from the Open-Meteo API…
permissive · top 15,000 on PyPI
atcf-data-parserParses a-deck forecast data from the Automated…
permissive · top 15,000 on PyPI
simple-dwd-weatherforecastRetrieves hourly weather forecasts for the next…
permissive · top 15,000 on PyPI
earthkit-meteoComputes meteorological quantities (potential…
permissive · top 15,000 on PyPI
metarParses METAR and SPECI coded aviation weather…
permissive · top 15,000 on PyPI
cdsapicdsapi is a Python client for the Copernicus…
permissive · top 15,000 on PyPI
env_canadaProvides async access to Environment Canada…
permissive · top 15,000 on PyPI
MetPyMetPy provides tools for reading, visualizing,…
permissive · top 15,000 on PyPI
openmeteo-sdkProvides compiled FlatBuffers schema files for…
permissive · top 15,000 on PyPI