Knitlib Overview

Knitlib modules

Knitlib machine handler

knitlib.machine_handler.get_active_machine_plugins_names()[source]

Returns a list of tuples of the available plugins and type.

knitlib.machine_handler.get_available_ports()[source]

Returns a list tuples of available serial ports.

knitlib.machine_handler.get_machine_plugin_by_id(machine_id, if_not_found=None)[source]

Returns a machine plugin given the machine_id class name.

knitlib.machine_handler.get_machine_types()[source]

Returns the PluginType Enum.

knitlib.machine_handler.get_machines_by_type(machine_type)[source]

Returns a list of the available plugins for a given PluginType or empty array if none found.

Knitlib Knitting Jobs

class knitlib.knitting_job.KnittingJob(plugin_class, port, callbacks_dict=None, knitpat_dict=None)[source]

A Knitting job is composed of a Machine Plugin at a certain state, a port and a knitpat file.