Skip to main content

ESGF data discovery, download, replication tool

Project description

esgpull - ESGF data management utility

uv

esgpull is a tool that simplifies usage of the ESGF Search API for data discovery, and manages procedures related to downloading and storing files from ESGF.

from esgpull import Esgpull, Query

query = Query()
query.selection.project = "CMIP6"
query.options.distrib = True  # default=False
esg = Esgpull()
nb_datasets = esg.context.hits(query, file=False)[0]
nb_files = esg.context.hits(query, file=True)[0]
datasets = esg.context.datasets(query, max_hits=5)
print(f"Number of CMIP6 datasets: {nb_datasets}")
print(f"Number of CMIP6 files: {nb_files}")
for dataset in datasets:
    print(dataset)

Features

  • Command-line interface
  • HTTP download (async multi-file)

Installation

esgpull is distributed via PyPI:

pip install esgpull
esgpull --help

For isolated installation, uv or pipx are recommended:

# with uv
uv tool install esgpull
esgpull --help

# alternatively, uvx enables running without explicit installation (comes with uv)
uvx esgpull --help
# with pipx
pipx install esgpull
esgpull --help

Usage

Usage: esgpull [OPTIONS] COMMAND [ARGS]...

  esgpull is a management utility for files and datasets from ESGF.

Options:
  -V, --version  Show the version and exit.
  -h, --help     Show this message and exit.

Commands:
  add       Add queries to the database
  config    View/modify config
  convert   Convert synda selection files to esgpull queries
  download  Asynchronously download files linked to queries
  login     OpenID authentication and certificates renewal
  remove    Remove queries from the database
  retry     Re-queue failed and cancelled downloads
  search    Search datasets and files on ESGF
  self      Manage esgpull installations / import synda database
  show      View query tree
  status    View file queue status
  track     Track queries
  untrack   Untrack queries
  update    Fetch files, link files <-> queries, send files to download...

Useful links

Contributions

You can use the common github workflow (through pull requests and issues) to contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

esgpull-0.9.5.tar.gz (255.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

esgpull-0.9.5-py3-none-any.whl (110.6 kB view details)

Uploaded Python 3

File details

Details for the file esgpull-0.9.5.tar.gz.

File metadata

  • Download URL: esgpull-0.9.5.tar.gz
  • Upload date:
  • Size: 255.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for esgpull-0.9.5.tar.gz
Algorithm Hash digest
SHA256 d5ac0094d5b3e294533c5783279a3a5d0fc66d0a90094def02c0415957129e8a
MD5 3c1f38e3b166c06aa4f4b8e22c307745
BLAKE2b-256 8bdf44c75c506278b77549267e976dc5f9ad40d4fdf5abe537c103eba3c4e53e

See more details on using hashes here.

Provenance

The following attestation bundles were made for esgpull-0.9.5.tar.gz:

Publisher: pypi-publish.yml on ESGF/esgf-download

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file esgpull-0.9.5-py3-none-any.whl.

File metadata

  • Download URL: esgpull-0.9.5-py3-none-any.whl
  • Upload date:
  • Size: 110.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for esgpull-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c2fee379d1f57b9a9a4c511f85e9091044e38539c06b3af91a4fda4b6f73087a
MD5 f57a7ddee2ffe2f7d6b56965ee661aa0
BLAKE2b-256 e412fa5d59cd759d3967f950217e80d5af00bd4dc483bea0701165733b1d3aaa

See more details on using hashes here.

Provenance

The following attestation bundles were made for esgpull-0.9.5-py3-none-any.whl:

Publisher: pypi-publish.yml on ESGF/esgf-download

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page