A Python package for interface with the Moonraker API.
Project description
MoonrakerPy
WIP!
A Python convenience package for simplified interfacing with the Moonraker API. Essentially a requests
wrapper.
Installation
From PyPI:
pip install moonrakerpy
Basic Usage
import moonrakerpy as moonpy
# Instantiate a `MoonrakerPrinter` object using the web/IP address of the target
# Moonraker installation.
printer = moonpy.MoonrakerPrinter('http://192.168.1.69')
# Send arbitrary g-code commands
printer.send_gcode('G28 X')
# Set temperatures
printer.set_extruder_temp(245)
printer.set_bed_temp(105)
# Read in g-code terminal messages
for msg in printer.get_gcode(count=5):
printer(msg)
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
MoonrakerPy-0.2.0.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for MoonrakerPy-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c28a692c2b4031f25bbd630a0a0ebb47f20570ee861fb1ec600aa8b78418dd33 |
|
MD5 | b3b55e8316f68e1526c55c81641c8dc8 |
|
BLAKE2b-256 | f6c6c480a1f6362e76301f31eeb6882ecd6502968cb086967e7b510f523c6c75 |