API for BambuLab 3D Printers over MQTT
Project description
Bambulabs API
This package provides a Python API for the Bambulabs 3D Printers.
Status
Documentation
The documentation for this package can be found here.
Usage
To use the package, run the following command in the terminal:
pip install bambulabs_api
Examples
import bambulabs_api as bl
IP = '192.168.1.200'
SERIAL = 'AC12309BH109'
ACCESS_CODE = '12347890'
if __name__ == '__main__':
print('Starting bambulabs_api example')
print('Connecting to Bambulabs 3D printer')
print(f'IP: {IP}')
print(f'Serial: {SERIAL}')
print(f'Access Code: {ACCESS_CODE}')
# Create a new instance of the API
printer = bl.Printer(IP, ACCESS_CODE, SERIAL)
# Connect to the Bambulabs 3D printer
printer.connect()
# Get the printer status
status = printer.get_state()
print(f'Printer status: {status}')
# Disconnect from the Bambulabs 3D printer
printer.disconnect()
Development
To install the package, make sure conda is installed and then run the following commands in the terminal:
# Clone the repository
git clone https://github.com/acse-ci223/bambulabs_api.git
# Change directory
cd bambulabs_api
# Create the 'parally' environment
conda env create -f environment.yml
# Activate the environment
conda activate blapi
# Install the package
pip install -e .
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 Distribution
bambulabs_api-2.4.2.tar.gz
(3.0 MB
view details)
Built Distribution
File details
Details for the file bambulabs_api-2.4.2.tar.gz
.
File metadata
- Download URL: bambulabs_api-2.4.2.tar.gz
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bf577a8ce46c850878295082068c522067914847b4088c5ef0efa07ebd60248 |
|
MD5 | 33100a10f05d395f7c133a345eca1c94 |
|
BLAKE2b-256 | f5189f247837034ba784a048f2634e08d7eba954ed123d0b52d32d57fb5a684d |
File details
Details for the file bambulabs_api-2.4.2-py3-none-any.whl
.
File metadata
- Download URL: bambulabs_api-2.4.2-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d720b27f03391bd1b32bd0fe6f27dc646c3b8e844755f6a7af3a5d71bed485cc |
|
MD5 | 44daaf80740b8514e49b658b00180048 |
|
BLAKE2b-256 | c55eca114ae6d307630c97c03344b3f168207a0ea94167afd39ec079ca8d91a9 |