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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file trexprinterapi-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: trexprinterapi-0.0.2-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53dc3e906f6e966b6c5c71c3d3224945a57fb91ba95468d30bf2d193333f2324 |
|
MD5 | 2bdeb62004139c5f38577de12d99c046 |
|
BLAKE2b-256 | dd4ed103c3bd5b88562c929117e6be95e0ac9aee5188916a1a47bf745c172fd4 |