Skip to content

Installation

Learn how to install REROUTE in your Python project.

Current Version

Latest Release: v0.1.5 Release Date: 23-11-2025 Python Support: 3.8, 3.9, 3.10, 3.11, 3.12

Requirements

  • Python: 3.8 or higher
  • Framework: FastAPI or Flask (at least one)

Basic Installation

pip install reroute

This installs the core REROUTE package without framework dependencies.

uv pip install reroute

uv is an ultra-fast Python package installer written in Rust. It's 10-100x faster than pip!

Install uv first:

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

# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# Or with pip
pip install uv

Lazy Loading

Since v0.1.2, REROUTE uses lazy imports for framework adapters. You only need to install the framework you're actually using!

pyproject.toml Support

Starting with v0.1.5, REROUTE projects include pyproject.toml for modern dependency management with uv. Legacy requirements.txt will be removed in v0.3.0.

Framework-Specific Installation

Install REROUTE with support for your specific framework:

pip install reroute[fastapi]

This includes FastAPI and Uvicorn.

uv pip install reroute[fastapi]

Faster installation with uv.

pip install reroute[flask]

This includes Flask, Flask-CORS, and Spectree.

uv pip install reroute[flask]

Faster installation with uv.

Development Installation

For contributing to REROUTE:

# Clone the repository
git clone https://github.com/cbsajan/reroute.git
cd reroute

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install in editable mode with dev dependencies
pip install -e ".[dev]"
# Clone the repository
git clone https://github.com/cbsajan/reroute.git
cd reroute

# Create virtual environment with uv
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install in editable mode with dev dependencies
uv pip install -e ".[dev]"

Verify Installation

Check that REROUTE is installed correctly:

python -c "import reroute; print(reroute.__version__)"

Or use the CLI:

reroute --version
# Output: REROUTE CLI v0.1.5

Automatic Update Notifications

Since v0.1.2, REROUTE automatically checks for updates when you run reroute --version or any CLI command. You'll see a notification if a newer version is available!

Update REROUTE

To update to the latest version:

pip install --upgrade reroute

REROUTE will notify you when updates are available through the CLI.

Uninstall

To remove REROUTE:

pip uninstall reroute

Next Steps