Metadata-Version: 2.1
Name: openbambucommands
Version: 0.4.2
Summary: A package that provides helper functions for generating BambuLabs printer commands
Author-email: wolfy <wolfy@shitwolfymakes.com>
Project-URL: Homepage, https://github.com/shitwolfymakes/openbambucommands
Project-URL: Bug Tracker, https://github.com/shitwolfymakes/openbambucommands/issues
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: black; extra == "dev"
Requires-Dist: docformatter[toml]; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: isort; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: pre-commit; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"

# OpenBambuCommands

|                |                                                                                                                                                                                                                                                                                                                                   |
|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Code**       | ![GitHub License](https://img.shields.io/pypi/l/openbambucommands) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) ![ISORT](https://img.shields.io/badge/%20imports-isort-%231674b1)                                                                             |
| **Docstrings** | ![SELF](https://img.shields.io/badge/%20formatter-docformatter-fedcba.svg) ![DOCSTRINGSTYLE](https://img.shields.io/badge/%20style-reStructuredText-459db9.svg)                                                                                                                                                                   |
| **GitHub**     | ![Version](https://img.shields.io/github/v/release/shitwolfymakes/openbambucommands?include_prereleases) [![CI](https://img.shields.io/github/actions/workflow/status/shitwolfymakes/openbambucommands/python-publish.yml?branch=main)](https://github.com/shitwolfymakes/openbambucommands/actions/workflows/python-publish.yml) |
| **PyPi**       | ![PyPI - Version](https://img.shields.io/pypi/v/openbambucommands) ![PYVERS](https://img.shields.io/pypi/pyversions/openbambucommands) ![PYMAT](https://img.shields.io/pypi/format/openbambucommands)                                                                                                                             |

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](https://github.com/Doridian/OpenBambuAPI)

## Installation

You can install OpenBambuCommands using pip:

```
pip install openbambucommands
```

## Usage

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

```python3
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]
```
4. Install `pre-commit`:
```
pre-commit install
```
5. Run tests:
```
# run with unittest
python -m unittest

# run with pytest
pytest
```

## Contributing
Contributions are welcome, feel free to open Issues or PRs
