PrinterNamespace¶
pymoonraker.api.PrinterNamespace
¶
Klipper printer administration.
Auto-generated from schema/moonraker_api.yaml.
Source code in src/pymoonraker/api/_generated.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
emergency_stop
async
¶
emergency_stop() -> str
Immediately halt the printer.
Source code in src/pymoonraker/api/_generated.py
67 68 69 70 | |
firmware_restart
async
¶
firmware_restart() -> str
Restart Klipper via firmware restart (MCU reset).
Source code in src/pymoonraker/api/_generated.py
77 78 79 80 | |
gcode_help
async
¶
gcode_help() -> builtins.dict[str, str]
List all available G-code commands with descriptions.
Source code in src/pymoonraker/api/_generated.py
94 95 96 97 | |
gcode_script
async
¶
gcode_script(script: str) -> str
Execute a G-code script.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
script
|
str
|
G-code to execute |
required |
Source code in src/pymoonraker/api/_generated.py
82 83 84 85 86 87 88 89 90 91 92 | |
info
async
¶
info() -> PrinterInfo
Get Klipper host information (state, hostname, versions).
Source code in src/pymoonraker/api/_generated.py
62 63 64 65 | |
objects_list
async
¶
objects_list() -> PrinterObjectList
List all available printer objects.
Source code in src/pymoonraker/api/_generated.py
99 100 101 102 | |
objects_query
async
¶
objects_query(objects: dict[str, list[str] | None]) -> PrinterObjectsStatusResponse
Query printer object status.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
objects
|
dict[str, list[str] | None]
|
Mapping of object name to list of fields (or None for all fields) |
required |
Source code in src/pymoonraker/api/_generated.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
objects_subscribe
async
¶
objects_subscribe(objects: dict[str, list[str] | None]) -> PrinterObjectsStatusResponse
Subscribe to printer object status updates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
objects
|
dict[str, list[str] | None]
|
Objects and fields to subscribe to |
required |
Source code in src/pymoonraker/api/_generated.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |
print_cancel
async
¶
print_cancel() -> str
Cancel the current print.
Source code in src/pymoonraker/api/_generated.py
156 157 158 159 | |
print_pause
async
¶
print_pause() -> str
Pause the current print.
Source code in src/pymoonraker/api/_generated.py
146 147 148 149 | |
print_resume
async
¶
print_resume() -> str
Resume a paused print.
Source code in src/pymoonraker/api/_generated.py
151 152 153 154 | |
print_start
async
¶
print_start(filename: str) -> str
Start printing a file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
str
|
Path to the G-code file to print |
required |
Source code in src/pymoonraker/api/_generated.py
134 135 136 137 138 139 140 141 142 143 144 | |
restart
async
¶
restart() -> str
Soft-restart Klipper host software.
Source code in src/pymoonraker/api/_generated.py
72 73 74 75 | |