// SPDX-FileCopyrightText: 2026 University of Strasbourg (Unistra)
// SPDX-FileContributor: Christophe Prud'homme <christophe.prudhomme@feelpp.org>
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
= KUB command-line tools
`kub-cli` provides native Python commands for Ktirio Urban Building.
Python 3.11 or newer is required. Simulations use a separately installed KUB
solver or an Apptainer image; Feel++ Python bindings are not required.
[cols="1,3",options="header"]
|===
|Command |Purpose
|`kub-dataset` |Download and manage location datasets and FMUs.
|`kub-simulate` |Preprocess meshes, run simulations and launch coupled participants locally or with Slurm.
|`kub-img` |Download and inspect Docker/Apptainer images.
|`kub-dashboard` |Browse datasets and simulation results; optional preview tool.
|===
== Installation
Install into a Python virtual environment. Version 0.12.0 introduces the native
commands, replacing the older container wrapper.
[source,bash]
----
python -m pip install --upgrade 'kub-cli>=0.12.0'
----
For the optional dashboard:
[source,bash]
----
python -m pip install --upgrade 'kub-cli[dashboard]>=0.12.0'
----
A supplied wheel can also be installed with `python -m pip install /path/to/kub_cli-0.12.0-py3-none-any.whl`.
Use `COMMAND --help` for available options and `COMMAND --version` for the installed CLI version.
== Download datasets and FMUs
[source,bash]
----
kub-dataset pull arz --version 0.1.0
kub-dataset pull-simulator --version 0.20.0
----
Data are stored under `cemdb/locations` and `cemdb/simulators` by default.
The `--version` option after a dataset subcommand selects the dataset version;
CLI and solver releases share a version; datasets and FMUs have their own versions.
== Download an image and run a simulation
Replace `IMAGE_TAG` with the image version matching your MPI setup.
Apptainer must be installed on the host.
[source,bash]
----
kub-img pull oras://ghcr.io/feelpp/ktirio-urban-building:IMAGE_TAG-sif \
--runtime apptainer --image ./kub.sif
kub-img info --runtime apptainer --image ./kub.sif
kub-simulate preprocess arz --version 0.1.0 --partitions 4 \
--launcher local --runtime apptainer --apptainer-exec apptainer \
--apptainer-image ./kub.sif
kub-simulate run arz --version 0.1.0 --np 4 \
--launcher local --runtime apptainer --apptainer-exec apptainer \
--apptainer-image ./kub.sif
kub-simulate status arz --version 0.1.0
----
For Slurm, select `--launcher slurm` and the site's partition and resources.
For an installed solver, use `--runtime native --binary /path/to/feelpp_kub_cem`.
Use `--config-file /path/to/case.cfg` to select a different simulation CFG.
== Launch coupled participants
A coupling plan lists each participant's image, executable, MPI ranks, arguments
and mounts, plus a new output directory for the run.
[source,bash]
----
kub-simulate couple --plan /path/to/plan.json --launcher local --dry-run
kub-simulate couple --plan /path/to/plan.json --launcher local
----
Use `--launcher slurm` for cluster execution. That mode requires one node per
participant, equal rank counts, and images and case files on shared storage.
== Browse results
With the dashboard extra installed:
[source,bash]
----
kub-dashboard serve --cemdb-root ./cemdb --host 127.0.0.1 --port 8050
----
Open http://127.0.0.1:8050 in a browser. Use `--host 0.0.0.0` when serving from
another machine.
Full documentation: https://feelpp.github.io/ktirio-urban-building/.
== License
GPL-3.0-or-later OR LicenseRef-Commercial. Imported `kub-img` utilities retain
their Apache-2.0 license. See `LICENSE` and `LICENSES/` for the terms.
Metadata
Release files for kub-cli 0.12.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 | |
|---|---|---|---|---|
| kub_cli-0.12.0.tar.gz | 401.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kub_cli-0.12.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 892.8 kB
Release files / kub_cli-0.12.0.tar.gz
| Download URL | kub_cli-0.12.0.tar.gz |
|---|---|
| Size | 401.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b105f51703d379b7745bf740edab9fbbbc7f533498231c4fb55106043b9f5fd9
|
|
BLAKE2b-256 checksum How to use checksums |
e94e78c28c2f888ba57f35122da13c5d5427043cea3735ba4d6ad26275fbcea1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 24, 2026.
Transparency logRelease files / kub_cli-0.12.0-py3-none-any.whl
| Download URL | kub_cli-0.12.0-py3-none-any.whl |
|---|---|
| Size | 491.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68f309717250640ebc7b4aff696a71f88f3e1b4928667cdac0b0be7b2c4d480a
|
|
BLAKE2b-256 checksum How to use checksums |
0660fba03a273e639e5610829c05c3c257a4974164df0148ce2eafa23f1c7d56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 24, 2026.
Transparency logSecurity for kub-cli 0.12.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 kub_cli-0.12.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 Oct 24, 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.