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.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 virtual-extruders 0.1.0
File Size Uploaded Provenance Actions
virtual_extruders-0.1.0.tar.gz 23.7 kB Without provenance Details for virtual_extruders-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 30.1 kB

Release files / virtual_extruders-0.1.0.tar.gz

Download URL virtual_extruders-0.1.0.tar.gz
Size 23.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b5f264fc485fa13c216d6b64e1dc9788935e2780d27d8db04f6ee10ee980059d
BLAKE2b-256 checksum
How to use checksums
88365eebe7d70efa9e0bf832569d01c1c1bf4d7d7a852d3bdd8f1788102ae993
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.0-py3-none-any.whl

Download URL virtual_extruders-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a55cc7fd41e4fb218c4fd2490e11e6b12b601df62bed93fe1c6977fe682915c9
BLAKE2b-256 checksum
How to use checksums
1e634e6831acbbe3b5c939afdee191e614b83eb35824355b8abd91bd22ed4d00
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.0

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.0 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