Peripheral.py 568 B

12345678910111213141516171819
  1. # Copyright (c) 2019 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from dataclasses import dataclass
  4. @dataclass
  5. class Peripheral:
  6. """Data class that represents a peripheral for a printer.
  7. Output device plug-ins may specify that the printer has a certain set of
  8. peripherals. This set is then possibly shown in the interface of the monitor
  9. stage.
  10. Args:
  11. type (string): A unique ID for the type of peripheral.
  12. name (string): A human-readable name for the peripheral.
  13. """
  14. type: str
  15. name: str