Installation¶
This guide covers how to install Mototli for both usage and development.
Prerequisites¶
- Python 3.10 or higher (3.12+ recommended)
- A package manager:
uv,pipx, orpip
Installation Methods¶
Verification¶
Verify your installation by checking the version:
You should see output like:
Try fetching a resource from a public gopher server:
Shell Completion¶
Mototli uses Typer for its CLI, which supports shell completion.
Development Setup¶
For contributing to Mototli or developing with the source code:
# Clone the repository
git clone https://github.com/alanbato/mototli.git
cd mototli
# Install all dependencies (including dev tools)
uv sync
# Run tests
uv run pytest
# Run linting
uv run ruff check .
# Run type checking
uv run mypy src/
Dependencies¶
Mototli has minimal runtime dependencies:
| Package | Purpose |
|---|---|
rich |
Terminal formatting and colors |
structlog |
Structured logging |
typer |
Command-line interface |
tomli |
TOML parsing (Python < 3.11) |
Troubleshooting¶
Command not found¶
If mototli is not found after installation:
- Ensure the installation location is in your
PATH - For
pipx, runpipx ensurepath - For
uv tool, runuv tool update-shell
Permission errors¶
If you encounter permission errors:
- Use
uvorpipxinstead ofpipfor system-wide installs - Or use a virtual environment:
python -m venv .venv && source .venv/bin/activate
Import errors¶
If you can run mototli but cannot import the library:
Next Steps¶
- Quick Start Guide - Get up and running quickly
- Your First Gopherhole - Serve your first content
- CLI Reference - Explore all CLI commands