Installation

Three ways, from the simplest to the most flexible:

Standalone executables

The releases on GitHub ship the CLI and the GUI as standalone executables, for Windows (.exe) and Linux (.bin, built on Ubuntu). They embed Python and GDAL: download, allow to run (chmod +x DicoGIS-*.bin on Linux), run.

Container image

An image of dicogis-cli is published to the GitHub Container Registry, built on top of the official GDAL images:

docker pull ghcr.io/guts/dicogis:latest
docker run --rm -v "$(pwd)":/data ghcr.io/guts/dicogis:latest \
    inventory --input-folder /data --output-path /data/dicogis_inventory.xlsx

The entrypoint is dicogis-cli, so any subcommand or option works the same way, e.g. docker run --rm ghcr.io/guts/dicogis:latest --version. The working directory inside the container is /data: mount the input folder there, and pg_service.conf for PostGIS (with PGSERVICEFILE pointing at it). Tags follow the releases (X.Y.Z, X.Y), plus edge for the latest commit on master.

Python package

DicoGIS is published on PyPI. pipx installs it in its own virtual environment while exposing its commands:

python -m pip install --user pipx
pipx ensurepath

The GDAL challenge

GDAL is an optional dependency (the gdal extra), so pipx install dicogis always succeeds and dicogis-cli --help / --version always work, but any command reading data (dicogis-cli inventory, dicogis-gui) refuses to run and tells GDAL is missing.

GDAL can’t be a regular dependency: the gdal package on PyPI isn’t a portable wheel, it must match the version of the libgdal system library it links against (gdal-config --version), which pip can’t resolve on its own. A matching GDAL has to be added to the virtual environment, with one of the options below.

Linux (Debian/Ubuntu)

First, install the GDAL system library and gdal-config (see the development environment for PPA options to get a specific version):

sudo apt install gdal-bin libgdal-dev

Then, either reuse the Python bindings of the system (recommended):

sudo apt install python3-gdal
pipx install dicogis --system-site-packages

or build them into the virtual environment, against the system libgdal (needs libgdal-dev and a build toolchain, build-essential):

pipx install dicogis
pipx inject dicogis "gdal[numpy]==$(gdal-config --version).*"

Windows

There is no official gdal wheel for Windows on PyPI. Either inject a prebuilt one, from Geospatial Wheels Index, which serves the cgohlke/geospatial-wheels builds behind a package index (Windows only, no Linux/macOS wheels):

pipx install dicogis
pipx inject dicogis gdal --pip-args="--index-url https://gisidx.github.io/gwi"

or a wheel downloaded from the releases page, matching the Python version (e.g. GDAL-3.11.1-cp312-cp312-win_amd64.whl for Python 3.12):

pipx inject dicogis C:\path\to\GDAL-3.11.1-cp312-cp312-win_amd64.whl

Note

These are third-party builds, not an official PyPI channel: weigh them against your own supply-chain policy.

conda

conda or mamba ship GDAL as a prebuilt package, on every OS:

conda create -n dicogis -c conda-forge python=3.12 gdal
conda activate dicogis
pip install dicogis

The GUI extra

dicogis-gui needs PyQt6, also an optional dependency (the gui extra), so dicogis-cli never requires it:

pipx inject dicogis PyQt6
# or: pip install dicogis[gui]

Check

dicogis-cli inventory --input-folder ./some/folder