Skip to main content

A programmatic interface to the CMIP7 Data Request

Project description

pypi Binder Open In Colab NBviewer license status

CMIP7 Data Request Software

Python software to interact with the CMIP7 data request. It provides an API to query and utilize the information in the data request, including example scripts and notebooks showing how to use the API.

Please see below for the installation guide or how to try it without installation.

The Data Request Task Team encourages user feedback to help us improve the software. Here are some ways to provide feedback:

v1.2.2 Data Request release

The latest official release of the CMIP7 Data Request is v1.2.2 (25 July 2025). Learn more about this release on the CMIP website.

Try It Without Installation

You can launch and interact with this repository in a live environment via Binder or Google Colab — no installation needed, just click on one of the badges to run it in your browser:

Binder Open In Colab

Installation

Quick Start

In a python virtual environment or conda environment in which you want to install the package, do:

pip install CMIP7-data-request-api

If an environment first needs to be created, you can do:

python -m venv my_dreq_env
source my_dreq_env/bin/activate
pip install --upgrade pip
pip install CMIP7-data-request-api

This will automatically install the dependencies, but if necessary they can be manually installed by doing:

wget https://raw.githubusercontent.com/CMIP-Data-Request/CMIP7_DReq_Software/refs/heads/main/requirements.txt
pip install -r requirements.txt 

using the requirements.txt file from the top-level directory of this repository, which lists the package dependencies, and my_dreq_env can be changed to whatever environment name is preferred. If a conda environment is preferred instead of venv, an env.yml file with the dependencies is also provided and a conda environment can be created by doing:

wget https://raw.githubusercontent.com/CMIP-Data-Request/CMIP7_DReq_Software/refs/heads/main/env.yml
conda env create -n my_dreq_env --file env.yml

If installation is successful you should be able to run the command

export_dreq_lists_json --all_opportunities v1.2.1 amip.json --experiments amip

The package can be uninstalled using

python -m pip uninstall CMIP7_data_request_api

Configuration

The package comes with a default configuration. After installation, you can initialize the configuration file with the default settings by running:

CMIP7_data_request_api_config init

This will create the .CMIP7_data_request_api_config file in your home directory. Optionally, the default location of this file can be changed by setting the CMIP7_DR_API_CONFIGFILE environment variable. Alternatively, the file will be automatically created the first time you use the software.

The configuration file is a YAML file containing key: value pairs that control the behavior of the software. You can modify the values by either editing the file directly or using the following command:

CMIP7_data_request_api_config <key> <value>

To reset the configuration to its default values, run:

CMIP7_data_request_api_config reset

For example, to set the software to run offline, use:

CMIP7_data_request_api_config offline true

This will prevent checks for updates and retrievals of new versions of the data request content.

Development

To install for development:

git clone git@github.com:CMIP-Data-Request/CMIP7_DReq_Software.git
cd CMIP7_DReq_Software

If needed create an environment with the required dependencies (as in Quick Start, above). Then, in the top-level directory of the repository, run:

python -m pip install -e .

Documentation

Technical Documentation

https://cmip-data-request.github.io/CMIP7_DReq_Software/data_request_api/

Contributors

Contributors

Thanks to our contributors!

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

cmip7_data_request_api-1.2.2.tar.gz (4.5 MB view details)

Uploaded Source

Built Distribution

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

cmip7_data_request_api-1.2.2-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

Details for the file cmip7_data_request_api-1.2.2.tar.gz.

File metadata

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

File hashes

Hashes for cmip7_data_request_api-1.2.2.tar.gz
Algorithm Hash digest
SHA256 46c84514e6b55a3d40e44c29db65de2d4756d19f0939b7189bd878aaba5814af
MD5 685945e3d343a9003aac4b3c3f6ba4e2
BLAKE2b-256 8f670efb9037eec2265f08033b8174bf83a2e36e72140dccec9509c10886e91e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmip7_data_request_api-1.2.2.tar.gz:

Publisher: publish2pypi.yml on CMIP-Data-Request/CMIP7_DReq_Software

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

File details

Details for the file cmip7_data_request_api-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cmip7_data_request_api-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 28751394a3931a1ccf7ec3d1e42a98310b8ef9e7a85fc7604f46308f02f1fbdd
MD5 445b36edce61fa894838f68a37f6ab84
BLAKE2b-256 12a639c8b5b934351b25d3a8d7638f67e5a2e0ebb08cbdeee9f6bc6f10a243c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for cmip7_data_request_api-1.2.2-py3-none-any.whl:

Publisher: publish2pypi.yml on CMIP-Data-Request/CMIP7_DReq_Software

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