Skip to main content

python library and CLI to interact with WCRP CVs

Project description

ESGVOC Library

ESGVOC is a Python library designed to simplify interaction with controlled vocabularies (CVs) used in WCRP climate data projects. It supports querying, caching, and validating terms across various CV repositories like the universe and project-specific repositories (e.g., CMIP6Plus, CMIP6, etc.).

Full documentation is available at https://esgf.github.io/esgf-vocab/.


Features

  • Query controlled vocabularies:

    • Retrieve terms, collections, or descriptors.
    • Perform cross-validation and search operations.
    • Supports case-sensitive, wildcard, and approximate matching.
  • Caching:

    • Download CVs to a local database for offline use.
    • Keep the local cache up-to-date.
    • Note: at present, this is a design choice. You can't use esgvoc without this cache, it always downloads the CVs to a local database first
  • Validation:

    • Validate strings against CV terms and templates.
  • Apps:

    • Ease some treatment using the CV.

Installation

ESGVOC is available on PyPI. Install it with pip:

pip install esgvoc

After installing ESGVOC, use this command to install the latest CVs (or update them if you have already installed ESGVOC).

esgvoc install

For developers

  • with pip
pip install -e .
pip install pre-commit
pre-commit install
  • with uv
uv sync
uv run pre-commit install

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

esgvoc-2.0.2.tar.gz (5.5 MB view details)

Uploaded Source

Built Distribution

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

esgvoc-2.0.2-py3-none-any.whl (216.2 kB view details)

Uploaded Python 3

File details

Details for the file esgvoc-2.0.2.tar.gz.

File metadata

  • Download URL: esgvoc-2.0.2.tar.gz
  • Upload date:
  • Size: 5.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for esgvoc-2.0.2.tar.gz
Algorithm Hash digest
SHA256 df362e0bb36740678985f7a587ca030cacc6a061f4648e46cc650697c529849d
MD5 7eb72f4beb52536d20cc4a24c8a45475
BLAKE2b-256 4b699283cc6e235d89cd802cef6bb6eef8907ede40b93bc50f0a0b0b60140388

See more details on using hashes here.

Provenance

The following attestation bundles were made for esgvoc-2.0.2.tar.gz:

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

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

File details

Details for the file esgvoc-2.0.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for esgvoc-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a0bb3e9d8a41723d4696e602a2089ee03452179299aa687f90d353574bc81fb5
MD5 a0a1c459a1711e1fba5e4912519eee1b
BLAKE2b-256 3f39b9ada286929c981c8dca356751b2ee8ba91427161cf96ccd1cf718479e49

See more details on using hashes here.

Provenance

The following attestation bundles were made for esgvoc-2.0.2-py3-none-any.whl:

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

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