Skip to main content

Installation & Setup

Get started with Synapse SDK in minutes.

Prerequisites

Before installing Synapse SDK, ensure you have:

  • Python 3.12 or higher installed
  • uv (recommended) or pip for package management

This project uses uv as the recommended package manager.

# macOS (Homebrew)
brew install uv

# Linux/macOS (curl)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Installation Methods

git clone https://github.com/datamaker-kr/synapse-sdk-v2.git
cd synapse-sdk-v2

# Sync all dependencies
uv sync

# Or install in editable mode
uv pip install -e .
Running CLI commands

After uv sync, use uv run to execute commands (e.g., uv run synapse --version), or activate the virtual environment first. See Verify Installation for details.

Install with Optional Dependencies (uv)

# Install with all dependencies (Ray, cloud storage providers, MCP)
uv pip install -e ".[all]"

# Install with multiple extras
uv pip install -e ".[dev,test,all]"

Install with pip (Alternative)

If you prefer using pip directly:

git clone https://github.com/datamaker-kr/synapse-sdk-v2.git
cd synapse-sdk-v2

# Create and activate virtual environment
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate

pip install -e .
pip not found?

If pip is not in your PATH, use Python module syntax:

python -m pip install -e .

Install with Optional Dependencies (pip)

# Install with all dependencies (Ray, cloud storage providers, MCP)
pip install -e ".[all]"
ExtraDescriptionDependencies
allRay + all cloud storage providers + MCPray[all], universal-pathlib, s3fs, gcsfs, sshfs, mcp
testTesting utilitiespytest, pytest-asyncio, pytest-cov, etc.
devDevelopment toolspre-commit, ruff
docsDocumentation generationpydoc-markdown

Verify Installation

After installation, verify everything is working:

# Using uv (recommended)
uv run synapse --version
uv run synapse

# Or activate virtual environment first
source .venv/bin/activate # Linux/macOS
# .venv\Scripts\activate # Windows

synapse --version
synapse

Troubleshooting

Common Issues

  1. ImportError: No module named 'synapse_sdk'

    • Ensure you've activated your virtual environment
    • Check Python path: python -c "import sys; print(sys.path)"
  2. Connection timeout to backend

    • Verify your API token is correct
    • Check network connectivity
    • Ensure backend URL is accessible

Getting Help

If you encounter issues:

  1. Check the Troubleshooting Guide
  2. Search GitHub Issues

Next Steps