Python package used to write to, read from, and interpret g-code files
Project description
gcodeBuddy
gcodeBuddy is a python library intended to ease the process of writing, reading, and interpreting g-code files, particularly geared towards 3D printer g-code.
Installation
Use the package manager pip to install gcodeBuddy.
pip install gcodeBuddy
Usage
# imports marlin.gcode_command class
from gcodeBuddy.marlin import gcode_command
# initializing marlin.gcode_command instance with string representing g-code line
sample_line = gcode_command("G0 X12.3 Y45.6")
# returns "G0"
sample_line.get_command()
# returns True
sample_line.has_param("X")
# returns 12.3
sample_line.get_param("X")
sample_line.set_param("X", 32.1)
# returns 32.1
sample_line.get_param("X")
Supported G-code Flavors
Marlin
Contributions
Pull requests are more than welcome. For most cases, open an issue first to discuss what you would like to change.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gcodeBuddy-0.0.8.tar.gz
(4.2 kB
view hashes)