Skip to content

Installation

SAES (saes) requires Python 3.11 or newer and keeps its core scientific dependency footprint lean (numpy, pandas, pydantic>=2, scipy, statsmodels). Visualization, REST API serving, and documentation tooling are cleanly separated into optional extras.

Installing Released Packages

# Core statistical engine only (headless CI / HPC clusters)
pip install saes

# Add publication plotting (Matplotlib, Seaborn, Plotly)
pip install "saes[viz]"

# Add optional FastAPI REST API server
pip install "saes[api]"

# Install everything (Core + Visualization + REST API)
pip install "saes[all]"
uv add saes
uv add "saes[viz]"
uv add "saes[all]"

Upgrading from SAES v1 (1.x)

Version 2.0.0 consolidates the rewritten statistical suite under the canonical saes PyPI package (pip install saes, import saes). Legacy v1 workflows can continue using the previous series by pinning pip install "SAES<2".

Optional Dependency Extras

(Automatically extracted from pyproject.toml for saes v2.1.1, requiring Python >=3.11.)

Extra Packages Included Purpose
(core) numpy, pandas, pydantic, scipy, statsmodels All statistical tests, Bayesian models, MDES, TOST, tables & FAIR packs
[viz] matplotlib>=3.7.0, seaborn>=0.12.0, plotly>=5.15.0 Publication figures (saes.plot, saes.export_plot) & PDF tables
[api] fastapi>=0.110.0, uvicorn>=0.28.0, pydantic>=2.4.0, python-multipart>=0.0.31 Optional typed FastAPI REST server (saes-api on :8060)
[docs] mkdocs>=1.6.0,<2.0.0, mkdocs-material>=9.7.7, mkdocstrings[python]>=1.0.8 Building and previewing this Material for MkDocs site locally
[dev] pytest>=9.0.3, pytest-cov>=4.1.0, ruff>=0.1.0, mypy>=1.5.0, httpx>=0.27.0, pandas-stubs>=2.0.0, matplotlib>=3.7.0, seaborn>=0.12.0, plotly>=5.15.0, fastapi>=0.110.0, uvicorn>=0.28.0, pydantic>=2.4.0, python-multipart>=0.0.31 Testing (pytest), linting (ruff), strict typing (mypy), viz + api
[all] saes[viz,api] Full runtime bundle (viz + api)

Installing from Source (Development)

git clone https://github.com/saes-suite/saes.git
cd saes
uv sync --extra dev --extra docs

Verify your installation by running the full quality gate:

make ci

Building the Documentation Locally

# Live-reload preview at http://127.0.0.1:8000
make docs-serve

# Strict static production build (matches GitHub Pages CI)
make docs