Configuration
Configuration
Section titled “Configuration”PyGo uses a pygo.toml file in the project root for configuration.
Full Configuration
Section titled “Full Configuration”dsl_version = "0.0.1"name = "myapp"
[server]host = "127.0.0.1"port = 8080
[python]interpreter = "python3"module = "app.py"Sections
Section titled “Sections”server
Section titled “server”| Field | Type | Default | Description |
|---|---|---|---|
host |
string | "127.0.0.1" |
Bind address |
port |
int | 8080 |
Server port |
python
Section titled “python”| Field | Type | Default | Description |
|---|---|---|---|
interpreter |
string | "python3" |
Path to Python interpreter |
module |
string | "app.py" |
Python module to run |
Environment Variables
Section titled “Environment Variables”Configuration values can be overridden using environment variables:
export PYGO_SERVER_PORT=9090export PYGO_PYTHON_INTERPRETER=/usr/bin/python3.11