Skip to main content

A package that provides helper functions for generating BambuLabs printer commands

Project description

OpenBambuCommands

Code GitHub License Code style: black ISORT
Docstrings SELF DOCSTRINGSTYLE
GitHub Version CI
PyPi PyPI - Version PYVERS PYMAT

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.3.6.tar.gz (4.7 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.3.6-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for openbambucommands-0.3.6.tar.gz
Algorithm Hash digest
SHA256 b6af6134cf4f34ac7df5c9b8b519185b4f0f4f626331574b323a7c01776f1139
MD5 d97d1e9bc7314fa37561bae06088d3da
BLAKE2b-256 59ae050fa3bd92aa9d5b7842068a33c0c07739d9cf43733dea0e52d3aa8fdd48

See more details on using hashes here.

Provenance

The following attestation bundles were made for openbambucommands-0.3.6.tar.gz:

Publisher: python-publish.yml on shitwolfymakes/openbambucommands

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for openbambucommands-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4a4dbf58536ea9902aaf40ced56c4c83243f8e6f7be1ad0ae9b23424951b7fad
MD5 1a61cb55f909c685c5476317818dc510
BLAKE2b-256 06ce3f4df070eb6d8a5f5e97ba24d208b052e97d2cfc012d204ccf96608f6de5

See more details on using hashes here.

Provenance

The following attestation bundles were made for openbambucommands-0.3.6-py3-none-any.whl:

Publisher: python-publish.yml on shitwolfymakes/openbambucommands

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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