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.
  • Validation:

    • Validate strings against CV terms and templates.

Installation

ESGVOC is available on PyPI. Install it with pip:

pip install esgvoc

Following this command to install or update the latest CVs.

esgvoc install

How to contribute

Install Python dev environment

  • Pip
pip install -e .
  • Rye
rye sync

Linters & code formatters

  • Pip
pip install pre-commit
pre-commit install
  • Rye
rye install
rye 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-0.3.0.tar.gz (5.3 MB view details)

Uploaded Source

Built Distribution

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

esgvoc-0.3.0-py3-none-any.whl (76.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for esgvoc-0.3.0.tar.gz
Algorithm Hash digest
SHA256 fe9cb850e979a37adece3ed97561afff46e767f6d8bc5c22ead8c5ed2cf29415
MD5 6b98949c88a96800ed8b50054c84d8eb
BLAKE2b-256 d47bcaf9b604fc6b353946b1625bf47cb2f6c9c4751c280c78a473cc9fb27c7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for esgvoc-0.3.0.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-0.3.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for esgvoc-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fffd6b9ce38031aa991c4641809906f7c5e8ab050cf4fd271966d78852a7b266
MD5 b9ffbf4667d198a8d8e2c2ad207f50fe
BLAKE2b-256 b58d293d67aead82c97f7d641b70d156770a9daf90e54b9064182852779912da

See more details on using hashes here.

Provenance

The following attestation bundles were made for esgvoc-0.3.0-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