gws.base.action.cli

CLI commands to invoke and profile web actions.

Source code: gws.base.action.cli

Module Contents

class gws.base.action.cli.InvokeRequest(*args, **kwargs)

Bases: gws.Request

Parameters of the actionInvoke and actionProfile CLI commands.

cmd: str

API command name, for example mapDescribeLayer.

params: str

Command parameters in SLON format.

class gws.base.action.cli.Object

Bases: gws.Node

CLI commands for web actions.

Invokes an API command from the command line and prints the response, or runs it with the profiler and saves the statistics.

invoke(p: InvokeRequest)

Invoke an API command and print the response as JSON.

profile(p: InvokeRequest)

Run an API command with the profiler and save the statistics.