$npx skillfedfor your agent

pygrib

Python module for reading/writing GRIB files

With conditionsPyPI Python ModulesReleased Oct 2025437.3K downloads / moMIT AND (Apache-2.0 OR BSD-2-Clause)Platform wheel

Decision gist · record as of 2026-08-14

platform wheels — pygrib-2.1.8-cp310-cp310-macosx_15_0_arm64.whl · pygrib-2.1.8-cp310-cp310-macosx_15_0_x86_64.whl · pygrib-2.1.8-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
v2.1.8 · released 2025-10-26 · Python >=3.10 · 3 runtime deps: packaging, pyproj, numpy

Yes, if you work with meteorological or climate data in GRIB format and have access to the ECCODES library. The package is actively maintained, permissively licensed, and has no known vulnerabilities. Install friction is moderate due to the C dependency, but pre-built wheels and conda packages ease deployment on standard platforms. Not suitable if you need to create GRIB files from scratch or lack system-level ECCODES installation.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires the ECCODES C library installed on your system; pip will search common locations ($CONDA_PREFIX, /usr, /usr/local, /opt/local) or use $ECCODES_DIR if set.
  • Medium install friction due to a compiled C dependency (ECCODES library).
  • The package provides pre-built wheels for Python 3.10–3.14 on macOS and Linux, reducing friction for common platforms.

License · maintenance · safety

MIT AND (Apache-2.0 OR BSD-2-Clause) (permissive) — Dual-licensed under MIT and (Apache-2.0 OR BSD-2-Clause), all permissive. No restrictions on commercial or proprietary use.

last release 2025-10-26 (292 days) · last repo commit 2026-03-13 · 356 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 437,312 downloads/mo, #6,670 on PyPI

Verify before relying

pip install pygrib

import pygrib
grbs = pygrib.open('file.grib')
for grb in grbs:
    print(grb)
  • Whether pre-built wheels include ECCODES or if system installation is always required
  • Performance characteristics when reading large GRIB files
  • Extent of write capabilities beyond modifying existing files
Same gist for agents: .md · .json

What it is and what it does

pygrib is a Python wrapper around the ECMWF ECCODES library for reading and writing GRIB meteorological data files. GRIB is the standard format for storing weather and climate model output, satellite observations, and other gridded atmospheric data. The package provides a high-level interface to parse GRIB files and access their contents as Python objects, making it straightforward to integrate meteorological data into scientific workflows.

The package supports reading GRIB files fully and has limited write capabilities—you can modify the contents of an existing GRIB file but cannot create one from scratch. It depends on numpy, pyproj, and packaging, and requires the ECCODES C library to be present on your system. Wheels are available for Python 3.10–3.14 on macOS and Linux, though you will need to ensure ECCODES is installed separately or available via your package manager.

Use it for

  • Load weather model output (e.g., from NOAA or ECMWF) for analysis or visualization in scientific Python workflows.
  • Extract specific meteorological variables (temperature, pressure, wind) from GRIB files for data processing.
  • Modify metadata or values in existing GRIB files for reprocessing or redistribution.
  • Integrate gridded climate or weather data into machine learning or statistical analysis pipelines.
  • Convert GRIB data to other formats (e.g., NetCDF) by reading and transforming with numpy and pyproj.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you work with meteorological or climate data in GRIB format and have access to the ECCODES library.

The package is actively maintained, permissively licensed, and has no known vulnerabilities. Install friction is moderate due to the C dependency, but pre-built wheels and conda packages ease deployment on standard platforms. Not suitable if you need to create GRIB files from scratch or lack system-level ECCODES installation.

Install

pygrib on PyPI

Before you install

Medium install friction due to a compiled C dependency (ECCODES library). The package provides pre-built wheels for Python 3.10–3.14 on macOS and Linux, reducing friction for common platforms. Maintenance is active with a recent release (292 days ago) and ongoing repository activity.

Requires the ECCODES C library installed on your system; pip will search common locations ($CONDA_PREFIX, /usr, /usr/local, /opt/local) or use $ECCODES_DIR if set.

License in practice

Dual-licensed under MIT and (Apache-2.0 OR BSD-2-Clause), all permissive. No restrictions on commercial or proprietary use.

Quickstart

pip install pygrib

import pygrib
grbs = pygrib.open('file.grib')
for grb in grbs:
    print(grb)

Verify before relying

  • Whether pre-built wheels include ECCODES or if system installation is always required
  • Performance characteristics when reading large GRIB files
  • Extent of write capabilities beyond modifying existing files

Package facts

LicenseMIT AND (Apache-2.0 OR BSD-2-Clause) permissive
Python supportSupports the current Python release >=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependencies
3 packages
packagingpyprojnumpy
MaintenanceActively maintained 292 days since the last release
Last repo commit
First released
Downloads437,312 / month, #6,670 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: Science/ResearchProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules

Evidence: pygrib-2.1.8-cp310-cp310-macosx_15_0_arm64.whl; pygrib-2.1.8-cp310-cp310-macosx_15_0_x86_64.whl; pygrib-2.1.8-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; pygrib-2.1.8-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pygrib-2.1.8-cp311-cp311-macosx_15_0_arm64.whl; pygrib-2.1.8-cp311-cp311-macosx_15_0_x86_64.whl; pygrib-2.1.8-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; pygrib-2.1.8-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pygrib-2.1.8-cp312-cp312-macosx_15_0_arm64.whl; pygrib-2.1.8-cp312-cp312-macosx_15_0_x86_64.whl; pygrib-2.1.8-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; pygrib-2.1.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pygrib-2.1.8-cp313-cp313-macosx_15_0_arm64.whl; pygrib-2.1.8-cp313-cp313-macosx_15_0_x86_64.whl; pygrib-2.1.8-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; pygrib-2.1.8-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; pygrib-2.1.8-cp314-cp314-macosx_15_0_arm64.whl; pygrib-2.1.8-cp314-cp314-macosx_15_0_x86_64.whl; pygrib-2.1.8-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; pygrib-2.1.8-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Tags

Capabilities
grib file reader pythonmeteorological data gribeccodes python wrapperweather data grib formatgrib file parsingclimate data grib filesatmospheric grib reader
Topics
meteorologygrib-formatgeospatial

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “grib file reader python”

  • pygribReads and writes GRIB meteorological data files via a Python…
  • eccodesReads and writes GRIB and BUFR meteorological data files via Python…
  • cfgribcfgrib maps GRIB meteorological data files to the NetCDF Common Data…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also eccodes · eccodeslib · cfgrib · pdbufr · earthkit-data · herbie-data · earthkit-meteo · ecmwf-api-client · MetPy · cdsapi