Installation¶
Requirements¶
fSTG Toolkit requires Python 3.12 or 3.13. Earlier versions are not supported.
Install from PyPI¶
The recommended way to get started is to install the package from PyPI:
pip install fSTG-Toolkit
This installs the core library and CLI. Optional feature sets can be installed as extras:
pip install "fSTG-Toolkit[dashboard]" # interactive web dashboard
pip install "fSTG-Toolkit[plot]" # matplotlib-based plots
pip install "fSTG-Toolkit[frequent]" # frequent pattern mining (requires Docker)
pip install "fSTG-Toolkit[dashboard,plot,frequent]" # all features
Install from Source¶
Clone the repository and set up the environment. For instance using conda and the provided environment.yml:
conda env create -n <env_name> -f environment.yml
conda activate <env_name>
Then install the package with Poetry:
poetry install
To include optional feature sets:
poetry install --extras dashboard # web dashboard
poetry install --extras plot # matplotlib plots
poetry install --extras frequent # frequent pattern mining
poetry install --all-extras # all features
Set the PYTHONPATH to resolve local imports when running from source:
export PYTHONPATH="$PYTHONPATH:src"
Verify the Installation¶
Check the CLI is available:
python -m fstg_toolkit --version
Optional Dependencies¶
Extra |
What it enables |
Additional requirement |
|---|---|---|
|
Interactive Dash web dashboard (standalone and serving) |
— |
|
Graph plotting utilities with |
— |
|
Frequent subgraph pattern mining via SPMiner |
Docker must be installed and running |
|
Build this documentation |
— |