Skip to content

v1.0.0

Choose a tag to compare

@hyiger hyiger released this 04 Mar 02:28
· 27 commits to main since this release
66f5d32

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 .gcode and 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)