Skip to main content

Project to make API for Bresser 3D printer

Project description

This package will provide an API to connect to a trex 3d printer. Currently its on development.

To install this package use

pip install trexprinterapi

Than import it in your python program and initialise the Api with the following command

from trexprinterapi import TRexObserver
trex = TRexObserver(ip)

Observe that you need to specify at least the ip address. Additionally you can set the port (default 8899) and scan_intervall (default 600)

The scan_intervall should not be to small or else other programms comunicating with the printer may be disconnected.

This package is fully asyncrounus so you need to await all the methods for fetching data.

The following methods are available:

trex.update_server(ip:str=None, port:int=None, scan_intervall:int=None)

This method updates the ip address, port and scan_intervall.

data = await trex.get()
data = await trex.force_get()

methods to fetch the data. the force_get ignores the scan_intervall and connects to the printer immediately.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

trexprinterapi-0.0.2-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file trexprinterapi-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for trexprinterapi-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 53dc3e906f6e966b6c5c71c3d3224945a57fb91ba95468d30bf2d193333f2324
MD5 2bdeb62004139c5f38577de12d99c046
BLAKE2b-256 dd4ed103c3bd5b88562c929117e6be95e0ac9aee5188916a1a47bf745c172fd4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page