Skip to main content

cobre-bridge

Convert power system data formats to Cobre input format.

Installation

uv tool install cobre-bridge   # recommended: isolated, on-PATH CLI
pipx install cobre-bridge       # alternative

Requires Python >= 3.12. cobre-python is bundled as a core dependency, so convert --validate and compare work out of the box.

Usage

Command What it does
cobre-bridge convert newave <SRC> <DST> Convert a NEWAVE case to Cobre input format.
cobre-bridge check newave <SRC> Preflight-validate NEWAVE inputs (no conversion).
cobre-bridge compare newave <NEWAVE_DIR> <COBRE_DIR> Compare simulation results against Cobre output.
cobre-bridge compare decomp <DECOMP_DIR> <COBRE_DIR> Compare a DECOMP run against its converted Cobre output.
cobre-bridge dashboard <CASE_DIR> Build an interactive HTML dashboard from Cobre results.

Every command accepts --json (a single machine-readable verdict {schema_version, command, status, summary, diagnostics} on stdout) and -v/-vv, --log-file PATH, --no-color, --quiet. convert adds --validate, --force, --dry-run, --diagnostics-json PATH. dashboard adds --open. compare newave and compare decomp add --tolerance, --format, --out-dir — with --format html both write a full multi-tab comparison report (Overview/cost, System, Energy Balance, Network, Convergence, Performance, plant detail, Productivity, FPHA; compare decomp adds REE, constraints, and evaporation sections).

See docs/cli.md for the full per-command reference.

Cobre version. This release targets cobre 0.14.3: converted cases use cobre 0.14's input contract, and the emitted policy relies on 0.14.3's boundary inflow-lag slot reservation, so convert --validate requires cobre-python >= 0.14.3 (an older one is skipped gracefully rather than failing).

Configuration

Defaults for compare newave tolerance, format, and out_dir can be set in a cobre-bridge.toml file (discovered from the working directory upward, then $XDG_CONFIG_HOME/cobre-bridge/config.toml, then ~/.config/cobre-bridge/config.toml) or via COBRE_BRIDGE_* environment variables (e.g. COBRE_BRIDGE_RESULTS_TOLERANCE, COBRE_BRIDGE_FORMAT, COBRE_BRIDGE_OUT_DIR). Precedence is flag > env > config file > default.

Shell completion

cobre-bridge --install-completion   # install for your shell
cobre-bridge --show-completion      # print the script

Development

pip install -e ".[dev]"
pytest
ruff check src/

License

Apache-2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cobre_bridge-0.14.3.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

cobre_bridge-0.14.3-py3-none-any.whl (789.6 kB view details)

Uploaded Python 3

File details

Details for the file cobre_bridge-0.14.3.tar.gz.

File metadata

  • Download URL: cobre_bridge-0.14.3.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cobre_bridge-0.14.3.tar.gz
Algorithm Hash digest
SHA256 bbb9451f4df74a914e22a964948081f7326d6cb8bf975421a58cc3043615d3a6
MD5 cbef1fcbdab25910a577e46f9bd37b4f
BLAKE2b-256 b969a2d93abf05f6f6d419a341f074adc2eab0b774d01005b2b6091258df62f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for cobre_bridge-0.14.3.tar.gz:

Publisher: release.yml on cobre-rs/cobre-bridge

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

File details

Details for the file cobre_bridge-0.14.3-py3-none-any.whl.

File metadata

  • Download URL: cobre_bridge-0.14.3-py3-none-any.whl
  • Upload date:
  • Size: 789.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cobre_bridge-0.14.3-py3-none-any.whl
Algorithm Hash digest
SHA256 da4eef16338fcf80bdd355d1cc3653a5fcb67f3dc04f31b57530f1c0fa5c2745
MD5 bf29a0f3aa2a1701d09e565362ba8e62
BLAKE2b-256 6a34a3a1fb38cbe19d933b735d32de12ce94b7f0ad4950c6a5a76729742856b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for cobre_bridge-0.14.3-py3-none-any.whl:

Publisher: release.yml on cobre-rs/cobre-bridge

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

Release history Release notifications | RSS feed

0.15.0

2 files

This release

0.14.3 This release

2 files

0.14.2

2 files

0.14.1

2 files

0.12.0

2 files

0.10.0

2 files

0.9.1

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.0

2 files

0.6.2

2 files

0.6.1

2 files

0.5.1

2 files

0.5.0

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page