Skip to main content

Downloads Coverage Provider Tests Issues MIT License Stargazers


Meteostat Logo

Meteostat Python Package

Access and analyze historical weather and climate data with Python.

Explore the docs »

Visit Website · Report Bug · Request Feature

📚 Installation

The Meteostat Python package is available through PyPI:

pip install meteostat

🚀 Usage

Let's plot 2018 temperature data for Frankfurt, Germany:

from datetime import date
import matplotlib.pyplot as plt
import meteostat as ms

# Specify location and time range
POINT = ms.Point(50.1155, 8.6842, 113)  # Try with your location
START = date(2018, 1, 1)
END = date(2018, 12, 31)

# Get nearby weather stations
stations = ms.stations.nearby(POINT, limit=4)

# Get daily data & perform interpolation
ts = ms.daily(stations, START, END)
df = ms.interpolate(ts, POINT).fetch()

# Plot line chart including average, minimum and maximum temperature
df.plot(y=[ms.Parameter.TEMP, ms.Parameter.TMIN, ms.Parameter.TMAX])
plt.show()

Take a look at the expected output:

2018 temperature data for Frankfurt, Germany

🤝 Contributing

Please read our contributing guidelines for details on how to contribute to the Meteostat Python library.

Meteostat has been featured and used by various media outlets and organizations, including:

Join the growing community of users and researchers relying on Meteostat for their weather data needs.

📄 License

Meteostat is licensed under the MIT License. Data provided by Meteostat is generally licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) license. Please refer to the documentation for more information.

Metadata

Release files for meteostat 2.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meteostat 2.2.1
File Size Uploaded Provenance Actions
meteostat-2.2.1.tar.gz 65.3 kB Without provenance Details for meteostat-2.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for meteostat 2.2.1
File Interpreter ABI Platform Actions
meteostat-2.2.1-py3-none-any.whl Python 3 none any Details for meteostat-2.2.1-py3-none-any.whl

Total release size: 167.4 kB

Release files / meteostat-2.2.1.tar.gz

Download URL meteostat-2.2.1.tar.gz
Size 65.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e8172e46ebcc2124b73654e33f17938b024a9e166a638b3d6b471d3dc30f5da0
BLAKE2b-256 checksum
How to use checksums
99f11262025c3fb06509d37afeadb10614ce9d9e8ae4bf9bfe16b90fc442d96c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / meteostat-2.2.1-py3-none-any.whl

Download URL meteostat-2.2.1-py3-none-any.whl
Size 102.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cf85a411d4e0e8aab756e4d0c2bbaee27a75c59e9b75852c6845f5add737c20
BLAKE2b-256 checksum
How to use checksums
c8c1ab02d3b0813a55c4836af3f8f9022266ddf02ce8b4f93dd7f0f7856c4122
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for meteostat 2.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page