gws.base.printer.action

Provides the printing API.

Source code: gws.base.printer.action

Module Contents

class gws.base.printer.action.CliParams(*args, **kwargs)

Bases: gws.CliParams

CLI params

output: str

output path

project: str | None

project uid

request: str

path to request.json

class gws.base.printer.action.Config(*args, **kwargs)

Bases: gws.base.action.Config

Configuration for the printer action.

class gws.base.printer.action.Object

Bases: gws.base.action.Object

Generic action object, the parent of all action objects.

print(p: CliParams)

Print using the specified params

printer_cancel(req: gws.WebRequester, p: gws.JobRequest) gws.JobStatusResponse
printer_output(req: gws.WebRequester, p: gws.JobRequest) gws.ContentResponse
printer_start(req: gws.WebRequester, p: gws.PrintRequest) gws.JobStatusResponse

Start a background print job

printer_status(req: gws.WebRequester, p: gws.JobRequest) gws.JobStatusResponse
class gws.base.printer.action.Props(*args, **kwargs)

Bases: gws.base.action.Props

Object properties.