Skip to main content

Printer WS Client

A package for easy implementations of SimplyPrint printers.

Usage

from printer_ws_client import *

class MyClient(Client):
    def __init__(self):
        self.info.ui = "My Ui"
        self.info.ui_version = "0.0.1"

        self.info.api = "My Api"
        self.info.api_version = "4.2.0"

        self.local_path = "path_to_local_files"

    # define a callback
    async def on_connect(self, event: ConnectEvent):
        print(f"Connected, got name: {event.name}")

    # define another callback
    async def on_start_print(self, _: StartPrintEvent):
        # start the print somehow
        start_print(self.selected_file)

my_client = MyClient()

# start the client
# this runs the background thread and starts even processing
my_client.start()

# run some loop
while True:
    sleep(1)
    # get data from printer
    my_client.tool_temperatures = poll_tool_temperatures()
    my_client.bed_temperature = poll_bed_temperature()

Metadata

Release files for simplyprint-ws-client 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simplyprint-ws-client 0.0.6
File Size Uploaded
simplyprint_ws_client-0.0.6.tar.gz 28.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simplyprint-ws-client 0.0.6
File Interpreter ABI Platform
simplyprint_ws_client-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 60.9 kB

Release files / simplyprint_ws_client-0.0.6.tar.gz

Download URL simplyprint_ws_client-0.0.6.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ea82490aa2a8cbcadb1ba85fc7d553f8d54e5762d434f82f6f82173024319eb7
BLAKE2b-256 checksum
How to use checksums
4d02370c9e97da0c28fd5c44d0bbea8f3910f73f41a09b3590a3edefe3976f39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / simplyprint_ws_client-0.0.6-py3-none-any.whl

Download URL simplyprint_ws_client-0.0.6-py3-none-any.whl
Size 32.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e152e18510d5fd18218c8715a40906956638c9e7b99a900213f02cad00a18d0b
BLAKE2b-256 checksum
How to use checksums
dc7132f5fda8dd4a76ee897204fbb32eb15c30bfd57a9dbc4d0d9e9789db2ac2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

4 release files

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page