skillfed

meteostat

Access and analyze historical weather and climate data with Python.

meteostat v2.1.4 699.6K downloads/30d#5,295 on PyPI
License unclear Active released

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 meteostat

uv

uv add meteostat

poetry

poetry add meteostat

Installing 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

Programming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

historical weather data pythonclimate data access apiweather station data retrievaltemperature data by locationmeteorological data analysisweather data interpolationhistorical climate records
weather-dataclimate-analysisgeospatial

More Information Analysis packages

regex

A drop-in replacement for Python's standard…

permissive · top 100 on PyPI

pyarrow

pyarrow provides Python bindings to Apache…

permissive · top 100 on PyPI

networkx

NetworkX provides data structures and…

permissive · top 1,000 on PyPI

snowflake-connector-python

Connects Python applications to Snowflake data…

permissive · top 1,000 on PyPI

contourpy

ContourPy calculates contours of 2D…

permissive · top 1,000 on PyPI

snowflake-snowpark-python

Snowpark Python provides APIs to query and…

permissive · top 1,000 on PyPI

semantic-link-functions-meteostat

Adds semantic functions to FabricDataFrame that…

permissive · top 15,000 on PyPI

openmeteo-requests

Fetches weather data from the Open-Meteo API…

permissive · top 15,000 on PyPI

atcf-data-parser

Parses a-deck forecast data from the Automated…

permissive · top 15,000 on PyPI

simple-dwd-weatherforecast

Retrieves hourly weather forecasts for the next…

permissive · top 15,000 on PyPI

earthkit-meteo

Computes meteorological quantities (potential…

permissive · top 15,000 on PyPI

metar

Parses METAR and SPECI coded aviation weather…

permissive · top 15,000 on PyPI

cdsapi

cdsapi is a Python client for the Copernicus…

permissive · top 15,000 on PyPI

env_canada

Provides async access to Environment Canada…

permissive · top 15,000 on PyPI

MetPy

MetPy provides tools for reading, visualizing,…

permissive · top 15,000 on PyPI

openmeteo-sdk

Provides compiled FlatBuffers schema files for…

permissive · top 15,000 on PyPI