Skip to content

Configuration

PyGo uses a pygo.toml file in the project root for configuration.

pygo.toml
dsl_version = "0.0.1"
name = "myapp"
[server]
host = "127.0.0.1"
port = 8080
[python]
interpreter = "python3"
module = "app.py"
Field Type Default Description
host string "127.0.0.1" Bind address
port int 8080 Server port
Field Type Default Description
interpreter string "python3" Path to Python interpreter
module string "app.py" Python module to run

Configuration values can be overridden using environment variables:

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

GitHub: https://github.com/Ander-Labs/pygo