semvec/pypi-packages huggingface dataset:
prusa2mqtt 0.5
Command line tool that parses the USB serial output of a Prusa printer and publishes the sensor values and progress to an MQTT server.
License: MIT
Keywords: 3d printing,serial,prusa,mqtt

# prusa2mqtt

Command line tool that parses the USB serial output of a Prusa 3D printer and publishes the sensor values and progress to an MQTT server.

The difference between this script and the MQTT plugin for Octoprint is, that this script only connects once to the /dev/ttyACM0 port and the connection doesn't abort if you power down the printer.


Install:
--------
```bash
pip install prusa2mqtt
```

```bash
prusa2mqtt --help
```

```
usage: prusa2mqtt [-h] [--topic TOPIC] [--client_id CLIENT_ID]
                     [--check_interval CHECK_INTERVAL]
                     [--serial_port SERIAL_PORT] [--mqtt_address MQTT_ADDRESS]
                     [--mqtt_port MQTT_PORT] [--mqtt_username MQTT_USERNAME]
                     [--mqtt_password MQTT_PASSWORD]
                     [--discrete_topics DISCRETE_TOPICS]

Log temperature data and progress from the USB port of a Prusa printer to an MQTT server.

optional arguments:
  -h, --help            show this help message and exit
  --serial_port SERIAL_PORT
                        Path to the serial port device. (default: /dev/ttyACM0)
  --topic TOPIC         Topic for the MQTT message. (default: prusa)
  --client_id CLIENT_ID
                        Distinct client ID for the MQTT connection. (default: prusa2mqtt)
  --check_interval CHECK_INTERVAL
                        Interval in seconds for checking the temperatures. (default: 5)
  --serial_port SERIAL_PORT
                        Path to the serial port device.
  --mqtt_address MQTT_ADDRESS
                        Address for the MQTT connection. (default: localhost)
  --mqtt_port MQTT_PORT
                        Port for the MQTT connection. (default: 1883)
  --mqtt_username MQTT_USERNAME
                        User name for the MQTT connection. (default: None)
  --mqtt_password MQTT_PASSWORD
                        Password name for the MQTT connection. (default: None)
  --discrete_topics DISCRETE_TOPICS
                        Post sensor data to discrete topics instead of one JSON payload. (default: False)
```

Send GCODE over MQTT:
--------
```
You can also send GCODE to your printer if you publish something to $TOPIC/gcode
```
example-package-lth 0.1.0
An example Python package
License: MIT
Requires Python: >=3.9,<4.0
Keywords: example

# Python Example Package
[![Tests](https://github.com/letuanhai/python-example-package-lth/workflows/Tests/badge.svg)](https://github.com/letuanhai/python-example-package-lth/actions?workflow=Tests)
[![Codecov](https://codecov.io/gh/letuanhai/python-example-package-lth/branch/master/graph/badge.svg)](https://codecov.io/gh/letuanhai/python-example-package-lth)
[![PyPI](https://img.shields.io/pypi/v/hypermodern-python.svg)](https://pypi.org/project/letuanhai/python-example-package-lth/)

Clone of cjolowicz/hypermodern-python

Making an example package using *modern* Python toolchain.
To quick start with a [Cookiecutter](https://github.com/cookiecutter/cookiecutter) template, refer to [https://github.com/cjolowicz/cookiecutter-hypermodern-python](https://github.com/cjolowicz/cookiecutter-hypermodern-python).

Topics covered:
- Create a package in *src* layout
- Manage dependency with *Poetry*
- Command-line interfaces with *click*
- Consume a REST API with *requests*
- Unit testing with *pytest*
- Code coverage with *Coverage.py*
- Test automation with *Nox*
- Mocking with *pytest-mock*
- End-to-end testing
- Linting with *flake8*
- Code formatting with *black*
- Checking import with *flake8-import-order*
- Finding more bugs with *flake8-bugbear*
- Identifying security issues with *bandit*
- Finding security vulnerabilities in dependencies with *Safety*
- Managing dependencies in *Nox* sessions with *Poetry*
- Managing Git hooks with *pre-commit*