CLI tool for use with Bambu Printers
Project description
bambu-cli
A command-line interface for controlling Bambu Lab 3D printers via MQTT and FTPS protocols.
Features
- Connect to Bambu Lab printers over local network or Bambu Cloud
- Upload print files to local printer
- Trigger print and track progress
- Pause, resume and cancel print in progress
Disclaimer
This tool is in a development state and is likely to have missing features, bugs and changes. Use freely within the terms of the license, but at your own risk
Installation
Either as a Python library:
pip install bambu-cli
or as a Docker image:
docker pull thegeektechworkshop/bambu-cli
Usage
If using the Docker image, it is recommended to create a shell script wrapper such as:
#!/usr/bin/env bash
docker run -it -v ~/.bambu-cli:/root/.bambu-cli -v $PWD:/root -w /root thegeektechworkshop/bambu-cli $@
You can add a printer available directly on your local network: (ip, serial-number, access-code):
bambu add-local 192.168.1.100 01ABCD123456789 12345678 --name myP1S
Or you can login to your Bambu Cloud account...:
pdm run bambu-cli login --email user@example.com --password mypassword
... and then add a printer already associated with that account:
pdm run bambu-cli add-cloud
Upload a file to print:
bambu upload myP1S my_print.gcode.3mf
Print the file
bambu print myP1S my_print.gcode.3mf
AMS is supported, to enable it add the filament-slot mapping:
bambu print myP1S my_print.gcode.3mf --ams 2 x 0
While print is in progress:
- Press 'p' to pause the print job
- Press 'r' to resume a paused print job
- Press 'c' to cancel the print job
- Press 'q' to exit the interface without affecting the print job
License
GNU 3.0 License - see LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bambu_cli-0.2.2-py3-none-any.whl.
File metadata
- Download URL: bambu_cli-0.2.2-py3-none-any.whl
- Upload date:
- Size: 33.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.21.0 CPython/3.12.7 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4add1579bfeba9fd9690b561cebc7785475f4a329f03284b9bef4a84f7b3c3e7
|
|
| MD5 |
8e5481cffe24247f909c4e27ff9e87b5
|
|
| BLAKE2b-256 |
e00f499c5499e4fdd6c1cb2ba26a5dbf2b2e9b7fb0e85244a69fb1361ec3a741
|