Welcome to mecode_viewer
Installation
pip install mecode_viewer
Getting Started
Example: simplest case
All that is needed to run mecode_viewer is to provide a path to your gcode file. By default, mecode_viewer assumes you're using a Nordson pressure controller to control ink extrusion.
from mecode_viewer import mecode_viewer
mecode_viewer(file_name='gcode_file.pgm')
Example: custom extrusion command
Linear actuators are also often used to control ink extrusion during printing. This example shows how we can provide a custom extrude_cmd to specify when extrusion starts and stops. E.g., if linear actuator #5 is typically run using FREERUN PDISP5 2.5 and stopped using FREERUN PDISP5 STOP, we can simply set extrude_cmd='FREERUN PDISP5'.
from mecode_viewer import mecode_viewer
mecode_viewer(file_name='gcode_file.pgm', extrude_cmd='FREERUN PDISP5')
Example: animated visualization
By default mecode_viewer will display a 3D figure of your gcode toolpath. If you would like to view an animated version, set animate=True.
from mecode_viewer import mecode_viewer
mecode_viewer(file_name='gcode_file.pgm', animate=True)
Example: mixing, multimaterial printing
If extrude_cmd is provided with a list or tuple with more than one entry, mecode_viewer will generate a figure color coded for each extrusion source.
from mecode_viewer import mecode_viewer
mecode_viewer('gcode_file.pgm',
extrude_cmd=('PDISP1', 'PDISP2'),
extrude_stop_cmd=('PDISP1 STOP', 'PDISP2 STOP'))
!!! warning
This currently only work for two extrusion sources. We plan to add support for more extruders / more colors.
Want to learn more?
Full documenation of mecode_viewer available at API Reference.
License
mecode_viewer is distributed under the terms of the MIT license.
Metadata
Release files for mecode-viewer 0.3.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mecode_viewer-0.3.14.tar.gz | 13.1 kB | Without provenance | Details for mecode_viewer-0.3.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mecode_viewer-0.3.14-py3-none-any.whl | Python 3 | none | any | Details for mecode_viewer-0.3.14-py3-none-any.whl |
Total release size: 26.5 kB
Release files / mecode_viewer-0.3.14.tar.gz
| Download URL | mecode_viewer-0.3.14.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
148b57c9ec952b30602612202dc60a6d2dd756c142377a0851c491d98184ab1e
|
|
BLAKE2b-256 checksum How to use checksums |
3f701c66e0bd89cfe48c459ae41522fd82bd5ae2c367b66e9193ca70bb8f53cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.26.0
|
Release files / mecode_viewer-0.3.14-py3-none-any.whl
| Download URL | mecode_viewer-0.3.14-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c9443f3937c29f75294d2df2b5b5424f28224b01b420a24253eac463bf72563
|
|
BLAKE2b-256 checksum How to use checksums |
053b444306ffaab37149642dcbbd038d76d4a69380cff17606fbdec04534f28c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.26.0
|
Security for mecode-viewer 0.3.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.