Skip to content

Installation Guide

Requirements

  • Python: >=3.12, <4.0
  • Operating System: Linux, macOS, Windows
  • Package Manager: pip or Poetry (recommended)

Installation Methods

# Install latest version
pip install rite

# Install specific version
pip install rite==1.0.0

# Upgrade to latest version
pip install --upgrade rite
# Add to project
poetry add rite

# Add specific version
poetry add [email protected]

# Add with development dependencies
poetry add rite --group dev

From Source

# Clone the repository
git clone https://github.com/scape-agency/rite.git
cd rite

# Install with Poetry
poetry install

# Or install with pip
pip install -e .

Verify Installation

import rite

print(rite.__version__)

Or from command line:

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

Virtual Environment

It's recommended to use a virtual environment:

Using venv

# Create virtual environment
python -m venv .venv

# Activate (Linux/macOS)
source .venv/bin/activate

# Activate (Windows)
.venv\\Scripts\\activate

# Install rite
pip install rite

Using Poetry

Poetry automatically creates and manages virtual environments:

poetry install
poetry shell

Docker

Use the provided Dev Container for a complete development environment:

# Open in VS Code with Dev Containers extension
# Or build manually
cd .devcontainer
docker-compose build
docker-compose up

See .devcontainer/README.md for details.

Troubleshooting

Python Version Issues

Ensure you have Python 3.10 or higher:

python --version

If you have multiple Python versions:

python3.10 -m pip install rite
# or
python3.11 -m pip install rite

Permission Errors

On Linux/macOS, you might need to use --user:

pip install --user rite

Or use a virtual environment (recommended).

Poetry Issues

If Poetry is not found:

# Install Poetry
curl -sSL https://install.python-poetry.org | python3 -

# Add to PATH
export PATH="$HOME/.local/bin:$PATH"

Next Steps