Installation
WfCommons is available on PyPI. WfCommons requires Python3.11+ and has been tested on Linux and macOS.
Recommended setup
We recommend installing into a virtual environment to keep dependencies isolated:
$ python3 -m venv .venv
$ source .venv/bin/activate
$ python3 -m pip install wfcommons
Verify installation
You can confirm the CLI entry point is available:
$ wfchef --help
Or check the Python import:
$ python3 -c "import wfcommons; print(wfcommons.__version__)"
Installing from source (latest)
If you want the latest development version (potentially unstable), clone the repository and install locally:
$ git clone https://github.com/wfcommons/wfcommons
$ cd wfcommons
$ python3 -m pip install .
Optional Requirements
Graphviz
WfCommons uses pygraphviz for generating visualizations for the workflow task graph . If you want to enable this feature, you will have to install the graphviz package (version 2.16 or later). You can install graphviz easily on Linux with your favorite package manager, for example for Debian-based distributions:
$ sudo apt-get install graphviz libgraphviz-dev
and for RedHat-based distributions:
$ sudo yum install python-devel graphviz-devel
On macOS you can use the brew package manager:
$ brew install graphviz
Then you can install pygraphviz by running:
$ python3 -m pip install pygraphviz