ESGF data discovery, download, replication tool
Project description
esgpull - ESGF data management utility
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file esgpull-0.9.6.tar.gz.
File metadata
- Download URL: esgpull-0.9.6.tar.gz
- Upload date:
- Size: 256.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c11a02f5f03e4b411e4a63d756b414def936f839fdfe929d36d5280518d28e7
|
|
| MD5 |
2f0e6ad7c9a8aeda860a20f64a38df7f
|
|
| BLAKE2b-256 |
324003e328376dcbda43162eaa84d58c7e345e714eb25209ce7542bf9b74a917
|
Provenance
The following attestation bundles were made for esgpull-0.9.6.tar.gz:
Publisher:
pypi-publish.yml on ESGF/esgf-download
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
esgpull-0.9.6.tar.gz -
Subject digest:
1c11a02f5f03e4b411e4a63d756b414def936f839fdfe929d36d5280518d28e7 - Sigstore transparency entry: 919251384
- Sigstore integration time:
-
Permalink:
ESGF/esgf-download@1c78c68c96e59f229f6268dec2ae776b0e91e8d7 -
Branch / Tag:
refs/tags/0.9.6 - Owner: https://github.com/ESGF
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@1c78c68c96e59f229f6268dec2ae776b0e91e8d7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file esgpull-0.9.6-py3-none-any.whl.
File metadata
- Download URL: esgpull-0.9.6-py3-none-any.whl
- Upload date:
- Size: 111.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56413a50bb259627bc16cc62d4f62bae2672515350e19c5ed811d4fa796826c5
|
|
| MD5 |
5ee588aabc2ad3d2f56e7e83fab3863a
|
|
| BLAKE2b-256 |
ecf421ee6df09b0ea687b16a0829200e6733f9d925a89d408c3fffc5ac9d98e7
|
Provenance
The following attestation bundles were made for esgpull-0.9.6-py3-none-any.whl:
Publisher:
pypi-publish.yml on ESGF/esgf-download
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
esgpull-0.9.6-py3-none-any.whl -
Subject digest:
56413a50bb259627bc16cc62d4f62bae2672515350e19c5ed811d4fa796826c5 - Sigstore transparency entry: 919251387
- Sigstore integration time:
-
Permalink:
ESGF/esgf-download@1c78c68c96e59f229f6268dec2ae776b0e91e8d7 -
Branch / Tag:
refs/tags/0.9.6 - Owner: https://github.com/ESGF
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@1c78c68c96e59f229f6268dec2ae776b0e91e8d7 -
Trigger Event:
release
-
Statement type: