gws.base.printer.action

Printer action.

Source code: gws.base.printer.action

Module Contents

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

Bases: gws.CliParams

Parameters for the printerPrint command.

output: str

Output path.

project: str | None

Project uid.

request: str

Path to a JSON file with the print request.

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

Bases: gws.base.action.Config

Runs print jobs in the background and returns their output.

class gws.base.printer.action.Object

Bases: gws.base.action.Object

Printer action.

print(p: CliParams)

Print a request from a JSON file.

printer_cancel(req: gws.WebRequester, p: gws.JobRequest) → gws.JobStatusResponse

Cancel a print job.

printer_output(req: gws.WebRequester, p: gws.JobRequest) → gws.ContentResponse

Return the result file of a completed print job.

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

Return the status of a print job.

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

Bases: gws.base.action.Props

Object properties.