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 bounds <NEWAVE_DIR> <COBRE_DIR> |
Compare LP bounds between the two cases. |
cobre-bridge compare results <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 adds --tolerance, --format, --out-dir (and
compare bounds also --summary, --variables).
See docs/cli.md for the full per-command reference.
Future (
NE) hydro plants.convert newaveconverts NEWAVENE(future, will-be-built) plants using cobre's dead-volume filling schema. A converted case containingNEplants requires cobre >= 0.9.1; EX-only cases still load on cobre >= 0.8.2. Withcobre-python >= 0.9.1installed,convert --validatevalidates these cases too; an older cobre-python that predates the filling schema is skipped gracefully.
Configuration
Defaults for compare 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_BOUNDS_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cobre_bridge-0.9.1.tar.gz.
File metadata
- Download URL: cobre_bridge-0.9.1.tar.gz
- Upload date:
- Size: 767.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4bfa75bbb322cd89708b745200a0114a0038bb472f0961b66f0d6cd78586990
|
|
| MD5 |
ef98a3388ba6f1a408745704e13d83d7
|
|
| BLAKE2b-256 |
63f88c0bf64c4cc9722e417ebb13f91fe02f69db4d0c375bf009b4bd41ef052b
|
Provenance
The following attestation bundles were made for cobre_bridge-0.9.1.tar.gz:
Publisher:
release.yml on cobre-rs/cobre-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cobre_bridge-0.9.1.tar.gz -
Subject digest:
b4bfa75bbb322cd89708b745200a0114a0038bb472f0961b66f0d6cd78586990 - Sigstore transparency entry: 1975514766
- Sigstore integration time:
-
Permalink:
cobre-rs/cobre-bridge@9c2d9c27760d17bb30b86d4b1908ae84e493f203 -
Branch / Tag:
refs/tags/v0.9.1 - Owner: https://github.com/cobre-rs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9c2d9c27760d17bb30b86d4b1908ae84e493f203 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cobre_bridge-0.9.1-py3-none-any.whl.
File metadata
- Download URL: cobre_bridge-0.9.1-py3-none-any.whl
- Upload date:
- Size: 454.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
892b62d0828ecd1a02ba128a9da5c57b62a0d92bc4862d6a38b9dff3a5f12a8d
|
|
| MD5 |
c7ddbcc67b323fd098e998d4a3c69674
|
|
| BLAKE2b-256 |
28bc18e753f42d1fad707edadfde4439f61d93905b2910c100b462cb4e94fac5
|
Provenance
The following attestation bundles were made for cobre_bridge-0.9.1-py3-none-any.whl:
Publisher:
release.yml on cobre-rs/cobre-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cobre_bridge-0.9.1-py3-none-any.whl -
Subject digest:
892b62d0828ecd1a02ba128a9da5c57b62a0d92bc4862d6a38b9dff3a5f12a8d - Sigstore transparency entry: 1975515037
- Sigstore integration time:
-
Permalink:
cobre-rs/cobre-bridge@9c2d9c27760d17bb30b86d4b1908ae84e493f203 -
Branch / Tag:
refs/tags/v0.9.1 - Owner: https://github.com/cobre-rs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9c2d9c27760d17bb30b86d4b1908ae84e493f203 -
Trigger Event:
push
-
Statement type: