dsf-python 3.5.0.2rc2__tar.gz → 3.6.0b2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. {dsf-python-3.5.0.2rc2/src/dsf_python.egg-info → dsf_python-3.6.0b2}/PKG-INFO +2 -2
  2. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/README.md +1 -1
  3. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/setup.py +1 -1
  4. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/code.py +4 -1
  5. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/code_interception.py +1 -1
  6. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/files.py +4 -3
  7. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/generic.py +10 -10
  8. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/http_endpoints.py +5 -5
  9. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/object_model.py +3 -3
  10. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/packages.py +2 -2
  11. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/plugins.py +6 -6
  12. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/user_sessions.py +4 -4
  13. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/connections/init_messages/client_init_messages.py +14 -9
  14. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/connections/intercept_connection.py +11 -1
  15. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/accelerometer.py +13 -0
  16. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/boards.py +23 -7
  17. dsf_python-3.6.0b2/src/dsf/object_model/boards/inductive_sensor.py +9 -0
  18. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/fans/fans.py +11 -0
  19. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/axis.py +20 -0
  20. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/input_shaping.py +2 -2
  21. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/move_segmentation.py +4 -4
  22. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/plugins/plugin_manifest.py +8 -0
  23. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/dsf/dsf.py +10 -0
  24. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/analog_sensor.py +22 -0
  25. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/probe.py +17 -6
  26. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/probe_type.py +3 -0
  27. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/spindles/spindles.py +29 -27
  28. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2/src/dsf_python.egg-info}/PKG-INFO +2 -2
  29. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf_python.egg-info/SOURCES.txt +1 -0
  30. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/tests/test_custom_m_codes.py +6 -6
  31. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/tests/test_object_model.py +1 -1
  32. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/tests/test_subscribe_object_model.py +1 -1
  33. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/LICENSE +0 -0
  34. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/MANIFEST.in +0 -0
  35. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/pyproject.toml +0 -0
  36. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/setup.cfg +0 -0
  37. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/__init__.py +0 -0
  38. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/__init__.py +0 -0
  39. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/base_command.py +0 -0
  40. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/code_channel.py +0 -0
  41. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/code_flags.py +0 -0
  42. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/code_parameter.py +0 -0
  43. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/code_type.py +0 -0
  44. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/condition_type.py +0 -0
  45. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/model_subscription.py +0 -0
  46. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/commands/responses.py +0 -0
  47. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/connections/__init__.py +0 -0
  48. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/connections/base_command_connection.py +0 -0
  49. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/connections/base_connection.py +0 -0
  50. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/connections/command_connection.py +0 -0
  51. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/connections/exceptions.py +0 -0
  52. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/connections/init_messages/__init__.py +0 -0
  53. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/connections/init_messages/server_init_message.py +0 -0
  54. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/connections/subscribe_connection.py +0 -0
  55. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/exceptions.py +0 -0
  56. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/http.py +0 -0
  57. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/__init__.py +0 -0
  58. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/__init__.py +0 -0
  59. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/board_closed_loop.py +0 -0
  60. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/direct_display/__init__.py +0 -0
  61. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/direct_display/direct_display.py +0 -0
  62. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/direct_display/direct_display_controller.py +0 -0
  63. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/direct_display/direct_display_encoder.py +0 -0
  64. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/direct_display/direct_display_screen.py +0 -0
  65. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/direct_display/direct_display_screen_st7567.py +0 -0
  66. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/driver.py +0 -0
  67. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/driver_closed_loop.py +0 -0
  68. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/boards/min_max_current.py +0 -0
  69. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/directories/__init__.py +0 -0
  70. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/directories/directories.py +0 -0
  71. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/fans/__init__.py +0 -0
  72. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/fans/fan_thermostatic_control.py +0 -0
  73. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/heat/__init__.py +0 -0
  74. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/heat/heat.py +0 -0
  75. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/heat/heater.py +0 -0
  76. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/heat/heater_model.py +0 -0
  77. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/heat/heater_model_pid.py +0 -0
  78. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/heat/heater_monitor.py +0 -0
  79. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/inputs/__init__.py +0 -0
  80. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/inputs/compatibility.py +0 -0
  81. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/inputs/distance_unit.py +0 -0
  82. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/inputs/input_channel.py +0 -0
  83. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/inputs/input_channel_state.py +0 -0
  84. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/inputs/inputs.py +0 -0
  85. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/job/__init__.py +0 -0
  86. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/job/build.py +0 -0
  87. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/job/build_object.py +0 -0
  88. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/job/gcode_fileinfo.py +0 -0
  89. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/job/job.py +0 -0
  90. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/job/layer.py +0 -0
  91. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/job/thumbnail_info.py +0 -0
  92. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/job/times_left.py +0 -0
  93. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/led_strips/__init__.py +0 -0
  94. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/led_strips/led_strip.py +0 -0
  95. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/limits/__init__.py +0 -0
  96. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/limits/limits.py +0 -0
  97. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/messages/__init__.py +0 -0
  98. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/messages/messages.py +0 -0
  99. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/model_collection.py +0 -0
  100. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/model_dictionary.py +0 -0
  101. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/model_object.py +0 -0
  102. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/__init__.py +0 -0
  103. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/current_move.py +0 -0
  104. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/driver_id.py +0 -0
  105. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/extruder.py +0 -0
  106. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/extruder_non_linear.py +0 -0
  107. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/keepout_zone.py +0 -0
  108. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/kinematics/__init__.py +0 -0
  109. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/kinematics/core_kinematics.py +0 -0
  110. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/kinematics/delta_kinematics.py +0 -0
  111. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/kinematics/delta_tower.py +0 -0
  112. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/kinematics/hangprinter_kinematics.py +0 -0
  113. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/kinematics/kinematics.py +0 -0
  114. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/kinematics/kinematics_name.py +0 -0
  115. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/kinematics/polar_kinematics.py +0 -0
  116. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/kinematics/scara_kinematics.py +0 -0
  117. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/kinematics/tilt_correction.py +0 -0
  118. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/kinematics/zleadscrew_kinematics.py +0 -0
  119. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/microstepping.py +0 -0
  120. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/motors_idle_control.py +0 -0
  121. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/move.py +0 -0
  122. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/move_calibration.py +0 -0
  123. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/move_compensation.py +0 -0
  124. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/move_deviations.py +0 -0
  125. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/move_queue_item.py +0 -0
  126. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/move_rotation.py +0 -0
  127. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/probe_grid.py +0 -0
  128. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/move/skew.py +0 -0
  129. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/network/__init__.py +0 -0
  130. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/network/network.py +0 -0
  131. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/network/network_interface.py +0 -0
  132. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/network/network_interface_type.py +0 -0
  133. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/network/network_protocol.py +0 -0
  134. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/network/network_state.py +0 -0
  135. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/object_model.py +0 -0
  136. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/plugins/__init__.py +0 -0
  137. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/plugins/plugins.py +0 -0
  138. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/plugins/sbc_permissions.py +0 -0
  139. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/__init__.py +0 -0
  140. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/cpu.py +0 -0
  141. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/dsf/__init__.py +0 -0
  142. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/dsf/http_endpoint.py +0 -0
  143. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/dsf/http_endpoint_type.py +0 -0
  144. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/dsf/user_sessions/__init__.py +0 -0
  145. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/dsf/user_sessions/access_level.py +0 -0
  146. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/dsf/user_sessions/session_type.py +0 -0
  147. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/dsf/user_sessions/user_sessions.py +0 -0
  148. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/memory.py +0 -0
  149. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sbc/sbc.py +0 -0
  150. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/__init__.py +0 -0
  151. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/analog_sensor_type.py +0 -0
  152. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/endstop.py +0 -0
  153. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/endstop_type.py +0 -0
  154. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/filament_monitors/Duet3DFilamentMonitor.py +0 -0
  155. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/filament_monitors/__init__.py +0 -0
  156. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/filament_monitors/filament_monitor.py +0 -0
  157. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/filament_monitors/filament_monitor_enable_type.py +0 -0
  158. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/filament_monitors/filament_monitor_status.py +0 -0
  159. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/filament_monitors/filament_monitor_type.py +0 -0
  160. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/filament_monitors/laser_filament_monitor.py +0 -0
  161. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/filament_monitors/pulsed_filament_monitor.py +0 -0
  162. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/filament_monitors/rotating_magnet_filament_monitor.py +0 -0
  163. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/gp_input_port.py +0 -0
  164. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/sensors.py +0 -0
  165. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/sensors/temperature_error.py +0 -0
  166. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/spindles/__init__.py +0 -0
  167. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/spindles/spindle_state.py +0 -0
  168. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/state/__init__.py +0 -0
  169. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/state/beep_request.py +0 -0
  170. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/state/gp_output_port.py +0 -0
  171. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/state/log_level.py +0 -0
  172. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/state/machine_mode.py +0 -0
  173. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/state/machine_status.py +0 -0
  174. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/state/message_box.py +0 -0
  175. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/state/restore_point.py +0 -0
  176. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/state/startup_error.py +0 -0
  177. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/state/state.py +0 -0
  178. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/tools/__init__.py +0 -0
  179. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/tools/tool_retraction.py +0 -0
  180. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/tools/tool_state.py +0 -0
  181. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/tools/tools.py +0 -0
  182. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/utils.py +0 -0
  183. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/volumes/__init__.py +0 -0
  184. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/object_model/volumes/volumes.py +0 -0
  185. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/utility/__init__.py +0 -0
  186. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf/utils.py +0 -0
  187. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf_python.egg-info/dependency_links.txt +0 -0
  188. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf_python.egg-info/requires.txt +0 -0
  189. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/src/dsf_python.egg-info/top_level.txt +0 -0
  190. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/tests/test_code.py +0 -0
  191. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/tests/test_custom_http_endpoint.py +0 -0
  192. {dsf-python-3.5.0.2rc2 → dsf_python-3.6.0b2}/tests/test_send_simple_code.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dsf-python
3
- Version: 3.5.0.2rc2
3
+ Version: 3.6.0b2
4
4
  Summary: Python interface to access DuetSoftwareFramework
5
5
  Home-page: https://github.com/Duet3D/dsf-python
6
6
  Author: Duet3D Ltd.
@@ -36,7 +36,7 @@ This is also availabe as a [pip package on pypi](https://pypi.org/project/dsf-py
36
36
 
37
37
  Find out more about [Duet Software Framework](https://github.com/Duet3D/DuetSoftwareFramework).
38
38
 
39
- Find out more about [Duet Software Framework Python Bindings](https://github.com/Duet3D/dsf-python).
39
+ Examples of the [Duet Software Framework Python Bindings](https://github.com/Duet3D/dsf-python/tree/main/examples).
40
40
 
41
41
  Get in touch with the community at [Duet Software Framework Forum](https://forum.duet3d.com/category/31/dsf-development) for bug reports, discussion and any kind of exchange.
42
42
 
@@ -4,7 +4,7 @@ This is also availabe as a [pip package on pypi](https://pypi.org/project/dsf-py
4
4
 
5
5
  Find out more about [Duet Software Framework](https://github.com/Duet3D/DuetSoftwareFramework).
6
6
 
7
- Find out more about [Duet Software Framework Python Bindings](https://github.com/Duet3D/dsf-python).
7
+ Examples of the [Duet Software Framework Python Bindings](https://github.com/Duet3D/dsf-python/tree/main/examples).
8
8
 
9
9
  Get in touch with the community at [Duet Software Framework Forum](https://forum.duet3d.com/category/31/dsf-development) for bug reports, discussion and any kind of exchange.
10
10
 
@@ -6,7 +6,7 @@ long_description = open("README.md", encoding="utf-8").read()
6
6
 
7
7
  setuptools.setup(
8
8
  name="dsf-python",
9
- version="3.5.0.2rc2",
9
+ version="3.6.0-b2",
10
10
  description="Python interface to access DuetSoftwareFramework",
11
11
  long_description=long_description,
12
12
  long_description_content_type="text/markdown",
@@ -134,7 +134,7 @@ class Code(BaseCommand):
134
134
  if self.type == CodeType.Comment:
135
135
  return "(comment)"
136
136
 
137
- prefix = "G53 " if self.flags & CodeFlags.EnforceAbsolutePosition != 0 else ""
137
+ prefix = "G53 " if self.is_flag_set(CodeFlags.EnforceAbsolutePosition) else ""
138
138
  if self.majorNumber is not None:
139
139
  if self.minorNumber is not None:
140
140
  return f"{prefix}{self.type}{self.majorNumber}.{self.minorNumber}"
@@ -158,3 +158,6 @@ class Code(BaseCommand):
158
158
  KeywordType.Echo: "echo",
159
159
  KeywordType.Global: "global",
160
160
  }.get(self.keyword)
161
+
162
+ def is_flag_set(self, flag: CodeFlags):
163
+ return self.flags & flag != 0
@@ -28,4 +28,4 @@ def resolve_code(rtype: MessageType, content: Optional[str]):
28
28
  raise TypeError("rtype must be a MessageType")
29
29
  if content is not None and not isinstance(content, str):
30
30
  raise TypeError("content must be None or a string")
31
- return BaseCommand("Resolve", **{"Type": rtype, "Content": content})
31
+ return BaseCommand("Resolve", **{"type": rtype, "content": content})
@@ -9,15 +9,16 @@ def get_file_info(file_name: str, read_thumbnail_content: bool = False):
9
9
  """
10
10
  if not isinstance(file_name, str) or not file_name:
11
11
  raise TypeError("file_name must be a string")
12
- return BaseCommand("GetFileInfo", **{"FileName": file_name, "ReadThumbnailContent": read_thumbnail_content})
12
+ return BaseCommand("GetFileInfo", **{"fileName": file_name, "readThumbnailContent": read_thumbnail_content})
13
13
 
14
14
 
15
- def resolve_path(path: str):
15
+ def resolve_path(path: str, base_directory: str = None):
16
16
  """
17
17
  Resolve a RepRapFirmware-style path to an actual file path
18
18
  :param path: Path that is RepRapFirmware-compatible
19
+ :param base_directory: Optional base directory to resolve the path relative to
19
20
  :returns: The resolved path
20
21
  """
21
22
  if not isinstance(path, str) or not path:
22
23
  raise TypeError("path must be a string")
23
- return BaseCommand("ResolvePath", **{"Path": path})
24
+ return BaseCommand("ResolvePath", **{"path": path, "baseDirectory": base_directory})
@@ -17,7 +17,7 @@ def check_password(password: str):
17
17
  """
18
18
  if not isinstance(password, str) or not password:
19
19
  raise TypeError("password must be a string")
20
- return BaseCommand("CheckPassword", **{"Password": password})
20
+ return BaseCommand("CheckPassword", **{"password": password})
21
21
 
22
22
 
23
23
  def evaluate_expression(channel: CodeChannel, expression: str):
@@ -33,7 +33,7 @@ def evaluate_expression(channel: CodeChannel, expression: str):
33
33
  raise TypeError("channel must be a CodeChannel")
34
34
  if not isinstance(expression, str) or not expression:
35
35
  raise TypeError("expression must be a string")
36
- return BaseCommand("EvaluateExpression", **{"Channel": channel, "Expression": expression})
36
+ return BaseCommand("EvaluateExpression", **{"channel": channel, "expression": expression})
37
37
 
38
38
 
39
39
  def flush(channel: CodeChannel, sync_file_streams: bool = False, if_executing: bool = True):
@@ -57,7 +57,7 @@ def flush(channel: CodeChannel, sync_file_streams: bool = False, if_executing: b
57
57
  if not isinstance(if_executing, bool):
58
58
  raise TypeError("if_executing must be a boolean")
59
59
  return BaseCommand("Flush",
60
- **{"Channel": channel, "SyncFileStreams": sync_file_streams, "IfExecuting": if_executing})
60
+ **{"channel": channel, "syncFileStreams": sync_file_streams, "ifExecuting": if_executing})
61
61
 
62
62
 
63
63
  def invalidate_channel(channel: CodeChannel):
@@ -70,7 +70,7 @@ def invalidate_channel(channel: CodeChannel):
70
70
  """
71
71
  if not isinstance(channel, CodeChannel):
72
72
  raise TypeError("channel must be a CodeChannel")
73
- return BaseCommand("InvalidateChannel", **{"Channel": channel})
73
+ return BaseCommand("InvalidateChannel", **{"channel": channel})
74
74
 
75
75
 
76
76
  def set_update_status(updating: bool):
@@ -81,7 +81,7 @@ def set_update_status(updating: bool):
81
81
  """
82
82
  if not isinstance(updating, bool):
83
83
  raise TypeError("updating must be a boolean")
84
- return BaseCommand("SetUpdateStatus", **{"Updating": updating})
84
+ return BaseCommand("SetUpdateStatus", **{"updating": updating})
85
85
 
86
86
 
87
87
  def simple_code(code: str, channel: CodeChannel = CodeChannel.DEFAULT_CHANNEL, async_exec: bool = False):
@@ -101,7 +101,7 @@ def simple_code(code: str, channel: CodeChannel = CodeChannel.DEFAULT_CHANNEL, a
101
101
  raise TypeError("code must be a string")
102
102
  if not isinstance(channel, CodeChannel):
103
103
  raise TypeError("channel must be a CodeChannel")
104
- return BaseCommand("SimpleCode", **{"Code": code, "Channel": channel, "ExecuteAsynchronously": async_exec})
104
+ return BaseCommand("SimpleCode", **{"code": code, "channel": channel, "executeAsynchronously": async_exec})
105
105
 
106
106
 
107
107
  def write_message(
@@ -129,9 +129,9 @@ def write_message(
129
129
  return BaseCommand(
130
130
  "WriteMessage",
131
131
  **{
132
- "Type": message_type,
133
- "Content": content,
134
- "OutputMessage": output_message,
135
- "LogLevel": log_level,
132
+ "type": message_type,
133
+ "content": content,
134
+ "outputMessage": output_message,
135
+ "logLevel": log_level,
136
136
  },
137
137
  )
@@ -25,10 +25,10 @@ def add_http_endpoint(endpoint_type: HttpEndpointType, namespace: str, path: str
25
25
  return BaseCommand(
26
26
  "AddHttpEndpoint",
27
27
  **{
28
- "EndpointType": endpoint_type,
29
- "Namespace": namespace,
30
- "Path": path,
31
- "IsUploadRequest": is_upload_request,
28
+ "endpointType": endpoint_type,
29
+ "namespace": namespace,
30
+ "path": path,
31
+ "isUploadRequest": is_upload_request,
32
32
  },
33
33
  )
34
34
 
@@ -49,5 +49,5 @@ def remove_http_endpoint(endpoint_type: HttpEndpointType, namespace: str, path:
49
49
  raise TypeError("path must be a string")
50
50
  return BaseCommand(
51
51
  "RemoveHttpEndpoint",
52
- **{"EndpointType": endpoint_type, "Namespace": namespace, "Path": path},
52
+ **{"endpointType": endpoint_type, "namespace": namespace, "path": path},
53
53
  )
@@ -24,7 +24,7 @@ def patch_object_model(key: str, patch: str):
24
24
  raise TypeError("key must be a string")
25
25
  if not isinstance(patch, str) or not patch:
26
26
  raise TypeError("patch must be a string")
27
- return BaseCommand("PatchObjectModel", **{"Key": key, "Patch": patch})
27
+ return BaseCommand("PatchObjectModel", **{"key": key, "patch": patch})
28
28
 
29
29
 
30
30
  def set_network_protocol(protocol: str, enabled: bool):
@@ -38,7 +38,7 @@ def set_network_protocol(protocol: str, enabled: bool):
38
38
  raise TypeError("protocol must be a string")
39
39
  if not isinstance(enabled, bool):
40
40
  raise TypeError("enabled must be a boolean")
41
- return BaseCommand("SetNetworkProtocol", **{"NetworkProtocol": protocol, "Enabled": enabled})
41
+ return BaseCommand("SetNetworkProtocol", **{"networkProtocol": protocol, "enabled": enabled})
42
42
 
43
43
 
44
44
  def set_object_model(property_path: str, value: str):
@@ -53,7 +53,7 @@ def set_object_model(property_path: str, value: str):
53
53
  raise TypeError("property_path must be a string")
54
54
  if not isinstance(value, str):
55
55
  raise TypeError("value must be a string")
56
- return BaseCommand("SetObjectModel", **{"PropertyPath": property_path, "Value": value})
56
+ return BaseCommand("SetObjectModel", **{"propertyPath": property_path, "value": value})
57
57
 
58
58
 
59
59
  def sync_object_model():
@@ -7,7 +7,7 @@ def install_system_package(package_file: str):
7
7
  """
8
8
  if not isinstance(package_file, str) or not package_file:
9
9
  raise TypeError("package_file must be a string")
10
- return BaseCommand("InstallSystemPackage", **{"PackageFile": package_file})
10
+ return BaseCommand("InstallSystemPackage", **{"packageFile": package_file})
11
11
 
12
12
 
13
13
  def uninstall_system_package(package: str):
@@ -16,4 +16,4 @@ def uninstall_system_package(package: str):
16
16
  """
17
17
  if not isinstance(package, str) or not package:
18
18
  raise TypeError("package must be a string")
19
- return BaseCommand("UninstallSystemPackage", **{"Package": package})
19
+ return BaseCommand("UninstallSystemPackage", **{"package": package})
@@ -8,7 +8,7 @@ def install_plugin(plugin_file: str):
8
8
  """
9
9
  if not isinstance(plugin_file, str) or not plugin_file:
10
10
  raise TypeError("plugin_file must be a string")
11
- return BaseCommand("InstallPlugin", **{"PluginFile": plugin_file})
11
+ return BaseCommand("InstallPlugin", **{"pluginFile": plugin_file})
12
12
 
13
13
 
14
14
  def reload_plugin(plugin: str):
@@ -18,7 +18,7 @@ def reload_plugin(plugin: str):
18
18
  """
19
19
  if not isinstance(plugin, str) or not plugin:
20
20
  raise TypeError("plugin must be a string")
21
- return BaseCommand("ReloadPlugin", **{"Plugin": plugin})
21
+ return BaseCommand("ReloadPlugin", **{"plugin": plugin})
22
22
 
23
23
 
24
24
  def set_plugin_data(plugin: str, key: str, value: str):
@@ -37,7 +37,7 @@ def set_plugin_data(plugin: str, key: str, value: str):
37
37
  if not isinstance(value, str):
38
38
  raise TypeError("value must be a string")
39
39
  return BaseCommand(
40
- "SetPluginData", **{"Plugin": plugin, "Key": key, "Value": value}
40
+ "SetPluginData", **{"Plugin": plugin, "key": key, "value": value}
41
41
  )
42
42
 
43
43
 
@@ -49,7 +49,7 @@ def start_plugin(plugin: str, save_state: bool = True):
49
49
  """
50
50
  if not isinstance(plugin, str) or not plugin:
51
51
  raise TypeError("plugin must be a string")
52
- return BaseCommand("StartPlugin", **{"Plugin": plugin, "SaveState": save_state})
52
+ return BaseCommand("StartPlugin", **{"plugin": plugin, "saveState": save_state})
53
53
 
54
54
 
55
55
  def start_plugins():
@@ -65,7 +65,7 @@ def stop_plugin(plugin: str, save_state: bool = True):
65
65
  """
66
66
  if not isinstance(plugin, str) or not plugin:
67
67
  raise TypeError("plugin must be a string")
68
- return BaseCommand("StopPlugin", **{"Plugin": plugin, "SaveState": save_state})
68
+ return BaseCommand("StopPlugin", **{"plugin": plugin, "saveState": save_state})
69
69
 
70
70
 
71
71
  def stop_plugins():
@@ -81,4 +81,4 @@ def uninstall_plugin(plugin: str):
81
81
  """
82
82
  if not isinstance(plugin, str) or not plugin:
83
83
  raise TypeError("plugin must be a string")
84
- return BaseCommand("UninstallPlugin", **{"Plugin": plugin})
84
+ return BaseCommand("UninstallPlugin", **{"plugin": plugin})
@@ -19,9 +19,9 @@ def add_user_session(access_level: AccessLevel, session_type: SessionType, origi
19
19
  return BaseCommand(
20
20
  "AddUserSession",
21
21
  **{
22
- "AccessLevel": access_level,
23
- "SessionType": session_type,
24
- "Origin": origin,
22
+ "accessLevel": access_level,
23
+ "sessionType": session_type,
24
+ "origin": origin,
25
25
  },
26
26
  )
27
27
 
@@ -33,4 +33,4 @@ def remove_user_session(session_id: int):
33
33
  """
34
34
  if not isinstance(session_id, int):
35
35
  raise TypeError("session_id must be an integer")
36
- return BaseCommand("RemoveUserSession", **{"Id": session_id})
36
+ return BaseCommand("RemoveUserSession", **{"id": session_id})
@@ -41,7 +41,8 @@ def intercept_init_message(
41
41
  channels: List[CodeChannel],
42
42
  filters: List[str],
43
43
  priority_codes: bool,
44
- auto_flush: bool = True):
44
+ auto_flush: bool = True,
45
+ auto_evaluate_expression: bool = True):
45
46
  """
46
47
  Enter interception mode
47
48
  Whenever a code is received, the connection must respond with one of
@@ -62,15 +63,19 @@ def intercept_init_message(
62
63
  is specified.
63
64
  This option makes extra Flush calls in the interceptor implementation obsolete.
64
65
  It is highly recommended to enable this in order to avoid potential deadlocks when dealing with macros!
66
+ :param auto_evaluate_expression: Automatically evaluate expression parameters to their final values
67
+ before sending it over to the client.
68
+ This requires auto_flush to be True and happens when the remaining codes have been processed.
65
69
  """
66
70
  return ClientInitMessage(
67
71
  ConnectionMode.INTERCEPT,
68
72
  **{
69
- "InterceptionMode": intercept_mode,
70
- "Channels": channels,
71
- "AutoFlush": auto_flush,
72
- "Filters": filters,
73
- "PriorityCodes": priority_codes,
73
+ "interceptionMode": intercept_mode,
74
+ "channels": channels,
75
+ "autoFlush": auto_flush,
76
+ "autoEvaluateExpressions": auto_evaluate_expression,
77
+ "filters": filters,
78
+ "priorityCodes": priority_codes,
74
79
  },
75
80
  )
76
81
 
@@ -85,8 +90,8 @@ def subscribe_init_message(subscription_mode: SubscriptionMode, filter_string: s
85
90
  return ClientInitMessage(
86
91
  ConnectionMode.SUBSCRIBE,
87
92
  **{
88
- "SubscriptionMode": subscription_mode,
89
- "Filter": filter_string,
90
- "Filters": filter_list,
93
+ "subscriptionMode": subscription_mode,
94
+ "filter": filter_string,
95
+ "filters": filter_list,
91
96
  },
92
97
  )
@@ -21,6 +21,9 @@ class InterceptConnection(BaseCommandConnection):
21
21
  in case a code filter is specified.
22
22
  This option makes extra Flush calls in the interceptor implementation obsolete.
23
23
  It is highly recommended to enable this in order to avoid potential deadlocks when dealing with macros!
24
+ :param auto_evaluate_expression: Automatically evaluate expression parameters to their final values
25
+ before sending it over to the client.
26
+ This requires auto_flush to be True and happens when the remaining codes have been processed.
24
27
  :param priority_codes: Defines if priority codes may be intercepted (e.g. M122 or M999)
25
28
  :param debug: Whether debugging output is turned on for this connection
26
29
  """
@@ -31,6 +34,7 @@ class InterceptConnection(BaseCommandConnection):
31
34
  channels: List[CodeChannel] = None,
32
35
  filters: List[str] = None,
33
36
  auto_flush: bool = True,
37
+ auto_evaluate_expression: bool = True,
34
38
  priority_codes: bool = False,
35
39
  debug: bool = False,
36
40
  ):
@@ -39,12 +43,18 @@ class InterceptConnection(BaseCommandConnection):
39
43
  self.channels = channels if channels is not None else CodeChannel.list()
40
44
  self.filters = filters
41
45
  self.auto_flush = auto_flush
46
+ self.auto_evaluate_expression = auto_evaluate_expression
42
47
  self.priority_codes = priority_codes
43
48
 
44
49
  def connect(self, socket_file: str = SOCKET_FILE): # noqa
45
50
  """Establishes a connection to the given UNIX socket file"""
46
51
  iim = client_init_messages.intercept_init_message(
47
- self.interception_mode, self.channels, self.filters, self.priority_codes, self.auto_flush
52
+ self.interception_mode,
53
+ self.channels,
54
+ self.filters,
55
+ self.priority_codes,
56
+ self.auto_flush,
57
+ self.auto_evaluate_expression
48
58
  )
49
59
  return super().connect(iim, socket_file)
50
60
 
@@ -5,11 +5,24 @@ class Accelerometer(ModelObject):
5
5
  """This represents an accelerometer"""
6
6
  def __init__(self):
7
7
  super(Accelerometer, self).__init__()
8
+ # Orientation of the accelerometer
9
+ # See https://docs.duet3d.com/en/Duet3D_hardware/Accessories/Duet3D_Accelerometer#orientation for a list of orientations
10
+ self._orientation = 20
8
11
  # Number of collected data points in the last run or 0 if it failed
9
12
  self._points = 0
10
13
  # Number of completed sampling runs
11
14
  self._runs = 0
12
15
 
16
+ @property
17
+ def orientation(self) -> int:
18
+ """Orientation of the accelerometer
19
+ See https://docs.duet3d.com/en/Duet3D_hardware/Accessories/Duet3D_Accelerometer#orientation for a list of orientations"""
20
+ return self._orientation
21
+
22
+ @orientation.setter
23
+ def orientation(self, value):
24
+ self._orientation = int(value)
25
+
13
26
  @property
14
27
  def points(self) -> int:
15
28
  """Number of collected data points in the last run or 0 if it failed"""
@@ -1,10 +1,11 @@
1
1
  from enum import Enum
2
- from typing import List, Union
2
+ from typing import List, Optional
3
3
 
4
4
  from .accelerometer import Accelerometer
5
5
  from .board_closed_loop import BoardClosedLoop
6
6
  from .direct_display import DirectDisplay
7
7
  from .driver import Driver
8
+ from .inductive_sensor import InductiveSensor
8
9
  from .min_max_current import MinMaxCurrent
9
10
  from ..model_collection import ModelCollection
10
11
  from ..model_object import ModelObject
@@ -42,6 +43,8 @@ class Board(ModelObject):
42
43
  closed_loop = wrap_model_property('closed_loop', BoardClosedLoop)
43
44
  # Details about a connected display or None if none is connected
44
45
  direct_display = wrap_model_property('direct_display', DirectDisplay)
46
+ # Information about an inductive sensor or None if not present
47
+ inductive_sensor = wrap_model_property('inductive_sensor', InductiveSensor)
45
48
  # Minimum, maximum, and current temperatures of the MCU or None if unknown
46
49
  mcu_temp = wrap_model_property('mcu_temp', MinMaxCurrent)
47
50
  # Minimum, maximum, and current voltages on the 12V rail or None if unknown
@@ -72,11 +75,15 @@ class Board(ModelObject):
72
75
  self._firmware_name = ""
73
76
  # Version of the firmware build
74
77
  self._firmware_version = ""
78
+ # Amount of free RAM on this board (in bytes or null if unknown)
79
+ self._free_ram = None
75
80
  # Filename of the IAP binary that is used for updates from the SBC or None if unsupported
76
81
  self._iap_file_name_SBC = None
77
82
  # Filename of the IAP binary that is used for updates from the SD card or None if unsupported
78
83
  # This is only available for the mainboard (first board item)
79
84
  self._iap_file_name_SD = None
85
+ # Information about an inductive sensor or None if not present
86
+ self._inductive_sensor = None
80
87
  # Maximum number of heaters this board can control
81
88
  self._max_heaters = 0
82
89
  # Maximum number of motors this board can drive
@@ -104,7 +111,7 @@ class Board(ModelObject):
104
111
  self._wifi_firmware_file_name = None
105
112
 
106
113
  @property
107
- def bootloader_file_name(self) -> Union[str, None]:
114
+ def bootloader_file_name(self) -> Optional[str]:
108
115
  """Filename of the bootloader binary or None if unknown"""
109
116
  return self._bootloader_file_name
110
117
 
@@ -113,7 +120,7 @@ class Board(ModelObject):
113
120
  self._bootloader_file_name = str(value) if value is not None else None
114
121
 
115
122
  @property
116
- def can_address(self) -> Union[int, None]:
123
+ def can_address(self) -> Optional[int]:
117
124
  """CAN address of this board or None if not applicable"""
118
125
  return self._can_address
119
126
 
@@ -122,7 +129,7 @@ class Board(ModelObject):
122
129
  self._can_address = int(value) if value is not None else None
123
130
 
124
131
  @property
125
- def drivers(self) -> Union[List[Driver], None]:
132
+ def drivers(self) -> Optional[List[Driver]]:
126
133
  """Drivers of this board"""
127
134
  return self._drivers
128
135
 
@@ -167,7 +174,16 @@ class Board(ModelObject):
167
174
  self._firmware_version = str(value)
168
175
 
169
176
  @property
170
- def iap_file_name_SBC(self) -> Union[str, None]:
177
+ def free_ram(self) -> Optional[int]:
178
+ """Amount of free RAM on this board (in bytes or null if unknown)"""
179
+ return self._free_ram
180
+
181
+ @free_ram.setter
182
+ def free_ram(self, value):
183
+ self._free_ram = None if value is None else int(value)
184
+
185
+ @property
186
+ def iap_file_name_SBC(self) -> Optional[str]:
171
187
  """Filename of the IAP binary that is used for updates from the SBC or None if unsupported"""
172
188
  return self._iap_file_name_SBC
173
189
 
@@ -176,7 +192,7 @@ class Board(ModelObject):
176
192
  self._iap_file_name_SBC = str(value) if value is not None else None
177
193
 
178
194
  @property
179
- def iap_file_name_SD(self) -> Union[str, None]:
195
+ def iap_file_name_SD(self) -> Optional[str]:
180
196
  """Filename of the IAP binary that is used for updates from the SD card or None if unsupported
181
197
  This is only available for the mainboard (first board item)"""
182
198
  return self._iap_file_name_SD
@@ -256,7 +272,7 @@ class Board(ModelObject):
256
272
  self._supports_direct_display = bool(value)
257
273
 
258
274
  @property
259
- def unique_id(self) -> Union[str, None]:
275
+ def unique_id(self) -> Optional[str]:
260
276
  """Unique identifier of the board or None if unknown"""
261
277
  return self._unique_id
262
278
 
@@ -0,0 +1,9 @@
1
+ from ..model_object import ModelObject
2
+
3
+
4
+ class InductiveSensor(ModelObject):
5
+ """"""
6
+
7
+ def __init__(self):
8
+ super(InductiveSensor, self).__init__()
9
+ # still empty
@@ -23,6 +23,8 @@ class Fan(ModelObject):
23
23
  self._requested_value = 0
24
24
  # Current RPM of this fan or -1 if unknown/unset
25
25
  self._rpm = -1
26
+ # Pulses per tacho revolution
27
+ self._tacho_ppr = 2.0
26
28
  # Thermostatic control parameters
27
29
  self._thermostatic = FanThermostaticControl()
28
30
 
@@ -99,6 +101,15 @@ class Fan(ModelObject):
99
101
  def rpm(self, value):
100
102
  self._rpm = int(value)
101
103
 
104
+ @property
105
+ def tacho_ppr(self) -> float:
106
+ """Pulses per tacho revolution"""
107
+ return self._tacho_ppr
108
+
109
+ @tacho_ppr.setter
110
+ def tacho_ppr(self, value):
111
+ self._tacho_ppr = float(value)
112
+
102
113
  @property
103
114
  def thermostatic(self) -> FanThermostaticControl:
104
115
  """Thermostatic control parameters"""
@@ -26,6 +26,26 @@ class AxisLetter(str, Enum):
26
26
  d = 'd'
27
27
  e = 'e'
28
28
  f = 'f'
29
+ g = 'g'
30
+ h = 'h'
31
+ i = 'i'
32
+ j = 'j'
33
+ k = 'k'
34
+ l = 'l'
35
+ m = 'm'
36
+ n = 'n'
37
+ o = 'o'
38
+ p = 'p'
39
+ q = 'q'
40
+ r = 'r'
41
+ s = 's'
42
+ t = 't'
43
+ u = 'u'
44
+ v = 'v'
45
+ w = 'w'
46
+ x = 'x'
47
+ y = 'y'
48
+ z = 'z'
29
49
  none = ''
30
50
 
31
51
 
@@ -23,10 +23,10 @@ class InputShapingType(str, Enum):
23
23
  zvddd = "zvddd"
24
24
 
25
25
  # EI2 (2-hump)
26
- ei2 = "ei2"
26
+ ei2 = "eI2"
27
27
 
28
28
  # EI3 (3-hump)
29
- ei3 = "ei3"
29
+ ei3 = "eI3"
30
30
 
31
31
  # Custom
32
32
  custom = "custom"
@@ -5,17 +5,17 @@ class MoveSegmentation(ModelObject):
5
5
  """Move segmentation parameters"""
6
6
  def __init__(self):
7
7
  super().__init__()
8
- self._segments_per_sec = 0
9
- self._min_segment_length = 0
8
+ self._segments_per_sec = 0.0
9
+ self._min_segment_length = 0.0
10
10
 
11
11
  @property
12
- def segments_per_sec(self) -> int:
12
+ def segments_per_sec(self) -> float:
13
13
  """Number of segments per second"""
14
14
  return self._segments_per_sec
15
15
 
16
16
  @segments_per_sec.setter
17
17
  def segments_per_sec(self, value):
18
- self._segments_per_sec = int(value)
18
+ self._segments_per_sec = float(value)
19
19
 
20
20
  @property
21
21
  def min_segment_length(self) -> float:
@@ -20,6 +20,7 @@ class PluginManifest(ModelObject):
20
20
  self._name = None
21
21
  self._rrf_version = None
22
22
  self._sbc_auto_restart = False
23
+ self._sbc_config_files = []
23
24
  self._sbc_dsf_version = None
24
25
  self._sbc_executable = None
25
26
  self._sbc_executable_arguments = []
@@ -137,6 +138,13 @@ class PluginManifest(ModelObject):
137
138
  @sbc_auto_restart.setter
138
139
  def sbc_auto_restart(self, value):
139
140
  self._sbc_auto_restart = bool(value)
141
+
142
+ @property
143
+ def sbc_config_files(self) -> List[str]:
144
+ """List of files in the sys or virtual SD directory that should not be overwritten on upgrade
145
+ The file may be specified either relative to 0:/sys directory (e.g. motion.conf) or relative to the
146
+ virtual SD directory (e.g. sys/motion.conf). Drive indices as in 0:/sys/motion.conf are not allowed!"""
147
+ return self._sbc_config_files
140
148
 
141
149
  @property
142
150
  def sbc_dsf_version(self) -> str:
@@ -13,6 +13,7 @@ class DSF(ModelObject):
13
13
  super().__init__()
14
14
  self._build_date_time = ""
15
15
  self._http_endpoints = ModelCollection(HttpEndpoint)
16
+ self._is64bit = False
16
17
  self._plugin_support = False
17
18
  self._root_plugin_support = False
18
19
  self._user_sessions = ModelCollection(UserSession)
@@ -27,6 +28,15 @@ class DSF(ModelObject):
27
28
  def build_date_time(self, value):
28
29
  self._build_date_time = str(value)
29
30
 
31
+ @property
32
+ def is64bit(self) -> bool:
33
+ """Indicates if the process is 64-bit"""
34
+ return self._is64bit
35
+
36
+ @is64bit.setter
37
+ def is64bit(self, value):
38
+ self._is64bit = bool(value)
39
+
30
40
  @property
31
41
  def http_endpoints(self) -> List[HttpEndpoint]:
32
42
  """List of registered third-party HTTP endpoints"""