Skip to content

Configuration

PyGo uses a pygo.toml file in the project root for configuration. There is no dsl_version and no transpiler settings — the framework is native Go + Python.

[project]
name = "myapp"
version = "0.1.0"
description = "My PyGo application"
[framework]
entrypoint_web = "app/modules/core/web/entry.go"
entrypoint_python = "app/modules/core/app/main.py"
python_path = "app"
[server]
host = "127.0.0.1"
port = 8080
socket = "storage/.pygo.sock"
[python]
interpreter = "python3"
[modules]
internal = ["core", "auth", "i18n", "admin", "notifications", "ui"]
installed = []
[database]
default = "sqlite"
[i18n]
locales_dir = "app/modules/core/app/locales"
fallback = "en"
Field Type Description
name string Project name
version string Project version (semver)
description string Short description
Field Type Description
entrypoint_web string Go file that boots the web layer
entrypoint_python string Python file that boots the domain runtime
python_path string Root package path for the Python runtime
Field Type Default Description
host string 127.0.0.1 Bind address
port int 8080 HTTP port
socket string storage/.pygo.sock UDS path used for Go↔Python calls
Field Type Default Description
interpreter string python3 Python interpreter command
Field Type Description
internal string[] Built-in modules available to the project
installed string[] Modules installed from the registry
Field Type Default Description
default string sqlite Default database backend
Field Type Default Description
locales_dir string app/modules/core/app/locales Directory with locale files
fallback string en Fallback locale

Configuration can be overridden with environment variables:

Terminal window
export PYGO_SERVER_PORT=9090
export PYGO_PYTHON_INTERPRETER=/usr/bin/python3.11

GitHub: https://github.com/PyGo-Labs/pygo-framework