Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PyPI version

bambu-printer-manager

bambu-printer-manager is an all in one pure python wrapper for interacting with and managing Bambu Lab printers.

Documentation

All documentation for bambu-printer-manager can be found here. DeepWiki is another good source.

Become a Sponsor

While caffiene and sleepness nights drive the delivery of this project, they unfortunately do not cover the financial expense necessary to further its development. Please consider becoming a bambu-printer-manager sponsor today!

Sponsor

Project Composition

bpm/
    bambucommands.py                # collection of constants mainly representing Bambu Lab `mqtt` request commands
    bambuconfig.py                  # contains the `BambuConfig` class used for storing configuration data
    bambuprinter.py                 # the main `bambu-printer-manager` class `BambuPrinter` lives here
    bambuproject.py                 # provides `ActiveJobInfo` and `ProjectInfo` for tracking print job details
    bambuspool.py                   # contains the `BambuSpool` class used for storing spool data
    bambustate.py                   # contains the `BambuState` and `AMSUnitState` classes
    bambutools.py                   # contains a collection of methods used as tools (mostly internal)

    ftpsclient/
        _client.py              # internal class used for performing `FTPS` operations

Dependencies

Python 3.11+

* mkdocstrings, webcolors, and paho-mqtt install automatically as predefined dependencies

Installation

pip install bambu-printer-manager

Basic Usage

import time
import sys
import os

from bpm.bambuconfig import BambuConfig
from bpm.bambuprinter import BambuPrinter
from bpm.bambutools import parseStage, ServiceState

# Setup configuration
config = BambuConfig(
    hostname=os.getenv('BAMBU_HOSTNAME'),
    access_code=os.getenv('BAMBU_ACCESS_CODE'),
    serial_number=os.getenv('BAMBU_SERIAL_NUMBER')
)
printer = BambuPrinter(config=config)

# Start session
printer.start_session()

# Wait for connection
while printer.service_state != ServiceState.CONNECTED:
    time.sleep(1)

# Main loop
while True:
    state = printer.printer_state
    print(f"Tool Temp: {state.active_nozzle_temp}/{state.active_nozzle_temp_target}")
    time.sleep(1)

Need Help?

Open an issue here.

Want to Contribute?

The best way you can contribute to this project is to make a monetary donation to its author. All funds received will go to the purchase of Bambu Lab hardware to support the continued development of this project. Please show your support by becoming a Sponsor today!

Developers are encouraged to submit a Pull Request to devel!

Please make sure to install pre-commit and lint and format your contributions through it:

pip install .[develop]
pre-commit install

Metadata

Release files for bambu-printer-manager 2.0.0rc2

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

Source distribution (sdist)

Source distribution for bambu-printer-manager 2.0.0rc2
File Size Uploaded Provenance Actions
bambu_printer_manager-2.0.0rc2.tar.gz 196.8 kB With provenance Details for bambu_printer_manager-2.0.0rc2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bambu-printer-manager 2.0.0rc2
File Interpreter ABI Platform Actions
bambu_printer_manager-2.0.0rc2-py3-none-any.whl Python 3 none any Details for bambu_printer_manager-2.0.0rc2-py3-none-any.whl

Total release size: 402.8 kB

Release files / bambu_printer_manager-2.0.0rc2.tar.gz

Download URL bambu_printer_manager-2.0.0rc2.tar.gz
Size 196.8 kB
Tags Source
SHA-256 checksum
How to use checksums
deb9c52066734c5a7e4d2945ddb2e3fabb984bef9406f224117190299ee458e8
BLAKE2b-256 checksum
How to use checksums
9e7d153c32d82ecd6579acf5e1e8aa6afe2048ae590d6b34ca6daa5872990b07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / bambu_printer_manager-2.0.0rc2-py3-none-any.whl

Download URL bambu_printer_manager-2.0.0rc2-py3-none-any.whl
Size 206.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da2eeee47e3581e2b3d84319ca31a7c2a4c250f8b8cb5112c37b4f2a10a969fb
BLAKE2b-256 checksum
How to use checksums
d54d36523f9c4d957393081b1a9801336273fef3a35566131cd83739a402bb45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for bambu-printer-manager 2.0.0rc2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bambu_printer_manager-2.0.0rc2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

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