# Complete installation (includes all features)
pip install bambu-lab-cloud-api
# With development tools only
pip install bambu-lab-cloud-api[dev]Note: As of v1.0.4, the base install includes all features (API, MQTT, camera, proxy server).
No need for [server] or [all] extras anymore!
# Install directly from GitHub main branch
pip install git+https://github.com/coelacant1/Bambu-Lab-Cloud-API.git# Clone the repository
git clone https://github.com/coelacant1/Bambu-Lab-Cloud-API.git
cd Bambu-Lab-Cloud-API
# Install in development mode
pip install -e .
# Or with development tools
pip install -e ".[dev]"cd tests
cp test_config.json.example test_config.json
# Edit test_config.json with your credentialscd servers
cp proxy_tokens.json.example proxy_tokens.json
# Edit proxy_tokens.json with your token mappingscd servers
cp compatibility_config.json.example compatibility_config.json
# Edit compatibility_config.json with your credentials# Test the library
python -c "from bambulab import BambuClient; print('Success!')"
# Run comprehensive tests
cd tests
python test_comprehensive.pyAfter installation, you can use the command-line tools:
# Query printer status
bambu-query --help
# Monitor printer in real-time
bambu-monitor --help
# View camera feed
bambu-camera --helprequests>=2.25.0- HTTP API callspaho-mqtt>=1.6.0- MQTT communicationopencv-python>=4.0.0- Camera streamingflask>=2.0.0- Proxy serverflask-cors>=3.0.0- CORS supportflask-limiter>=3.5.0- Rate limiting
pytest>=7.0.0- Testing frameworkpytest-cov>=4.0.0- Coverage reporting
Install with: pip install bambu-lab-cloud-api[dev]
If you get import errors, ensure the package is installed:
pip install -e .Install all dependencies:
pip install -r requirements.txtOn Linux/Mac, you may need to use pip3 instead of pip:
pip3 install -e .