Skip to main content

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.2.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

MoonrakerPy-0.2.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file MoonrakerPy-0.2.2.tar.gz.

File metadata

  • Download URL: MoonrakerPy-0.2.2.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for MoonrakerPy-0.2.2.tar.gz
Algorithm Hash digest
SHA256 eb6e6fb2020fc519701a0bf0029b50c0f6c70fa3fba831cd3193636a7c412f06
MD5 51fa37ab6ba6f115c50ffe33372ec5f3
BLAKE2b-256 a4dfa7d21b3ea5873e7ebc05f2bd85616763a23fe3c4dbe91e67df19818a7c2f

See more details on using hashes here.

File details

Details for the file MoonrakerPy-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: MoonrakerPy-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for MoonrakerPy-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 03df28a02f481d24ddaada189712e3c62fe8ea7001c47657ff2aecef43a94fc0
MD5 907ba9f320a0f72ae6e373ff2d5ca05b
BLAKE2b-256 f3181894717fc764ddbe24619a7ac4f5d553db04c45b7eb59a4e3921e32c6fcf

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