sivicncdriver.gcode module

A module to parse G-codes.

sivicncdriver.gcode.parse(gcode)[source]

Parse gcode.

It yields a dict for each line with :

name
name of the code (G, M)
value
an integer
args
a dict with the code arguments, ex : {‘Y’:3.0}
Parameters:gcode (str) – The gcode which is to be parsed.