yera.cli.commands.run

Run commands: run Yera apps with the browser UI.

Symbols

def run — Run Yera apps from a file or directory.

run

run(
    location: Annotated[str | None, Parameter(help='Path to a .py file or directory containing them.')] = None,
    port: Annotated[int, Parameter(help='Bind port.')] = 8991,
    host: Annotated[str, Parameter(help='Bind address (not a URL).')] = '127.0.0.1',
    browser: Annotated[bool, Parameter(help='Whether to open a browser window or run headless.')] = True,
    ctx: Annotated[AppContext, Parameter(parse=False, show=False)],
) → None

Run Yera apps from a file or directory.

Parameters

location
type: Annotated[str | None, Parameter(help='Path to a .py file or directory containing them.')] = None

Optional path to a .py file or directory containing apps.

port
type: Annotated[int, Parameter(help='Bind port.')] = 8991

Bind port.

host
type: Annotated[str, Parameter(help='Bind address (not a URL).')] = '127.0.0.1'

Bind address (not a URL).

browser
type: Annotated[bool, Parameter(help='Whether to open a browser window or run headless.')] = True

Open a browser upon starting.