Skip to navigation

nemoguardrails.server.experimental.cli

View as MarkdownOpen in Claude

Server-owned manifest commands, independent of the library’s CLI.

Validation and inspection construct routes but never enter application lifespan. Serving uses the same application assembly and its existing resource ownership.

Module Contents

Functions

NameDescription
_prepareValidate through existing assembly, suppressing raw validation inputs.
inspect_configDescribe selected bindings, not inferred checker or provider capabilities.
inspect_manifestShow effective routes, bound profiles and fixed Rails selections as JSON.
mainEnter the server CLI from module invocation or a future console script.
schemaEmit editor JSON Schema from the manifest model, without a second schema.
serveRun the existing application with fixed bindings and lifespan ownership.
validateCheck manifest data, directories and routing without loading Rails code.

Data

app

API

nemoguardrails.server.experimental.cli._prepare(
path: pathlib.Path

Validate through existing assembly, suppressing raw validation inputs.

nemoguardrails.server.experimental.cli.inspect_config(
) -> dict

Describe selected bindings, not inferred checker or provider capabilities.

nemoguardrails.server.experimental.cli.inspect_manifest(
manifest: pathlib.Path = typer.Argument(..., help='D...
) -> None

Show effective routes, bound profiles and fixed Rails selections as JSON.

nemoguardrails.server.experimental.cli.main() -> None

Enter the server CLI from module invocation or a future console script.

nemoguardrails.server.experimental.cli.schema() -> None

Emit editor JSON Schema from the manifest model, without a second schema.

nemoguardrails.server.experimental.cli.serve(
manifest: pathlib.Path = typer.Argument(..., help='D...,
host: str = typer.Option('127.0.0.1', h...,
port: int = typer.Option(8000, min=0, m...,
timeout_graceful_shutdown: int = typer.Option(30, min=1, hel...
) -> None

Run the existing application with fixed bindings and lifespan ownership.

nemoguardrails.server.experimental.cli.validate(
manifest: pathlib.Path = typer.Argument(..., help='D...
) -> None

Check manifest data, directories and routing without loading Rails code.

nemoguardrails.server.experimental.cli.app = typer.Typer(no_args_is_help=True, pretty_exceptions_enable=False, help='Validate...