Skip to main content

Python package used to write to, read from, and interpret g-code files

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

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 command

# initializing marlin.gcode_command instance with string representing g-code line
sample_line = 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

MIT

Project details


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.1.0.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file gcodeBuddy-0.1.0.tar.gz.

File metadata

  • Download URL: gcodeBuddy-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.1

File hashes

Hashes for gcodeBuddy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 adb7e6b756dab0b672fcdcd3be27923205628e1e230f4c4a5d29bf26fdbd4e6e
MD5 b36adae953a955bd219bb4f1045b4999
BLAKE2b-256 177f6a1e7b8e5920dc4d60a901433eb7b9044d866fd17ca244661d3cb5dc4851

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page