Skip to main content

A simple gcode sender

Features:

  • fast (buffered)
  • simple to use
  • easy to tune to your device (one simple & clean Python file)
  • works well on a raspberry pi (tested with "old" Python versions)

Usage: sgs <gcode_filename> <serial_device>

Note: if you see any output, it means there are errors occurring, try tweaking those two values:

BUFFER_SIZE = 10 # you can try to reduce this
BUFFER_FULL_PAUSE_DURATION = 0.01 # you can try to increase that

On the other hand, if you have a really fast hardware, you can do the opposite until you get some errors (prioritize BUFFER_FULL_PAUSE_DURATION over BUFFER_SIZE: buffered data may get replayed on error which may lead to undesired behavior (duplicate gcodes).

Metadata

Release files for simple-gcode-sender 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-gcode-sender 1.0.0
File Size Uploaded
simple_gcode_sender-1.0.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-gcode-sender 1.0.0
File Interpreter ABI Platform
simple_gcode_sender-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.8 kB

Release files / simple_gcode_sender-1.0.0.tar.gz

Download URL simple_gcode_sender-1.0.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
39cc0c08a634560341c41486cee414bfbe2acb9ad2703ce3ce3b160e95ceab8e
BLAKE2b-256 checksum
How to use checksums
b3602f10a40f08954d59c15b4d9f0bf9587aa70521be2bdfb070704cc37abed8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.4.10-zen2-1-zen

Release files / simple_gcode_sender-1.0.0-py3-none-any.whl

Download URL simple_gcode_sender-1.0.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cea765d1f4aba40d87b449c31a23d03d942a87768ba6c0cde6fab8f4168d8d79
BLAKE2b-256 checksum
How to use checksums
da9f132cc1d4f6f1171e2b51abb379cc0d43f9b103c09b4355a9a973a0b68b8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.4.10-zen2-1-zen

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page