Skip to main content

Anything-to-Cobre converter

Project description

cobre-bridge

Convert power system data formats to Cobre input format.

Installation

# Recommended: isolated, on-PATH CLI
uv tool install cobre-bridge

# Alternative
pipx install cobre-bridge

# With cobre-python, so `convert --validate` can validate the output
uv tool install "cobre-bridge[validation]"

Requires Python >= 3.12.

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 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 adds --tolerance, --format, --out-dir.

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

Cobre version. convert newave targets cobre 0.10.0. Every converted case requires cobre >= 0.10.0 — all system entities now carry an operational_start_date (introduced in cobre 0.10.0). NEWAVE NE (future, will-be-built) plants are converted via cobre's dead-volume filling schema. With cobre-python >= 0.10 installed, convert --validate validates the output; an older cobre-python that predates the schema is skipped gracefully.

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

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

cobre_bridge-0.10.0.tar.gz (765.7 kB 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.10.0-py3-none-any.whl (454.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cobre_bridge-0.10.0.tar.gz
  • Upload date:
  • Size: 765.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cobre_bridge-0.10.0.tar.gz
Algorithm Hash digest
SHA256 45bfe3b94fb38c6395f52f3141479f28c9c29ec8f9bca1d437927f6b1051c3ab
MD5 203facb15cead07a15611036d0c27d00
BLAKE2b-256 e46a0ec474a23158713252d791c14da54a377d93c07ed68f8c26c68c83db8f4c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: cobre_bridge-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 454.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cobre_bridge-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f736764859a9ebf3de90a6f1550eb8a1dcfa10ce5a20dcf6cac155fa731d9e09
MD5 272a82e316a97a683c378ad3edc46ff6
BLAKE2b-256 6f5994af7a7c52ac7fafa6634b25e12512eefc0786b02be10b8ae5deabe4da46

See more details on using hashes here.

Provenance

The following attestation bundles were made for cobre_bridge-0.10.0-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.

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