v1.0.0
gcode-lib 1.0.0
Initial stable release of gcode-lib — a stdlib-only Python library for parsing, analysing, and transforming G-code files.
Highlights
- Load/save plain-text
.gcodeand Prusa binary.bgcode(DEFLATE, Heatshrink, MeatPack) - XY transforms — translate, rotate, skew, arbitrary transform, layer-selective, arc-safe translation
- Arc linearization — G2/G3 → G1 with configurable chord/sweep
- G91 → G90 conversion — normalize relative moves before transforming
- Statistics — bounding box, move/arc/travel counts, layer iteration
- Bed placement — out-of-bounds detection, recenter/fit to bed
- Printer & filament presets — 6 Prusa printers, 14 filament profiles, auto-detection from G-code
- PrusaSlicer CLI — executable discovery, capability probing, single and batch slicing
- PrusaLink API — printer status, job management, file upload
- Template rendering — PrusaSlicer-compatible variable substitution
- Thumbnail encoding — PrusaSlicer-compatible comment blocks
Requirements
- Python 3.10+
- No third-party dependencies (stdlib only)