Skip to main content

virtual-extruders

https://img.shields.io/pypi/v/virtual-extruders.svg https://img.shields.io/pypi/status/virtual-extruders.svg https://img.shields.io/pypi/format/virtual-extruders.svg https://img.shields.io/pypi/pyversions/virtual-extruders.svg https://img.shields.io/pypi/l/virtual-extruders.svg

Overview

Convert G-code for a multi-extruder 3D printer to single extruder, substituting tool selection with manual filament change.

Requirements

Installation

Pip

pip install virtual-extruders

Portable

Copy virtual_extruders.py to any directory and make it executable.

install -m755 -D -t ~/.config/PrusaSlicer/scripts virtual_extruders.py

Usage

CLI

The command-line interface can be used with virtual-extruders if it was installed with a package manager or with /path/to/virtual_extruders.py otherwise.

> ./virtual_extruders.py -h
usage: virtual_extruders.py [-h] [-V] [-i] [-f] [-g GCODE [GCODE ...]] file

positional arguments:
  file                  g-code file

options:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -i, --in-place        edit the file in place
  -f, --skip-first      skip first tool change
  -g, --tool-change-gcode GCODE [GCODE ...]
                        set tool change g-code (default: [';TOOL_CHANGE',
                        'M117 Insert filament [next_extruder] and resume
                        printing', 'M600', ';TOOL_CHANGE_END'])

PrusaSlicer

To use this program as a post-processing script in PrusaSlicer, add the following line to the Post-processing scripts parameter in Print Settings → Output options:

virtual-extruders -i -f

For more detailed configuration instructions and a test model, see How to change filament mid-layer.

Development

Installation

python -m venv env
source env/bin/activate
pip install --group dev -e .

Building

python -m build

Testing

coverage run && coverage report

Linting

ruff check && mypy

Uploading

twine upload dist/*

Licenses

Metadata

Release files for virtual-extruders 0.1.1

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

Source distribution (sdist)

Source distribution for virtual-extruders 0.1.1
File Size Uploaded Provenance Actions
virtual_extruders-0.1.1.tar.gz 23.7 kB Without provenance Details for virtual_extruders-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for virtual-extruders 0.1.1
File Interpreter ABI Platform Actions
virtual_extruders-0.1.1-py3-none-any.whl Python 3 none any Details for virtual_extruders-0.1.1-py3-none-any.whl

Total release size: 30.1 kB

Release files / virtual_extruders-0.1.1.tar.gz

Download URL virtual_extruders-0.1.1.tar.gz
Size 23.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2297d49455db18f913b879c1240462e162fc69035007ffac172db90152cc5921
BLAKE2b-256 checksum
How to use checksums
7a5c0e359d8294ba50c51a3f46852ca1c178a03ed3c44ab516451d1e60e4fa89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / virtual_extruders-0.1.1-py3-none-any.whl

Download URL virtual_extruders-0.1.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e75caa82cc92d1da9593dad82ce851ac018f6f3cceecb05b4251c23c7d204f1a
BLAKE2b-256 checksum
How to use checksums
9cf616dfbeda11cd6548ccb8db1857b01df31f093dcf0c371f3504e734cd03b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for virtual-extruders 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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