Meteostat Python Package
The Meteostat Python library provides a simple API for accessing open weather and climate data. The historical observations and statistics are collected by Meteostat from different public interfaces, most of which are governmental.
Among the data sources are national weather services like the National Oceanic and Atmospheric Administration (NOAA) and Germany's national meteorological service (DWD).
Installation
The Meteostat Python package is available through PyPI:
pip install meteostat
Meteostat requires Python 3.5 or higher. If you want to visualize data, please install Matplotlib, too.
Documentation
The Meteostat Python library is divided into multiple classes which provide access to the actual data. The documentation covers all aspects of the library:
- Geographical Point
- Weather Stations
- Hourly Data
- Daily Data
- Monthly Data
- Climate Normals
- Contributing
Example
Let's plot 2018 temperature data for Vancouver, BC:
# Import Meteostat library and dependencies
from datetime import datetime
import matplotlib.pyplot as plt
from meteostat import Point, Daily
# Set time period
start = datetime(2018, 1, 1)
end = datetime(2018, 12, 31)
# Create Point for Vancouver, BC
vancouver = Point(49.2497, -123.1193, 70)
# Get daily data for 2018
data = Daily(vancouver, start, end)
data = data.fetch()
# Plot line chart including average, minimum and maximum temperature
data.plot(y=['tavg', 'tmin', 'tmax'])
plt.show()
Take a look at the expected output:
Contributing
Instructions on building and testing the Meteostat Python package can be found in the documentation. More information about the Meteostat bulk data interface is available here.
If you want to support the project financially, you can make a donation via PayPal.
Data License
Meteorological data is provided under the terms of the Creative Commons Attribution-NonCommercial 4.0 International Public License. You are not allowed to redistribute Meteostat data "as-is" for commercial purposes.
By using the Meteostat Python library you agree to our terms of service. All meteorological data sources used by the Meteostat project are listed here.
Code License
The code of this library is available under the MIT license.
Release files for meteostat 1.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| meteostat-1.3.3.tar.gz | 14.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| meteostat-1.3.3-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 41.6 kB
Release files / meteostat-1.3.3.tar.gz
| Download URL | meteostat-1.3.3.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdafb9876561489b7bbccb7e820eccea9670cf8f592eaca6421e02770f0d6918
|
|
BLAKE2b-256 checksum How to use checksums |
5d396939de1e58e7e7bcf8c4637a43656760e55108768683864fa86849079d0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Release files / meteostat-1.3.3-py2-none-any.whl
| Download URL | meteostat-1.3.3-py2-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
53992f02c78772cd34592555c69d9bc84bddd68580df71d071017d5dbb0f3fc8
|
|
BLAKE2b-256 checksum How to use checksums |
8a1d3af8b46d1b2bd843543f10a5c0e445453743bd105c2981eb7cbdc10f60b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|