Getting Started with PyGo
Getting Started
Section titled “Getting Started”This guide helps you install PyGo and create your first project.
Prerequisites
Section titled “Prerequisites”- 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) andwindows(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.
Install the CLI
Section titled “Install the CLI”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:
curl -sL https://raw.githubusercontent.com/PyGo-Labs/pygo-framework/main/install.sh | bashexport PATH="$HOME/.local/bin:$PATH"You can pin a version or change the install directory with environment variables:
PYGO_VERSION=2.2.4 PYGO_INSTALL_DIR="$HOME/.local/bin" \ curl -sL https://raw.githubusercontent.com/PyGo-Labs/pygo-framework/main/install.sh | bashAlternatively, self-update an already installed CLI with:
pygo upgradeVerify the installation
Section titled “Verify the installation”pygo versionExpected output:
pygo version 2.2.4Create your first project
Section titled “Create your first project”pygo new myappcd myapppygo devpygo 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.
Project layout
Section titled “Project layout”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.
What’s next?
Section titled “What’s next?”- Architecture — how Go and Python communicate.
- Core Concepts — modules and the interop model.
- Configuration — the full
pygo.tomlreference.