Skip to main content

A package that provides helper functions for generating BambuLabs printer commands

Project description

OpenBambuCommands

GitHub License PyPI - Version Code style: black

OpenBambuCommands is a Python package that provides helper functions to return the strings for BambuLabs printers in an easy, hassle-free way. No more fighting with string formatting!

This builds off of the work documented in OpenBambuAPI

Installation

You can install OpenBambuCommands using pip:

pip install openbambucommands

Usage

Here's a quick example of how to use OpenBambuCommands:

from openbambucommands.mqtt import ledctrl

# get the command to turn the light on
command = ledctrl.set_light(True)

Development

To set up the development environment:

  1. Clone the repository
  2. Create and activate a virtual environment
  3. Install the package with development dependencies:
pip install -e .[dev]
  1. Install pre-commit:
pre-commit install
  1. Run tests:
# run with unittest
python -m unittest

# run with pytest
pytest

Contributing

Contributions are welcome, feel free to open Issues or PRs

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

openbambucommands-0.2.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

openbambucommands-0.2.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file openbambucommands-0.2.0.tar.gz.

File metadata

  • Download URL: openbambucommands-0.2.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for openbambucommands-0.2.0.tar.gz
Algorithm Hash digest
SHA256 451d18054e3fcd6f0d58208b8c93bd0a245f5d28b0069be933628cc28ad26774
MD5 7bcf6baa10fd89ed1f1a249bac92ef2d
BLAKE2b-256 f7214336d83f8dc920a3dfbee92e66c12cb2b785bfbe84764789262e5aa6bae1

See more details on using hashes here.

File details

Details for the file openbambucommands-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openbambucommands-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f429e6daf13b16ecb1d5b5876421af9ade45869a6eb25be16071d9a17d53a9c9
MD5 fde23324793838ab80a5d4af11b63687
BLAKE2b-256 e74eb89f2894f401c380d24ba8197d811dcf831edf3e656c8eeddd19f60c9e2b

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