Skip to content

Getting Started with PyGo

This guide helps you install PyGo and create your first project.

  • Go 1.26.6+ — for the native HTTP/web layer and the CLI.
  • Python 3.11+ — for the domain/business-logic layer.
  • A Unix-like shell (Linux, macOS) or Windows. The CLI ships prebuilt binaries for linux/darwin (amd64, arm64) and windows (amd64).

PyGo does not require Node.js, npm, or pnpm. Those are only used to build this documentation site. The framework itself is Go + Python.

The recommended way is the universal installer script, which downloads the raw binary for your platform, verifies its SHA-256 checksum against checksums.txt, and installs it to ~/.local/bin:

Terminal window
curl -sL https://raw.githubusercontent.com/PyGo-Labs/pygo-framework/main/install.sh | bash
export PATH="$HOME/.local/bin:$PATH"

You can pin a version or change the install directory with environment variables:

Terminal window
PYGO_VERSION=2.2.4 PYGO_INSTALL_DIR="$HOME/.local/bin" \
curl -sL https://raw.githubusercontent.com/PyGo-Labs/pygo-framework/main/install.sh | bash

Alternatively, self-update an already installed CLI with:

Terminal window
pygo upgrade
Terminal window
pygo version

Expected output:

pygo version 2.2.4
Terminal window
pygo new myapp
cd myapp
pygo dev

pygo dev starts a Go supervisor that boots the Python runtime over a local Unix Domain Socket and serves your app at http://127.0.0.1:8080.

A freshly scaffolded project mirrors the real pygo.toml paths:

myapp/
├── pygo.toml # Project configuration
├── app/
│ ├── modules/ # One folder per module
│ │ ├── core/ # Built-in core module
│ │ │ ├── web/entry.go # Go HTTP entrypoint (framework.entrypoint_web)
│ │ │ └── app/main.py # Python domain entrypoint (framework.entrypoint_python)
│ │ ├── auth/ # Internal module (Go + Python)
│ │ ├── i18n/ # Internal module (Go + Python)
│ │ ├── admin/ # Internal module (Go + Python)
│ │ ├── notifications/ # Internal module (Go + Python)
│ │ └── ui/ # Internal module (Go + Python)
│ └── ... # python_path = "app"
├── storage/
│ └── .pygo.sock # UDS socket (server.socket)
└── tasks/ # Runnable tasks (pygo run <task>)

The two entrypoints are declared in pygo.toml:

  • framework.entrypoint_web → app/modules/core/web/entry.go (the Go web layer)
  • framework.entrypoint_python → app/modules/core/app/main.py (the Python domain layer)
  • python_path → app (importable Python package root)

Internal modules (core, auth, i18n, admin, notifications, ui) ship with the framework; extra modules are added to modules.installed via pygo module install.