Skip to content

Installation

Dianel edited this page Apr 9, 2026 · 1 revision

Installation

Quick Install (PyPI)

pip install graphoptim

Or with uv:

uv pip install graphoptim

Install with Benchmark Dependencies

To use the benchmark pipeline (requires API keys):

pip install "graphoptim[benchmark]"

Install from Source

git clone https://github.com/agodianel/Graphoptim-Code-Optimizer.git
cd graphoptim

# Using uv (recommended)
uv pip install -e ".[dev,benchmark]"

# Or using pip
pip install -e ".[dev,benchmark]"

Verify Installation

graphoptim --version
# graphoptim, version 0.1.0

graphoptim config show

Requirements

  • Python ≥ 3.9
  • Core dependencies (installed automatically):
    • networkx ≥ 3.0 — Graph algorithms
    • radon ≥ 6.0 — Cyclomatic complexity
    • scipy ≥ 1.10 — Statistical tests
    • pandas ≥ 2.0 — Data analysis
    • rich ≥ 13.0 — CLI output
    • click ≥ 8.0 — CLI framework

Environment Variables

For the benchmark pipeline, set these environment variables:

export ANTHROPIC_API_KEY="sk-ant-..."   # Claude Opus 4.6
export OPENAI_API_KEY="sk-..."           # GPT-5.2
export GOOGLE_API_KEY="AI..."            # Gemini 2.5 Pro

Clone this wiki locally