Skip to main content

CLI tool for use with Bambu Printers

Project description

bambu-cli

A command-line interface for controlling Bambu Lab 3D printers via MQTT, HTTPS and FTPS protocols.

Features

  • Connect to Bambu Lab printers over LAN 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 from pip:

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:

bambu add-local 

Or you can login to your Bambu Cloud account...:

bambu login user@example.com --password mypassword

... and then add a printer already associated with that account:

bambu add-cloud

Print a file. If the printer can be found on the local network it will be uploaded via FTPS first

bambu print myP1S my_print.gcode.3mf

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

AMS is supported. To enable it add the filament-slot mapping:

bambu print myP1S my_print.gcode.3mf --ams 2 x 0

3mf project files can be interrogated for useful information:

bambu 3mf my_print.gcode.3mf
Model: P1S
Nozzle Diameter: 0.4
Filament Type: PLA
Filament Amount: 5.17g
Print Time: 00:14:55

License

GNU 3.0 License - see LICENSE file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bambu_cli-0.4.1.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bambu_cli-0.4.1-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file bambu_cli-0.4.1.tar.gz.

File metadata

  • Download URL: bambu_cli-0.4.1.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.22.0 CPython/3.12.8 Linux/6.8.0-1017-azure

File hashes

Hashes for bambu_cli-0.4.1.tar.gz
Algorithm Hash digest
SHA256 6b1527a92b2f88e0b30309257414810d6de974f9984cc7c8b8bcdcbcda785c33
MD5 365a4c428a4187d2ccccd3b7ce72335b
BLAKE2b-256 6a1351d299554d4d4c23181799075140c6d6f68c71fdc45f9db9ad55dc769455

See more details on using hashes here.

File details

Details for the file bambu_cli-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: bambu_cli-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.22.0 CPython/3.12.8 Linux/6.8.0-1017-azure

File hashes

Hashes for bambu_cli-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 869935cfe634a8e2242dcc2a4781d6937f15a1358b4c904b7f09d0aa906eb99d
MD5 0c5a7f5727bece4fbbf69138cb74dd9e
BLAKE2b-256 5cf089efb0d2ff417d6246e570a1a9b66adb83999a95cb7316544c4ee24afc3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page