Ir al contenido

Configuración

PyGo usa un archivo pygo.toml en la raíz del proyecto para la configuración.

pygo.toml
dsl_version = "0.0.1"
name = "myapp"
[server]
host = "127.0.0.1"
port = 8080
[python]
interpreter = "python3"
module = "app.py"
Campo Tipo Valor por defecto Descripción
host string "127.0.0.1" Dirección de enlace
port int 8080 Puerto del servidor
Campo Tipo Valor por defecto Descripción
interpreter string "python3" Path al intérprete Python
module string "app.py" Módulo Python a ejecutar

Los valores de configuración pueden sobrescribirse usando variables de entorno:

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

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