This is a command line tool to convert PLEXOS solution files to a DuckDB database.
Prebuilt binaries are available from the GitHub Releases page.
-
Go to the latest release page on GitHub.
-
Download the appropriate binary for your operating system.
-
Extract the archive:
tar -xzf plexos2duckdb-<platform>.tar.gz
or on Windows:
Expand-Archive plexos2duckdb-<platform>.zip -DestinationPath .
-
Copy the binary to a directory in your
PATH, e.g.:# MacOS/Linux cp plexos2duckdb ~/local/bin/ # Windows copy plexos2duckdb.exe %USERPROFILE%\local\bin\
You will have to make sure
~/local/bin/is in yourPATH.
If you prefer to build from source, ensure you have Rust and Cargo installed.
-
Clone the repository:
git clone https://github.com/epri-dev/plexos2duckdb.git cd plexos2duckdb -
Build the binary:
cargo build --release
The compiled binary will be located at:
target/release/plexos2duckdb -
Copy the binary to a directory in your
PATH:# MacOS/Linux cp target/release/plexos2duckdb ~/local/bin/ # Windows copy target\release\plexos2duckdb.exe %USERPROFILE%\local\bin\
You will have to make sure
~/local/bin/is in yourPATH.
Verify installation is successful by checking the version:
plexos2duckdb --versionRun the help command to see available options:
plexos2duckdb --helpConvert a solution zip file to a duckdb database:
plexos2duckdb --input "Model-DayAhead-Solution.zip" --output "Model-DayAhead-Solution.duckdb"Use any duckdb compatible database viewer to interactively explore the data with SQL: