cdo-flow
Workflow orchestration layer for CDO-based climate analysis, built on top of python-cdo-wrapper.
Install
pip install cdo-flow
Requires CDO to be installed for steps that execute CDO operators.
Quick start
from cdo_flow import Workflow, python_step, cdo_step
from python_cdo_wrapper.query import CDOQueryTemplate
# Pure Python step
@python_step
def write_data(ctx):
ctx.output("result.txt").write_text("hello")
# CDO step via decorator
@cdo_step
def regrid(ctx, cdo):
cdo.query(ctx.inputs["data"]).remap_bil("r360x180").to_file(ctx.output("regridded.nc"))
# Inline CDO chain
wf = Workflow(name="demo", run_dir="./runs")
wf.add_step("write", write_data)
wf.add_step(
"select_tas",
chain=CDOQueryTemplate().select_var("tas").year_mean(),
inputs={"data": "/path/to/input.nc"},
output=["tas_annual.nc"],
)
result = wf.run()
YAML workflows
name: my_workflow
steps:
- id: select
type: cdo
inputs:
data: /path/to/input.nc
operator_chain:
- op: selname
args: [tas]
- op: yearmean
output: tas_annual.nc
cdo-flow validate my_workflow.yml
cdo-flow run my_workflow.yml --dry-run
cdo-flow run my_workflow.yml
License
MIT
Metadata
Release files for cdo-flow 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cdo_flow-0.2.0.tar.gz | 212.3 kB | With provenance | Details for cdo_flow-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cdo_flow-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for cdo_flow-0.2.0-py3-none-any.whl |
Total release size: 247.2 kB
Release files / cdo_flow-0.2.0.tar.gz
| Download URL | cdo_flow-0.2.0.tar.gz |
|---|---|
| Size | 212.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1c11e1ebf709f5da2397ff18377bd559c0639c5fcf08a80e1983dc4ead90522
|
|
BLAKE2b-256 checksum How to use checksums |
3a891d4495a158120ba9cda52593f8ee75ff0369417e0f14f940f063171df586
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency logRelease files / cdo_flow-0.2.0-py3-none-any.whl
| Download URL | cdo_flow-0.2.0-py3-none-any.whl |
|---|---|
| Size | 34.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ddf32967cb0284037e4a8cca34b249f330eeace5034b7c34a61456c37b7a370
|
|
BLAKE2b-256 checksum How to use checksums |
17efe290b400565524043a5c2e688f84570c86ebb277f6d1680cacfe30944c0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency logSecurity for cdo-flow 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for cdo_flow-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.