gyoza.cli#
Command-line interface for gyoza.
Shared error helpers for the gyoza CLI.
Build command for the gyoza CLI.
- gyoza.cli.commands.build.build(path=<typer.models.ArgumentInfo object>)[source]#
Build the Docker image defined in gyoza.yml.
Deploy command for the gyoza CLI.
- gyoza.cli.commands.deploy.deploy(path=<typer.models.ArgumentInfo object>)[source]#
Build, push, and register a gyoza operation on the gyoza server.
Run command for the gyoza CLI.
- gyoza.cli.commands.run.run(file=<typer.models.OptionInfo object>, function=<typer.models.OptionInfo object>, input=<typer.models.OptionInfo object>, output=<typer.models.OptionInfo object>, inline_input=<typer.models.OptionInfo object>)[source]#
Execute a @gyoza_op function from a Python file.
Three input modes are supported:
--inline-input— parse input directly from the CLI string.--input— read input from a JSON file at the given path.default — read input from the path in $GYOZA_INPUT_PATH.
In all modes the output dict is written as JSON to
--outputor $GYOZA_OUTPUT_PATH.
Run-container command for the gyoza CLI.
- gyoza.cli.commands.run_container.run_container(image=<typer.models.ArgumentInfo object>, input=<typer.models.OptionInfo object>, output=<typer.models.OptionInfo object>, inline_input=<typer.models.OptionInfo object>, no_map_paths=<typer.models.OptionInfo object>, docker_args=<typer.models.ArgumentInfo object>)[source]#
Run a gyoza operation inside its Docker container.
Wraps
docker runwith automatic volume mounts for input/output files. Any arguments after--are forwarded directly todocker run.Execution modes:
--inline-input— parse input from the CLI string.--input— read input from a JSON file on the host.default — let the container use its built-in env defaults.
By default, string values in the input that point to existing local files or directories are bind-mounted and rewritten transparently. Use
--no-map-pathsto disable this.
Server sub-commands for the gyoza CLI.
- gyoza.cli.commands.server.start(port=<typer.models.OptionInfo object>, worker_timeout=<typer.models.OptionInfo object>, scheduling_strategy=<typer.models.OptionInfo object>)[source]#
Start the gyoza server.
- gyoza.cli.commands.server.list_definitions(as_json=<typer.models.OptionInfo object>)[source]#
List all OpDefinitions registered on the server.
Version command for the gyoza CLI.
Worker sub-commands for the gyoza CLI.