{ "schema_version": 1, "sdk_id": "printkit", "version": "0.1.1", "modules": { "printkit": { "exports": [ "ConfigError", "DEFAULT_ID", "IppError", "PrintKitError", "Printer", "PrinterInfo", "PrinterNotFound", "TransportError", "UnsupportedFormat", "client", "configure", "default_id", "default_printer", "errors", "ids", "ipp", "items", "registry", "render", "resolve", "sheet", "__version__" ], "all": [ "ConfigError", "DEFAULT_ID", "IppError", "PrintKitError", "Printer", "PrinterInfo", "PrinterNotFound", "TransportError", "UnsupportedFormat", "client", "configure", "default_id", "default_printer", "errors", "ids", "ipp", "items", "registry", "render", "resolve", "sheet", "__version__" ], "signatures": { "IppError": "(status_code: 'int', status_text: 'str', operation: 'str' = '')", "Printer": "(target: 'str | None' = None, *, timeout: 'float' = 30.0, log=None, info: 'PrinterInfo | None' = None)", "PrinterInfo": "(id: 'str', ip: 'str', name: 'str' = '', port: 'int' = 631, path: 'str' = '/ipp/print', secure: 'bool' = True, note: 'str' = '', extra: 'dict' = ) -> None", "configure": "(path: 'str | os.PathLike | None' = None, printers: 'list[dict] | None' = None, default: 'str | None' = None) -> 'list[dict]'", "default_id": "() -> 'str'", "default_printer": "(**kw) -> 'Printer'", "ids": "() -> 'list[str]'", "items": "() -> 'list[dict]'", "resolve": "(target: 'str | None' = None) -> 'PrinterInfo'" } }, "printkit.__main__": { "exports": [ "PrintKitError", "Printer", "annotations", "argparse", "cmd_info", "cmd_list", "cmd_send", "json", "main", "registry", "sys" ], "all": [], "signatures": { "Printer": "(target: 'str | None' = None, *, timeout: 'float' = 30.0, log=None, info: 'PrinterInfo | None' = None)", "cmd_info": "(args) -> 'int'", "cmd_list": "(args) -> 'int'", "cmd_send": "(args, use_sheet: 'bool') -> 'int'", "main": "(argv: 'list[str] | None' = None) -> 'int'" } }, "printkit._selftest": { "exports": [ "CASES", "Path", "annotations", "case", "ipp", "main", "os", "sys", "tempfile", "traceback" ], "all": [], "signatures": { "Path": "(*args, **kwargs)", "case": "(name: 'str')", "main": "(argv: 'list[str] | None' = None) -> 'int'" } }, "printkit.client": { "exports": [ "IppError", "MSG_ENCODER", "Path", "PrintKitError", "Printer", "PrinterInfo", "UnsupportedFormat", "annotations", "default_printer", "ipp", "registry", "time" ], "all": [], "signatures": { "IppError": "(status_code: 'int', status_text: 'str', operation: 'str' = '')", "Path": "(*args, **kwargs)", "Printer": "(target: 'str | None' = None, *, timeout: 'float' = 30.0, log=None, info: 'PrinterInfo | None' = None)", "PrinterInfo": "(id: 'str', ip: 'str', name: 'str' = '', port: 'int' = 631, path: 'str' = '/ipp/print', secure: 'bool' = True, note: 'str' = '', extra: 'dict' = ) -> None", "default_printer": "(**kw) -> 'Printer'" } }, "printkit.errors": { "exports": [ "ConfigError", "IppError", "PrintKitError", "PrinterNotFound", "TransportError", "UnsupportedFormat", "annotations" ], "all": [], "signatures": { "IppError": "(status_code: 'int', status_text: 'str', operation: 'str' = '')" } }, "printkit.ipp": { "exports": [ "OP_CANCEL_JOB", "OP_CREATE_JOB", "OP_GET_JOBS", "OP_GET_JOB_ATTRIBUTES", "OP_GET_PRINTER_ATTRIBUTES", "OP_PRINT_JOB", "OP_SEND_DOCUMENT", "OP_VALIDATE_JOB", "STATUS_TEXT", "SUCCESS_CODES", "T_BOOLEAN", "T_CHARSET", "T_END", "T_ENUM", "T_INTEGER", "T_JOB", "T_KEYWORD", "T_LANGUAGE", "T_MIME", "T_NAME", "T_OPERATION", "T_STRING", "T_URI", "TransportError", "annotations", "attr", "build_request", "decode_value", "flatten", "parse_response", "post", "socket", "ssl", "struct" ], "all": [], "signatures": { "attr": "(tag: 'int', name: 'bytes | str', value: 'bytes | str | int') -> 'bytes'", "build_request": "(op: 'int', uri: 'str', operation_attrs: 'list[bytes] | None' = None, job_attrs: 'list[bytes] | None' = None, req_id: 'int' = 1, user: 'str' = '37du-plugin') -> 'bytes'", "decode_value": "(tag: 'int', raw: 'bytes')", "flatten": "(attrs: 'dict[str, list[tuple[int, bytes]]]') -> 'dict[str, list]'", "parse_response": "(payload: 'bytes') -> 'tuple[int, dict[str, list[tuple[int, bytes]]]]'", "post": "(host: 'str', port: 'int', path: 'str', body: 'bytes', document: 'bytes' = b'', secure: 'bool' = True, timeout: 'float' = 30.0) -> 'tuple[int, bytes]'" } }, "printkit.registry": { "exports": [ "BUILTIN", "ConfigError", "DEFAULT_ID", "ENV_PRINTERS", "Path", "PrinterInfo", "PrinterNotFound", "annotations", "configure", "dataclass", "default_id", "field", "ids", "items", "json", "os", "re", "resolve" ], "all": [], "signatures": { "Path": "(*args, **kwargs)", "PrinterInfo": "(id: 'str', ip: 'str', name: 'str' = '', port: 'int' = 631, path: 'str' = '/ipp/print', secure: 'bool' = True, note: 'str' = '', extra: 'dict' = ) -> None", "configure": "(path: 'str | os.PathLike | None' = None, printers: 'list[dict] | None' = None, default: 'str | None' = None) -> 'list[dict]'", "dataclass": "(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)", "default_id": "() -> 'str'", "field": "(*, default=, default_factory=, init=True, repr=True, hash=None, compare=True, metadata=None, kw_only=)", "ids": "() -> 'list[str]'", "items": "() -> 'list[dict]'", "resolve": "(target: 'str | None' = None) -> 'PrinterInfo'" } }, "printkit.render": { "exports": [ "BytesIO", "DEFAULT_DPI", "DEFAULT_QUALITY", "PDF_MAGIC", "Path", "PrintKitError", "annotations", "image_to_jpeg", "pdf_to_jpegs", "to_jpegs" ], "all": [], "signatures": { "BytesIO": "(initial_bytes=b'')", "Path": "(*args, **kwargs)", "image_to_jpeg": "(src, quality: 'int' = 92, dpi: 'int' = 300, max_side: 'int | None' = None) -> 'bytes'", "pdf_to_jpegs": "(src, dpi: 'int' = 300, quality: 'int' = 92) -> 'list[bytes]'", "to_jpegs": "(src, dpi: 'int' = 300, quality: 'int' = 92) -> 'list[bytes]'" } }, "printkit.sheet": { "exports": [ "A4_H", "A4_W", "BytesIO", "CLOSERS", "ERR_RE", "ERR_WORDS", "FONT_CANDIDATES", "NUM_RE", "Path", "PrintKitError", "TablePDF", "annotations", "build_pdf", "find_column", "fmt_value", "is_bad", "math", "re", "read_rows", "render_table", "total_of" ], "all": [], "signatures": { "BytesIO": "(initial_bytes=b'')", "Path": "(*args, **kwargs)", "TablePDF": "(title: 'str' = '', fontsize: 'float' = 9.0, margin: 'float' = 42.0, landscape: 'bool' = False)", "build_pdf": "(src, sheet: 'str | None' = None, col: 'str | None' = None, header_row: 'int' = 2, key_row: 'int | None' = 1, title: 'str' = '', drop_bad: 'bool' = True, total: 'bool' = False, landscape: 'bool' = False, fontsize: 'float' = 9.0) -> 'bytes'", "find_column": "(ws, key: 'str', header_row: 'int') -> 'int'", "fmt_value": "(v) -> 'str'", "is_bad": "(v) -> 'bool'", "read_rows": "(src, sheet: 'str | None' = None, col: 'str | None' = None, header_row: 'int' = 2, key_row: 'int | None' = 1, drop_bad: 'bool' = True) -> 'tuple[list[list[str]], list[list[str]]]'", "render_table": "(header_rows: 'list[list[str]]', rows: 'list[list[str]]', title: 'str' = '', total: 'bool' = False, landscape: 'bool' = False, fontsize: 'float' = 9.0) -> 'bytes'", "total_of": "(rows: 'list[list[str]]', ncol: 'int') -> 'list[str]'" } } } }