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.1.6

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.1.6
File Size Uploaded Provenance Actions
meteostat-2.1.6.tar.gz 59.8 kB Without provenance Details for meteostat-2.1.6.tar.gz

Built distribution (wheel)

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

Total release size: 155.0 kB

Release files / meteostat-2.1.6.tar.gz

Download URL meteostat-2.1.6.tar.gz
Size 59.8 kB
Tags Source
SHA-256 checksum
How to use checksums
337be06226d82f311fd5b0de6a782b380ac0e9cc8cc38f1216a59c17740e4779
BLAKE2b-256 checksum
How to use checksums
5db0ada46e9a1a591f6fc615b8b800b1ff8af6f3566c133e3f66f60910a2103f
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.1.6-py3-none-any.whl

Download URL meteostat-2.1.6-py3-none-any.whl
Size 95.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8167f37840a6600bad2e8383c38ee52b6dafcaec1dbc37dbe449512eb6a5ebc
BLAKE2b-256 checksum
How to use checksums
3fc827a1459f434bea34c26679c8b30fd466309accbf59c0dd0f97db83bdd889
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.1.6

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.1.6 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