openmeteopy
Download Meteorological Data from OPEN-METEO API (https://open-meteo.com/en)
Open-Meteo collaborates with National Weather Services providing Open Data with 11 to 2 km resolution. Our high performance APIs select the best weather model for your location and provide data as a simple JSON API.
APIs are free without any API key for open-source developers and non-commercial use. You can embed them directly into your app.
What is it?
openmeteopy is a client Python wrapper library for Open-Meteo web API. It allows quick and easy consumption of OM data from Python applications via a simple object model and in a human-friendly fashion.
openmeteopy runs on Python 3.6+.
print(mgr.get_data())
Options input parameters
- latitude - Latitude (float)
- longitude - Longitude (float)
- windspeed_unit - wind speed unit (string, optional)
- precipitation_unit - precipitation amount units (string, optional)
- timeformat - If format unixtime is selected, all time values are returned in UNIX epoch time in seconds. Please note that all time is then in UTC! For daily values with unix timestamp, please apply utc_offset_seconds again to get the correct date. (string, optional)
- timezone - If timezone is set, all timestamps are returned as local-time and data is returned starting at 0:00 local-time. Any time zone name from the time zone database is available under timezones.py . (string, optional)
- past_days - If past_days is set, yesterdays or the day before yesterdays data are also returned.
Installation
git clone https://github.com/m0rp43us/openmeteopy
cd openmeteopy-main/
pip3 install .
Example
Download Meteorological data
from openmeteo_py.Hourly import Hourly,Daily,Options,OWmanager
# Latitude, Longitude for Rabat,Morocco
latitude = 33.9842
longitude = -6.8675
hourly = Hourly()
daily = Daily()
options = Options(latitude,longitude)
mgr = OWmanager(options,
hourly.all(),
daily.all())
# Download data
meteo = mgr.get_data()
print(meteo)
_Contributors (coding, testing, packaging, reporting issues) are welcome!
Metadata
Release files for openmeteo-py 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openmeteo_py-0.0.1.tar.gz | 13.9 kB | Without provenance | Details for openmeteo_py-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openmeteo_py-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for openmeteo_py-0.0.1-py3-none-any.whl |
Total release size: 28.2 kB
Release files / openmeteo_py-0.0.1.tar.gz
| Download URL | openmeteo_py-0.0.1.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8beddc286cc50939f7eedd120f57afe44af487c2a57df07f2e86a5f49f5b6953
|
|
BLAKE2b-256 checksum How to use checksums |
cfcae43fb7b169c2b75717c18591b3e779925cbf9b7c60cd7304cd70f70813d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.3
|
Release files / openmeteo_py-0.0.1-py3-none-any.whl
| Download URL | openmeteo_py-0.0.1-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
872df0d59119d68411014736fc4aacdec4996027a9cf641914e082a41f7831ce
|
|
BLAKE2b-256 checksum How to use checksums |
7dbd51c2ea1ed6178a425426637ffd0eaf348b65b8579e7fb1e3585153414d01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.3
|
Security for openmeteo-py 0.0.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.