Installation¶
The minimum supported Python version is 3.12.
If you need help installing Python or are unsure of your Python version, go to Troubleshooting below.
Users¶
Install the published package:
Then you can start by either scaffolding a project or running a one-off transformation. The latter uses
the packaged stock ODD (teipublisher.odd), templates, CSS, and Word styles. Try it out with:
opm transform my.xml --preview
opm transform my.xml --preview --odd myodd.odd # provide your own ODD
To scaffold a project run:
and in the terminal select what to start from: an empty project, or a copy of one of the worked examples that ship with the package.
See the Quickstart for more details.
Troubleshooting¶
Installing Python¶
The quickest way to check the Python version on a system is via the command line or terminal.
- open your command line interface (type
cmdin the Windows search bar or open terminal on macOS/Linux) - type
python --versionand press Enter - on some systems (Mac) you may need to use
python3 --versionif you get acommand not founderror - if you see a version number higher than 3.12 you can directly install the package.
If you need to install or upgrade Python, go to python.org’s Download page, select the pertinent installer for your operating system, download it and run it. During installation, make sure to check the box that says Add Python to PATH so you can run Python from the command line.
To verify the installation, follow the steps above to check the installed version.
Installing the package¶
If this returns an error similar to command not found, it usually means pip isn’t added to your system's PATH variable. Use python3 -m pip install open-processing-model (macOS/Linux) or py -m pip install open-processing-model (in Windows).
Contributors¶
This repository uses uv as its package manager.
uv does not force-upgrade your system Python, but it can provision a
compatible interpreter:
1. Install uv¶
Restart your shell (or source your profile) so uv is on PATH.
2. Install dependencies¶
From the project root:
This creates .venv and installs the runtime dependencies. Optional dependency
groups:
uv sync --group dev # pytest and other dev tools
uv sync --group docs # zensical + mkdocstrings (this site)
3. Verify¶
Running tests¶
uv run --group dev pytest # all tests
uv run --group dev pytest -v -x # verbose, stop on first failure
uv run --group dev pytest tests/test_odd_compiler.py -q # one file