Registry / http-networking / ecmwf-api-client

ecmwf-api-client

JSON →
library1.6.5pypypi✓ verified 34d ago

Python client for ECMWF (European Centre for Medium-Range Weather Forecasts) web services API. Allows downloading meteorological data. Current version 1.6.5, actively maintained, with irregular releases.

http-networkingdata
Install & Compatibility
Where this runs
tested against v1.7.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.098s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.090s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Standard import path.

from ecmwfapi import ECMWFDataServer

For service-based access.

from ecmwfapi import ECMWFService

Downloads ERA5 data from the ECMWF API. Requires API key and email set in environment variables.

from ecmwfapi import ECMWFDataServer server = ECMWFDataServer(url="https://api.ecmwf.int/v1", key=os.environ.get('ECMWF_API_KEY', ''), email=os.environ.get('ECMWF_EMAIL', '')) server.retrieve({ "class": "od", "dataset": "era5", "date": "2018-01-01/to/2018-01-02", "expver": "1", "levelist": "1", "levtype": "ml", "param": "130", "stream": "oper", "target": "output.grib", "time": "00:00:00/12:00:00", "type": "an", "grid": "1.0/1.0", "area": "50/-10/30/10", "format": "grib" })
ecmwf --version
Debug
Known footguns
deprecatedECMWFDataServer with URL 'https://api.ecmwf.int/v1' is deprecated; use 'https://api.ecmwf.int/v1' (still works) or migrate to new CDS API.
gotchaAnonymous access (v1.6.0+) may silently succeed but returns limited data. If you expect full access, ensure key/email are provided.
breakingIn v1.6.3, invalid API keys now fail fast instead of falling back to anonymous access. Code that relied on silent fallback will break.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
17 hits · last 30 days
gptbot
4
ahrefsbot
4
amazonbot
4
claudebot
3
script
1
Resources