thrustlab 0.1.0__tar.gz → 0.3.0__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 (266) hide show
  1. thrustlab-0.3.0/.impeccable/hook.cache.json +1 -0
  2. thrustlab-0.3.0/CHANGELOG.md +231 -0
  3. thrustlab-0.3.0/LICENSE +201 -0
  4. thrustlab-0.3.0/NOTICE +8 -0
  5. {thrustlab-0.1.0 → thrustlab-0.3.0}/PKG-INFO +59 -22
  6. {thrustlab-0.1.0 → thrustlab-0.3.0}/README.md +55 -19
  7. thrustlab-0.3.0/ci/public-ci.yml +35 -0
  8. thrustlab-0.3.0/examples/components/create_component.py +106 -0
  9. thrustlab-0.3.0/examples/dynamic/run_and_poll.py +74 -0
  10. thrustlab-0.3.0/examples/outputs/read_dynamic.py +99 -0
  11. thrustlab-0.3.0/examples/outputs/read_steady_state.py +114 -0
  12. thrustlab-0.3.0/examples/quickstart.py +50 -0
  13. thrustlab-0.3.0/examples/simulations/run_sync.py +54 -0
  14. thrustlab-0.3.0/examples/sweeps/run_and_poll.py +55 -0
  15. {thrustlab-0.1.0 → thrustlab-0.3.0}/pyproject.toml +3 -2
  16. thrustlab-0.3.0/scripts/publish_public_repo.sh +184 -0
  17. {thrustlab-0.1.0 → thrustlab-0.3.0}/scripts/regen_models.py +5 -0
  18. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_async_polling.py +18 -13
  19. thrustlab-0.3.0/tests/test_client.py +66 -0
  20. thrustlab-0.3.0/tests/test_components_create.py +70 -0
  21. thrustlab-0.3.0/tests/test_components_find.py +143 -0
  22. thrustlab-0.3.0/tests/test_dynamic_resource.py +51 -0
  23. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_pagination.py +34 -3
  24. thrustlab-0.3.0/tests/test_resources/test_compute_units.py +52 -0
  25. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_resources/test_simulations.py +2 -2
  26. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_resources/test_sweeps.py +2 -2
  27. thrustlab-0.3.0/tests/test_spec_coverage.py +118 -0
  28. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/__init__.py +5 -3
  29. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_async_polling.py +4 -2
  30. thrustlab-0.3.0/thrustlab/_models/__init__.py +377 -0
  31. thrustlab-0.3.0/thrustlab/_models/airfoil_breakpoint.py +57 -0
  32. thrustlab-0.1.0/thrustlab/_models/list_response_api_key.py → thrustlab-0.3.0/thrustlab/_models/airfoil_list_response.py +19 -20
  33. thrustlab-0.3.0/thrustlab/_models/airfoil_resource.py +148 -0
  34. thrustlab-0.3.0/thrustlab/_models/analyze_geometry_request.py +340 -0
  35. thrustlab-0.3.0/thrustlab/_models/analyze_geometry_request_mode.py +10 -0
  36. thrustlab-0.3.0/thrustlab/_models/analyze_geometry_request_target_type_type_0.py +9 -0
  37. thrustlab-0.3.0/thrustlab/_models/analyze_geometry_response.py +345 -0
  38. thrustlab-0.3.0/thrustlab/_models/analyze_station_row.py +150 -0
  39. thrustlab-0.3.0/thrustlab/_models/body_import_airfoil_v1_airfoils_import_post.py +85 -0
  40. thrustlab-0.3.0/thrustlab/_models/calibrate_accepted_response.py +82 -0
  41. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/component_create_body_spec_json.py +1 -0
  42. thrustlab-0.3.0/thrustlab/_models/component_ids_response.py +98 -0
  43. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/component_list_response.py +20 -0
  44. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/component_patch_spec_json_type_0.py +1 -0
  45. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/component_resource_spec_json.py +1 -0
  46. thrustlab-0.3.0/thrustlab/_models/component_sweep_axis_in.py +100 -0
  47. thrustlab-0.3.0/thrustlab/_models/component_sweep_axis_in_axis.py +10 -0
  48. thrustlab-0.3.0/thrustlab/_models/component_write_response.py +232 -0
  49. thrustlab-0.1.0/thrustlab/_models/sweep_point_resource_rotors_type_0.py → thrustlab-0.3.0/thrustlab/_models/component_write_response_spec_json.py +6 -5
  50. thrustlab-0.3.0/thrustlab/_models/component_write_warning.py +94 -0
  51. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/create_webhook_endpoint_v1_webhook_endpoints_post_response_create_webhook_endpoint_v1_webhook_endpoints_post.py +1 -0
  52. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/credit_usage_event_resource.py +9 -9
  53. thrustlab-0.1.0/thrustlab/_models/credit_usage_event_resource_credit_type.py → thrustlab-0.3.0/thrustlab/_models/credit_usage_event_resource_unit_type.py +1 -1
  54. thrustlab-0.3.0/thrustlab/_models/credit_usage_summary_resource.py +147 -0
  55. thrustlab-0.3.0/thrustlab/_models/credit_usage_summary_resource_window.py +9 -0
  56. thrustlab-0.3.0/thrustlab/_models/design_request.py +134 -0
  57. thrustlab-0.3.0/thrustlab/_models/design_request_target_mode.py +9 -0
  58. thrustlab-0.3.0/thrustlab/_models/dynamic_create_body.py +187 -0
  59. thrustlab-0.3.0/thrustlab/_models/dynamic_estimate_body.py +270 -0
  60. thrustlab-0.3.0/thrustlab/_models/dynamic_estimate_resource.py +63 -0
  61. thrustlab-0.3.0/thrustlab/_models/dynamic_list_response.py +100 -0
  62. thrustlab-0.1.0/thrustlab/_models/api_key_create.py → thrustlab-0.3.0/thrustlab/_models/dynamic_patch.py +26 -26
  63. thrustlab-0.3.0/thrustlab/_models/dynamic_resource.py +289 -0
  64. thrustlab-0.3.0/thrustlab/_models/dynamic_resource_display_labels_type_0.py +47 -0
  65. thrustlab-0.3.0/thrustlab/_models/dynamic_resource_error_type_0.py +47 -0
  66. thrustlab-0.3.0/thrustlab/_models/dynamic_resource_input_snapshot_type_0.py +47 -0
  67. thrustlab-0.3.0/thrustlab/_models/dynamic_resource_result_type_0.py +47 -0
  68. thrustlab-0.3.0/thrustlab/_models/dynamic_resource_status.py +12 -0
  69. thrustlab-0.3.0/thrustlab/_models/dynamic_rotor_group_in.py +150 -0
  70. thrustlab-0.3.0/thrustlab/_models/dynamic_rotor_group_in_motor_cooling_source.py +10 -0
  71. thrustlab-0.3.0/thrustlab/_models/entitlements_resource.py +127 -0
  72. thrustlab-0.3.0/thrustlab/_models/export_geometry_request.py +362 -0
  73. thrustlab-0.3.0/thrustlab/_models/export_geometry_request_format.py +10 -0
  74. thrustlab-0.3.0/thrustlab/_models/export_geometry_request_rotation_type_0.py +9 -0
  75. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/fire_test_event_v1_webhook_endpoints_public_id_test_post_response_fire_test_event_v1_webhook_endpoints_public_id_test_post.py +1 -0
  76. thrustlab-0.3.0/thrustlab/_models/generate_geometry_request.py +205 -0
  77. thrustlab-0.3.0/thrustlab/_models/geometry_preview_response.py +112 -0
  78. thrustlab-0.3.0/thrustlab/_models/geometry_response.py +174 -0
  79. thrustlab-0.3.0/thrustlab/_models/geometry_style_resource.py +131 -0
  80. thrustlab-0.3.0/thrustlab/_models/geometry_styles_list_response.py +115 -0
  81. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/get_delivery_v1_webhook_endpoints_public_id_deliveries_delivery_public_id_get_response_get_delivery_v1_webhook_endpoints_public_id_deliveries_delivery_public_id_get.py +1 -0
  82. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/get_event_v1_events_event_id_get_response_get_event_v1_events_event_id_get.py +1 -0
  83. thrustlab-0.3.0/thrustlab/_models/get_public_result_v1_public_results_slug_get_response_get_public_result_v1_public_results_slug_get.py +47 -0
  84. thrustlab-0.3.0/thrustlab/_models/get_shared_result_v1_public_share_share_token_get_response_get_shared_result_v1_public_share_share_token_get.py +51 -0
  85. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/get_webhook_endpoint_v1_webhook_endpoints_public_id_get_response_get_webhook_endpoint_v1_webhook_endpoints_public_id_get.py +1 -0
  86. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/list_deliveries_v1_webhook_endpoints_public_id_deliveries_get_response_list_deliveries_v1_webhook_endpoints_public_id_deliveries_get.py +1 -0
  87. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/list_events_v1_events_get_response_list_events_v1_events_get.py +1 -0
  88. thrustlab-0.3.0/thrustlab/_models/list_public_propellers_v1_public_propellers_get_response_list_public_propellers_v1_public_propellers_get.py +47 -0
  89. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/list_webhook_endpoints_v1_webhook_endpoints_get_response_list_webhook_endpoints_v1_webhook_endpoints_get.py +1 -0
  90. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/patch_webhook_endpoint_v1_webhook_endpoints_public_id_patch_response_patch_webhook_endpoint_v1_webhook_endpoints_public_id_patch.py +1 -0
  91. thrustlab-0.3.0/thrustlab/_models/preview_request.py +88 -0
  92. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/project_resource.py +66 -0
  93. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/retry_delivery_v1_webhook_endpoints_public_id_deliveries_delivery_public_id_retry_post_response_retry_delivery_v1_webhook_endpoints_public_id_deliveries_delivery_public_id_retry_post.py +1 -0
  94. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/rotate_webhook_secret_v1_webhook_endpoints_public_id_rotate_secret_post_response_rotate_webhook_secret_v1_webhook_endpoints_public_id_rotate_secret_post.py +1 -0
  95. thrustlab-0.3.0/thrustlab/_models/rotor_group_in.py +381 -0
  96. thrustlab-0.3.0/thrustlab/_models/rotor_group_in_esc_timing.py +11 -0
  97. thrustlab-0.3.0/thrustlab/_models/rotor_group_in_esc_type.py +9 -0
  98. thrustlab-0.3.0/thrustlab/_models/rotor_group_in_motor_cooling_source.py +10 -0
  99. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/rotor_group_resource.py +37 -0
  100. thrustlab-0.3.0/thrustlab/_models/run_queued_v1v1_simulations_run_queued_post_response_run_queued_v1v1_simulations_run_queued_post.py +47 -0
  101. thrustlab-0.3.0/thrustlab/_models/run_selected_body.py +42 -0
  102. thrustlab-0.3.0/thrustlab/_models/run_selected_v1v1_simulations_run_selected_post_response_run_selected_v1v1_simulations_run_selected_post.py +47 -0
  103. thrustlab-0.3.0/thrustlab/_models/schedule_in.py +147 -0
  104. thrustlab-0.3.0/thrustlab/_models/schedule_in_interpolation_type_0.py +9 -0
  105. thrustlab-0.3.0/thrustlab/_models/schedule_in_mode.py +9 -0
  106. thrustlab-0.3.0/thrustlab/_models/segment_group_command_in.py +88 -0
  107. thrustlab-0.3.0/thrustlab/_models/segment_group_command_in_throttle_ramp.py +9 -0
  108. thrustlab-0.3.0/thrustlab/_models/segment_group_command_in_tilt_ramp.py +9 -0
  109. thrustlab-0.3.0/thrustlab/_models/segment_in.py +151 -0
  110. thrustlab-0.3.0/thrustlab/_models/segment_in_airspeed_ramp.py +9 -0
  111. thrustlab-0.3.0/thrustlab/_models/segment_in_per_group.py +60 -0
  112. thrustlab-0.3.0/thrustlab/_models/segment_in_throttle_ramp.py +9 -0
  113. thrustlab-0.3.0/thrustlab/_models/segment_in_vertical_speed_ramp.py +9 -0
  114. thrustlab-0.1.0/thrustlab/_models/billing_portal_session_resource.py → thrustlab-0.3.0/thrustlab/_models/share_resource.py +23 -17
  115. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/simulation_cancel_body.py +1 -0
  116. thrustlab-0.3.0/thrustlab/_models/simulation_create_body.py +323 -0
  117. thrustlab-0.3.0/thrustlab/_models/simulation_create_body_cooling_source_type_0.py +11 -0
  118. thrustlab-0.3.0/thrustlab/_models/simulation_create_body_flight_regime.py +11 -0
  119. thrustlab-0.3.0/thrustlab/_models/simulation_create_body_inflow_mode.py +9 -0
  120. thrustlab-0.3.0/thrustlab/_models/simulation_create_body_launch_intent.py +10 -0
  121. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/simulation_patch_plot_config_json_type_0_item.py +1 -0
  122. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/simulation_resource.py +122 -4
  123. thrustlab-0.3.0/thrustlab/_models/simulation_resource_display_labels_type_0.py +47 -0
  124. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/simulation_resource_error_type_0.py +1 -0
  125. thrustlab-0.3.0/thrustlab/_models/simulation_resource_input_snapshot_type_0.py +47 -0
  126. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/simulation_resource_plot_config_json_type_0_item.py +1 -0
  127. thrustlab-0.3.0/thrustlab/_models/simulation_resource_result_type_0.py +66 -0
  128. thrustlab-0.3.0/thrustlab/_models/simulation_resource_result_type_0_additional_property.py +47 -0
  129. thrustlab-0.3.0/thrustlab/_models/simulation_resource_status.py +13 -0
  130. thrustlab-0.1.0/thrustlab/_models/user_patch.py → thrustlab-0.3.0/thrustlab/_models/spline_data.py +30 -23
  131. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/submission_create_body_data_json.py +1 -0
  132. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/submission_patch_data_json_type_0.py +1 -0
  133. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/submission_resource_data_json.py +1 -0
  134. thrustlab-0.3.0/thrustlab/_models/sweep_config_in.py +338 -0
  135. thrustlab-0.3.0/thrustlab/_models/sweep_config_in_esc_timing_values_type_0_item.py +11 -0
  136. thrustlab-0.3.0/thrustlab/_models/sweep_create_body.py +299 -0
  137. thrustlab-0.3.0/thrustlab/_models/sweep_create_body_cooling_source.py +11 -0
  138. thrustlab-0.3.0/thrustlab/_models/sweep_create_body_inflow_mode.py +9 -0
  139. thrustlab-0.3.0/thrustlab/_models/sweep_create_body_launch_intent.py +10 -0
  140. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_patch_plot_config_json_type_0_item.py +1 -0
  141. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_point_list_response.py +36 -0
  142. thrustlab-0.3.0/thrustlab/_models/sweep_point_list_response_display_labels_type_0.py +47 -0
  143. thrustlab-0.1.0/thrustlab/_models/portal_session_in.py → thrustlab-0.3.0/thrustlab/_models/sweep_point_patch.py +10 -10
  144. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_point_resource.py +34 -7
  145. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_point_resource_inputs.py +1 -0
  146. thrustlab-0.3.0/thrustlab/_models/sweep_point_resource_rotors_type_0.py +66 -0
  147. thrustlab-0.3.0/thrustlab/_models/sweep_point_resource_rotors_type_0_additional_property.py +47 -0
  148. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_resource.py +69 -4
  149. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_resource_error_type_0.py +1 -0
  150. thrustlab-0.3.0/thrustlab/_models/sweep_resource_input_snapshot_type_0.py +47 -0
  151. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_resource_plot_config_json_type_0_item.py +1 -0
  152. thrustlab-0.3.0/thrustlab/_models/sweep_resource_status.py +13 -0
  153. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_resource_summary_type_0.py +1 -0
  154. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_resource_sweep_config_type_0.py +1 -0
  155. thrustlab-0.3.0/thrustlab/_models/sweep_rotor_group_in.py +388 -0
  156. thrustlab-0.3.0/thrustlab/_models/sweep_rotor_group_in_esc_timing.py +11 -0
  157. thrustlab-0.3.0/thrustlab/_models/sweep_rotor_group_in_esc_type.py +9 -0
  158. thrustlab-0.3.0/thrustlab/_models/sweep_rotor_group_in_motor_cooling_source.py +10 -0
  159. thrustlab-0.3.0/thrustlab/_models/termination_in.py +102 -0
  160. thrustlab-0.3.0/thrustlab/_models/termination_in_mode.py +9 -0
  161. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/user_resource.py +29 -1
  162. thrustlab-0.3.0/thrustlab/_models/user_resource_unit_system.py +9 -0
  163. thrustlab-0.3.0/thrustlab/_models/v1_custom_component_override.py +84 -0
  164. thrustlab-0.3.0/thrustlab/_models/v1_custom_component_override_spec_json.py +47 -0
  165. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/v1_health_v1_health_get_response_v1_health_v1_health_get.py +1 -0
  166. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_pagination.py +52 -11
  167. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_version.py +1 -1
  168. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/client.py +7 -9
  169. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/exceptions.py +35 -0
  170. thrustlab-0.3.0/thrustlab/resources/components.py +116 -0
  171. thrustlab-0.3.0/thrustlab/resources/compute_units.py +45 -0
  172. thrustlab-0.3.0/thrustlab/resources/dynamic_simulations.py +133 -0
  173. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/resources/simulations.py +8 -3
  174. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/resources/sweeps.py +16 -6
  175. thrustlab-0.1.0/CHANGELOG.md +0 -60
  176. thrustlab-0.1.0/LICENSE +0 -21
  177. thrustlab-0.1.0/examples/quickstart.py +0 -15
  178. thrustlab-0.1.0/examples/simulations/run_sync.py +0 -25
  179. thrustlab-0.1.0/examples/sweeps/run_and_poll.py +0 -30
  180. thrustlab-0.1.0/tests/test_client.py +0 -33
  181. thrustlab-0.1.0/tests/test_resources/test_api_keys.py +0 -45
  182. thrustlab-0.1.0/tests/test_resources/test_credits.py +0 -27
  183. thrustlab-0.1.0/tests/test_resources/test_subscriptions.py +0 -45
  184. thrustlab-0.1.0/tests/test_spec_coverage.py +0 -74
  185. thrustlab-0.1.0/thrustlab/_models/__init__.py +0 -211
  186. thrustlab-0.1.0/thrustlab/_models/api_key.py +0 -184
  187. thrustlab-0.1.0/thrustlab/_models/api_key_with_secret.py +0 -192
  188. thrustlab-0.1.0/thrustlab/_models/checkout_session_resource.py +0 -94
  189. thrustlab-0.1.0/thrustlab/_models/rotor_group_in.py +0 -107
  190. thrustlab-0.1.0/thrustlab/_models/simulation_create_body.py +0 -128
  191. thrustlab-0.1.0/thrustlab/_models/simulation_resource_result_type_0.py +0 -46
  192. thrustlab-0.1.0/thrustlab/_models/subscription_create.py +0 -58
  193. thrustlab-0.1.0/thrustlab/_models/subscription_resource.py +0 -168
  194. thrustlab-0.1.0/thrustlab/_models/subscription_resource_status.py +0 -12
  195. thrustlab-0.1.0/thrustlab/_models/subscription_resource_tier.py +0 -12
  196. thrustlab-0.1.0/thrustlab/_models/sweep_config_in.py +0 -172
  197. thrustlab-0.1.0/thrustlab/_models/sweep_create_body.py +0 -138
  198. thrustlab-0.1.0/thrustlab/_models/sweep_rotor_group_in.py +0 -95
  199. thrustlab-0.1.0/thrustlab/resources/api_keys.py +0 -43
  200. thrustlab-0.1.0/thrustlab/resources/components.py +0 -60
  201. thrustlab-0.1.0/thrustlab/resources/credits.py +0 -40
  202. thrustlab-0.1.0/thrustlab/resources/subscriptions.py +0 -42
  203. {thrustlab-0.1.0 → thrustlab-0.3.0}/.gitignore +0 -0
  204. {thrustlab-0.1.0 → thrustlab-0.3.0}/Makefile +0 -0
  205. {thrustlab-0.1.0 → thrustlab-0.3.0}/examples/projects/create.py +0 -0
  206. {thrustlab-0.1.0 → thrustlab-0.3.0}/examples/projects/list.py +0 -0
  207. {thrustlab-0.1.0 → thrustlab-0.3.0}/examples/projects/retrieve.py +0 -0
  208. {thrustlab-0.1.0 → thrustlab-0.3.0}/examples/simulations/wait.py +0 -0
  209. {thrustlab-0.1.0 → thrustlab-0.3.0}/examples/webhooks/verify_handler.py +0 -0
  210. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/__init__.py +0 -0
  211. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/conftest.py +0 -0
  212. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_exceptions.py +0 -0
  213. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_http.py +0 -0
  214. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_resources/__init__.py +0 -0
  215. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_resources/test_components.py +0 -0
  216. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_resources/test_projects.py +0 -0
  217. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_resources/test_starred_components.py +0 -0
  218. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_resources/test_submissions.py +0 -0
  219. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_resources/test_users.py +0 -0
  220. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_resources/test_webhook_endpoints.py +0 -0
  221. {thrustlab-0.1.0 → thrustlab-0.3.0}/tests/test_webhooks.py +0 -0
  222. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_http.py +0 -0
  223. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/component_brand.py +0 -0
  224. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/component_brands_response.py +0 -0
  225. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/component_create_body.py +0 -0
  226. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/component_patch.py +0 -0
  227. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/component_resource.py +0 -0
  228. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/credit_balance_resource.py +0 -0
  229. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/credit_bucket_breakdown.py +0 -0
  230. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/credit_bucket_breakdown_type.py +0 -0
  231. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/credit_usage_event_resource_type.py +0 -0
  232. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/credit_usage_list_response.py +0 -0
  233. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/credit_usage_related_resource.py +0 -0
  234. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/credit_usage_related_resource_object.py +0 -0
  235. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/http_validation_error.py +0 -0
  236. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/project_create_body.py +0 -0
  237. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/project_list_response.py +0 -0
  238. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/project_patch.py +0 -0
  239. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/simulation_inputs.py +0 -0
  240. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/simulation_list_response.py +0 -0
  241. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/simulation_patch.py +0 -0
  242. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/starred_component_create_body.py +0 -0
  243. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/starred_component_list_response.py +0 -0
  244. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/starred_component_resource.py +0 -0
  245. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/submission_create_body.py +0 -0
  246. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/submission_list_response.py +0 -0
  247. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/submission_patch.py +0 -0
  248. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/submission_resource.py +0 -0
  249. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_cancel_body.py +0 -0
  250. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_inputs.py +0 -0
  251. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_list_response.py +0 -0
  252. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_param_range_in.py +0 -0
  253. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_param_range_in_mode.py +0 -0
  254. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/sweep_patch.py +0 -0
  255. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/types.py +0 -0
  256. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/validation_error.py +0 -0
  257. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/webhook_endpoint_create.py +0 -0
  258. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/_models/webhook_endpoint_patch.py +0 -0
  259. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/resources/__init__.py +0 -0
  260. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/resources/_base.py +0 -0
  261. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/resources/projects.py +0 -0
  262. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/resources/starred_components.py +0 -0
  263. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/resources/submissions.py +0 -0
  264. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/resources/users.py +0 -0
  265. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/resources/webhook_endpoints.py +0 -0
  266. {thrustlab-0.1.0 → thrustlab-0.3.0}/thrustlab/webhooks.py +0 -0
@@ -0,0 +1 @@
1
+ {"version":1,"sessions":{"4a041e4d-8a20-42d5-a6e0-f38606baf43c":{"updatedAt":1784225683709,"files":{"C:\\dev\\thrustlab\\frontend\\src\\lib\\help\\registry\\new-simulation.ts":{"editCount":1,"findings":[]},"C:\\dev\\thrustlab\\frontend\\src\\components\\submissions\\SubmissionForm.tsx":{"editCount":2,"findings":[]}}}}}
@@ -0,0 +1,231 @@
1
+ # Changelog
2
+
3
+ All notable changes to the `thrustlab` Python SDK are documented here. The
4
+ project follows [semantic versioning](https://semver.org/) independent of the
5
+ ThrustLab API version (which is permanently `/v1/`).
6
+
7
+ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
8
+
9
+ ## [Unreleased]
10
+
11
+ ## [0.3.0] - 2026-07-15
12
+
13
+ The ThrustLab public API was refocused to a **product-only** surface: account,
14
+ billing, subscription, API-key and geometry-calibration management are no
15
+ longer part of the public `/v1/` contract. This SDK release realigns the
16
+ client to that surface.
17
+
18
+ > **0.2.0 was built but never published to PyPI.** 0.3.0 is the first release
19
+ > after 0.1.2, and it **consolidates the unpublished 0.2.0 changes** (canonical
20
+ > `snake_case` result keys, the `dynamic_simulations` resource, the sims/sweeps
21
+ > `cursor` fix) together with the API-refocus breaking changes below. If you are
22
+ > upgrading from `0.1.x`, read this whole entry — it is the full delta.
23
+
24
+ ### Removed
25
+
26
+ - **BREAKING — `client.subscriptions` and `client.api_keys` resources are gone.**
27
+ Subscription/billing-portal and API-key management are not part of the public
28
+ product SDK. `client.subscriptions` / `client.api_keys` now raise
29
+ `AttributeError`. (Create and manage API keys from the ThrustLab dashboard.)
30
+
31
+ ### Changed
32
+
33
+ - **BREAKING — `client.credits` renamed to `client.compute_units`.** The public
34
+ credits surface was renamed to *compute units*:
35
+ - accessor `client.credits` → `client.compute_units`;
36
+ - method `usage(...)` → `transactions(...)`;
37
+ - endpoints `/v1/credits/balance` → `/v1/compute-units/balance` and
38
+ `/v1/credits/usage` → `/v1/compute-units/transactions`;
39
+ - the pager keyword `starting_after=` → `cursor=` (the endpoint reads `cursor`;
40
+ this matches the 0.2.0 sims/sweeps fix — a `starting_after=` kwarg was
41
+ silently ignored). The `credit_type=` filter keyword is unchanged.
42
+ - **BREAKING (from the unpublished 0.2.0) — result payloads are canonical
43
+ `snake_case` across single-point, sweep, AND dynamic endpoints**, each with a
44
+ sibling `display_labels` map (`{snake_key: "Human Label"}`). Consumers that
45
+ parsed the old display-label result keys on sweep points (`"Thrust (N)"`,
46
+ `"RPM"`, …) must read the snake keys (`thrust_n`, `rpm`, …) and use
47
+ `display_labels` to recover a human string.
48
+ - **BREAKING — simulation / sweep / dynamic create bodies drop the first-party
49
+ fields `solver`, `input_snapshot`, and `design_cl`.** These were never part of
50
+ the public product contract; passing them is no longer accepted. (They remain
51
+ present in *response* payloads where the server legitimately echoes them.)
52
+ - **BREAKING — rotor-group count is capped at 16 total rotors (Σ ≤ 16)** across
53
+ all groups on a create request; larger configurations are rejected by the API.
54
+
55
+ ### Added
56
+
57
+ - **`client.components.create(...)`** — create a private custom component
58
+ (`POST /v1/components`) without dropping to the raw transport. Takes
59
+ `type`, `name`, `spec_json`, and an optional `idempotency_key`.
60
+ - Component create/update responses may carry a non-blocking `warnings` list
61
+ (`code` / `param` / `message`) when a spec value looks physically
62
+ implausible — e.g. a motor `R` far outside the expected range for its `kv`
63
+ and `weight` (milliohm/ohm mix-up, or a per-phase value where phase-to-phase
64
+ is expected). The write always succeeds.
65
+ - **`client.compute_units.summary()`** — usage-meter read for the current
66
+ metering window (`GET /v1/compute-units/summary`).
67
+ - **`client.dynamic_simulations` resource** (`create` / `retrieve` / `wait` /
68
+ `list` / `cancel` / `estimate`) mirroring `client.sweeps`, plus a runnable
69
+ dynamic example (`examples/dynamic/run_and_poll.py`).
70
+ - Runnable end-to-end examples for all three simulation types
71
+ (single-point / sweep / dynamic) reading canonical `snake_case` result keys,
72
+ and a corrected README quickstart using the real create body
73
+ (`rotor_groups=[…]` + `battery_component_id`).
74
+
75
+ ### Fixed
76
+
77
+ - **`cursor` pagination** — an explicit `starting_after=` kwarg on
78
+ `simulations.list`, `sweeps.list`, and `sweeps.list_points` was silently
79
+ ignored (the backend reads `cursor`). The keyword argument is now `cursor=`.
80
+ Automatic multi-page iteration was unaffected.
81
+
82
+ ### Migration from 0.1.x / 0.2.0
83
+
84
+ ```python
85
+ # --- credits -> compute_units ---------------------------------------------
86
+ # before (<= 0.2.0)
87
+ balance = client.credits.balance()
88
+ for ev in client.credits.usage(credit_type="simulation", starting_after=cur):
89
+ ...
90
+
91
+ # after (0.3.0)
92
+ balance = client.compute_units.balance()
93
+ for ev in client.compute_units.transactions(credit_type="simulation", cursor=cur):
94
+ ...
95
+
96
+ # --- removed resources ----------------------------------------------------
97
+ # client.subscriptions.* and client.api_keys.* no longer exist — manage
98
+ # subscriptions and API keys from the ThrustLab dashboard.
99
+
100
+ # --- sweep result keys are snake_case (from 0.2.0) ------------------------
101
+ # before: point["rotors"]["1"]["Thrust (N)"]
102
+ # after: point["rotors"]["1"]["thrust_n"] # display_labels["thrust_n"] -> "Thrust (N)"
103
+ ```
104
+
105
+ ## [0.2.0] - 2026-07-09
106
+
107
+ ### Changed
108
+
109
+ - **BREAKING — result payloads are now canonical `snake_case` across
110
+ single-point, sweep, AND dynamic endpoints, each with a sibling
111
+ `display_labels` map (`{snake_key: "Human Label"}`).** Single-point results
112
+ were already snake_case; this release aligns **sweep points** and **dynamic
113
+ samples** to the same contract. Consumers that parsed the old display-label
114
+ result keys on sweep points (`"Thrust (N)"`, `"RPM"`, `"Current (A)"`, …)
115
+ must now read the snake keys (`thrust_n`, `rpm`, `current_a`, …). Use the
116
+ sibling `display_labels` map to recover a human string for any key.
117
+
118
+ Migration:
119
+
120
+ ```python
121
+ # before (0.1.x) — sweep point rotor keys were display labels
122
+ thrust = point["rotors"]["1"]["Thrust (N)"]
123
+
124
+ # after (0.2.0) — canonical snake_case, with display_labels for UI
125
+ thrust = point["rotors"]["1"]["thrust_n"]
126
+ label = sweep["display_labels"]["thrust_n"] # -> "Thrust (N)"
127
+ ```
128
+
129
+ ### Added
130
+
131
+ - **`client.dynamic_simulations` resource** (`create` / `retrieve` / `wait` /
132
+ `list` / `cancel` / `estimate`) mirroring `client.sweeps`, plus a runnable
133
+ dynamic example (`examples/dynamic/run_and_poll.py`).
134
+ - Runnable end-to-end examples for all three simulation types
135
+ (single-point / sweep / dynamic) reading canonical snake_case result keys,
136
+ and a corrected README quickstart that uses the real create body
137
+ (`rotor_groups=[…]` + `battery_component_id`, not the phantom
138
+ `motor=/propeller=/battery=/throttle=` kwargs).
139
+
140
+ ### Fixed
141
+
142
+ - **`cursor` pagination** — an explicit `starting_after=` kwarg on
143
+ `simulations.list`, `sweeps.list`, and `sweeps.list_points` was silently
144
+ ignored (the backend reads `cursor`). The keyword argument is now `cursor=`.
145
+ Automatic multi-page iteration was unaffected.
146
+
147
+ ### Corrected (documentation record)
148
+
149
+ - The 0.1.0 changelog listed a `geometry` resource module and terminal states
150
+ `succeeded`/`cancelled` that never matched the shipped library. The SDK has
151
+ **no** `geometry` resource, and the canonical terminal states are
152
+ `completed` / `failed` / `canceled` (one-L wire spelling), with a
153
+ `timed_out` client-side sentinel from `wait()`.
154
+
155
+ ## [0.1.2] - 2026-07-08
156
+
157
+ ### Fixed
158
+
159
+ - **`wait()` now recognizes the canonical terminal states
160
+ `completed`/`failed`/`canceled`** (one-L `canceled` wire spelling). The
161
+ previous set omitted `canceled`, so `wait()` polled forever on a canceled
162
+ run until it hit the timeout sentinel.
163
+
164
+ ## [0.1.1] - 2026-04-28
165
+
166
+ ### Changed
167
+
168
+ - **License relicensed from MIT to Apache-2.0.** The Apache-2.0 license
169
+ includes an explicit patent grant scoped to the SDK plus a defensive
170
+ termination clause (anyone who sues ThrustLab for patent infringement
171
+ loses the patent grant). MIT had no explicit patent terms. ThrustLab
172
+ reserves all rights to the underlying simulation methodology that this
173
+ SDK calls; the license here applies only to this client library.
174
+ - Added `NOTICE` file alongside `LICENSE` per Apache convention.
175
+
176
+ ### Migration from 0.1.0
177
+
178
+ If you pinned `thrustlab==0.1.0`, upgrade to `thrustlab==0.1.1`. No code
179
+ changes — only the license text differs. Version 0.1.0 has been yanked
180
+ from PyPI.
181
+
182
+ ## [0.1.0] - 2026-04-27
183
+
184
+ Initial public beta release of the official ThrustLab Python SDK.
185
+
186
+ ### Added
187
+
188
+ - Full coverage of the `/v1/` API surface across **12 resource modules**:
189
+ `api_keys`, `users`, `projects`, `simulations`, `sweeps`, `components`,
190
+ `submissions`, `starred_components`, `geometry`, `credits`,
191
+ `subscriptions`, `webhook_endpoints`.
192
+ - Sync transport (`httpx.Client`) with bearer-token authentication.
193
+ - Auto-generated `Idempotency-Key` header on every mutating request (override
194
+ via `idempotency_key=` keyword argument).
195
+ - Exponential backoff + jitter retry on 429, 5xx, and transient network
196
+ errors (`max_retries=3` default, configurable per client instance).
197
+ - `CursorPager[T]` lazy iterator for cursor-paginated list endpoints;
198
+ transparent multi-page iteration.
199
+ - `wait()` helpers on `simulations` and `sweeps` for polling async resources
200
+ to terminal state (`succeeded` / `failed` / `cancelled` / `timed_out`).
201
+ - `Webhook.verify()` for HMAC SHA256 webhook signature verification with
202
+ configurable timestamp tolerance (default 300 s).
203
+ - Stripe-style typed exception hierarchy:
204
+ `ThrustlabError` → `APIError` → `AuthenticationError`, `PermissionError`,
205
+ `NotFoundError`, `ValidationError`, `ConflictError`, `RateLimitError`,
206
+ `APIServerError`; plus `NetworkError`, `SignatureVerificationError`,
207
+ `ConfigurationError`.
208
+ - Pydantic v2 models generated from `openapi.json` via
209
+ `openapi-python-client`; used internally for request/response shaping.
210
+ - Configuration via constructor kwargs (`api_key`, `base_url`, `timeout`,
211
+ `max_retries`) or env vars (`THRUSTLAB_API_KEY`, `THRUSTLAB_BASE_URL`).
212
+ - 103 unit + integration tests (pytest).
213
+
214
+ ### Out of scope (deferred)
215
+
216
+ - Async transport (`httpx.AsyncClient`). Planned for v0.2.
217
+ - Streaming response support.
218
+ - Python 3.9 compatibility.
219
+ - CLI tool (`thrustlab` command).
220
+ - SDKs in other languages.
221
+
222
+ ## Pre-release rehearsal procedure
223
+
224
+ Before tagging v0.1.0, rehearse with:
225
+
226
+ 1. Create a short-lived release-rehearsal branch from master.
227
+ 2. Tag `sdk-py-v0.0.1-rc1` and push it.
228
+ 3. The CI workflow runs build + TestPyPI publish only (gate step enforces
229
+ ancestry before either publish step fires).
230
+ 4. Delete the rehearsal tag + branch after validation.
231
+ 5. Tag `sdk-py-v0.1.0` from the actual master-merge commit for production publish.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
thrustlab-0.3.0/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ ThrustLab Python SDK
2
+ Copyright (c) 2026 ThrustLab
3
+
4
+ This product includes software developed by ThrustLab.
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
@@ -1,17 +1,18 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: thrustlab
3
- Version: 0.1.0
3
+ Version: 0.3.0
4
4
  Summary: Official Python SDK for the ThrustLab API
5
5
  Project-URL: Homepage, https://thrustlab.com
6
6
  Project-URL: Documentation, https://thrustlab.com/docs
7
7
  Project-URL: Repository, https://github.com/<owner>/thrustlab
8
8
  Project-URL: Changelog, https://thrustlab.com/docs/changelog
9
9
  Author-email: ThrustLab <support@thrustlab.com>
10
- License: MIT
10
+ License: Apache-2.0
11
11
  License-File: LICENSE
12
+ License-File: NOTICE
12
13
  Classifier: Development Status :: 4 - Beta
13
14
  Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: License :: OSI Approved :: Apache Software License
15
16
  Classifier: Programming Language :: Python :: 3
16
17
  Classifier: Programming Language :: Python :: 3.10
17
18
  Classifier: Programming Language :: Python :: 3.11
@@ -33,7 +34,7 @@ Description-Content-Type: text/markdown
33
34
 
34
35
  [![PyPI](https://img.shields.io/pypi/v/thrustlab.svg)](https://pypi.org/project/thrustlab/)
35
36
  [![Python](https://img.shields.io/pypi/pyversions/thrustlab.svg)](https://pypi.org/project/thrustlab/)
36
- [![License](https://img.shields.io/pypi/l/thrustlab.svg)](https://github.com/kylebedrich/thrustlab/blob/master/backend/sdks/python/LICENSE)
37
+ [![License](https://img.shields.io/pypi/l/thrustlab.svg)](https://github.com/kylebedrich/thrustlab-sdk/blob/main/LICENSE)
37
38
 
38
39
  ## Install
39
40
 
@@ -48,23 +49,58 @@ Requires Python 3.10+.
48
49
  ```python
49
50
  from thrustlab import Client
50
51
 
51
- client = Client(api_key="key_...") # or set $THRUSTLAB_API_KEY
52
+ client = Client() # reads $THRUSTLAB_API_KEY (never hard-code the key)
52
53
 
53
54
  # Create a project
54
55
  project = client.projects.create(name="my project")
55
56
 
56
- # Run a simulation and wait for the result
57
+ # Run a single-point simulation and wait for the result.
58
+ # A rotor group carries the motor + propeller + throttle (0–100); the battery
59
+ # and flight condition are top-level. Resolve component IDs from the catalog
60
+ # (client.components.find(name=...)) or paste them directly.
57
61
  sim = client.simulations.create(
58
62
  project_id=project["id"],
59
- motor="comp_motor_xxx",
60
- propeller="comp_prop_xxx",
61
- battery="comp_batt_xxx",
62
- throttle=0.7,
63
+ battery_component_id="comp_batt_xxx",
64
+ airspeed_m_s=0.0,
65
+ density_kg_m3=1.225,
66
+ battery_charge_pct=100,
67
+ rotor_groups=[
68
+ {
69
+ "label": "main",
70
+ "count": 4,
71
+ "motor_component_id": "comp_motor_xxx",
72
+ "propeller_component_id": "comp_prop_xxx",
73
+ "throttle_pct": 70,
74
+ }
75
+ ],
63
76
  )
64
77
  result = client.simulations.wait(sim["id"], timeout=300)
65
- print(result)
78
+
79
+ # Canonical snake_case result: per-rotor group under "1"/"2"/…, roll-ups
80
+ # under "All" (a sibling `display_labels` map carries the human labels).
81
+ print(result["result"]["1"]["thrust_n"], result["result"]["All"]["total_thrust_n"])
66
82
  ```
67
83
 
84
+ Runnable end-to-end examples for every simulation type live in
85
+ [`examples/`](./examples): [`simulations/run_sync.py`](./examples/simulations/run_sync.py),
86
+ [`sweeps/run_and_poll.py`](./examples/sweeps/run_and_poll.py), and
87
+ [`dynamic/run_and_poll.py`](./examples/dynamic/run_and_poll.py).
88
+
89
+ ## Why the SDK (and not `urllib` / `wget`)?
90
+
91
+ Use this SDK — or, if you hand-roll a client, an HTTP library that is **not**
92
+ stdlib `urllib`. Requests from Python's `urllib.request` (and `wget`) are
93
+ **blocked at the Cloudflare edge** by a managed WAF rule matching the literal
94
+ `Python-urllib/*` User-Agent. The block is terminated at the edge: the request
95
+ **never reaches the ThrustLab API**, so you get an opaque HTML *error 1010*
96
+ challenge page — **not** a JSON error envelope. The API cannot return a
97
+ structured error for a request it never sees.
98
+
99
+ This SDK is built on [`httpx`](https://www.python-httpx.org/) and sends its own
100
+ `thrustlab-python/<version>` User-Agent, so it is **unaffected**. If you must
101
+ hand-roll a client, set an explicit non-`urllib` `User-Agent` header (e.g.
102
+ `requests`, `httpx`, or `curl`) and you will reach the API normally.
103
+
68
104
  ## Configuration
69
105
 
70
106
  | Setting | Constructor arg | Env var | Default |
@@ -79,17 +115,15 @@ print(result)
79
115
  Every `/v1/` route family is exposed as an attribute on the client:
80
116
 
81
117
  ```python
82
- client.api_keys
83
118
  client.users
84
119
  client.projects
85
120
  client.simulations
86
121
  client.sweeps
122
+ client.dynamic_simulations
87
123
  client.components
88
124
  client.submissions
89
125
  client.starred_components
90
- client.geometry
91
- client.credits
92
- client.subscriptions
126
+ client.compute_units
93
127
  client.webhook_endpoints
94
128
  ```
95
129
 
@@ -106,7 +140,7 @@ from thrustlab.exceptions import (
106
140
 
107
141
  client = Client()
108
142
  try:
109
- client.simulations.create(project_id="proj_xxx", motor="comp_xxx", ...)
143
+ client.simulations.create(project_id="proj_xxx", rotor_groups=[...], ...)
110
144
  except ValidationError as exc:
111
145
  print(f"bad request: {exc.code} ({exc.param}): {exc.message}")
112
146
  except RateLimitError as exc:
@@ -138,14 +172,17 @@ first_page = list(client.projects.list(limit=20))
138
172
 
139
173
  ## Async polling
140
174
 
141
- `simulations.wait()` and `sweeps.wait()` block until the resource reaches a
142
- terminal state (`succeeded`, `failed`, or `cancelled`) or the timeout fires:
175
+ `simulations.wait()`, `sweeps.wait()`, and `dynamic_simulations.wait()` block
176
+ until the resource reaches a terminal state (`completed`, `failed`, or
177
+ `canceled` — one 'l' on the wire) or the timeout fires. On timeout the returned
178
+ dict carries the SDK-side sentinel `status="timed_out"` (never a server state):
143
179
 
144
180
  ```python
145
181
  sweep = client.sweeps.create(...)
146
182
  result = client.sweeps.wait(sweep["id"], timeout=600, poll_interval=2.0)
147
- if result["status"] == "succeeded":
148
- print(result["outputs"])
183
+ if result["status"] == "completed":
184
+ for point in client.sweeps.list_points(sweep["id"]):
185
+ print(point["rotors"]["1"]["thrust_n"])
149
186
  ```
150
187
 
151
188
  ## Webhooks
@@ -183,8 +220,8 @@ client = Client(max_retries=0)
183
220
  - API reference: https://thrustlab.com/docs/reference
184
221
  - SDK guide: https://thrustlab.com/docs/sdk/python
185
222
  - Changelog: https://thrustlab.com/docs/changelog
186
- - Issue tracker: https://github.com/kylebedrich/thrustlab/issues
223
+ - Issue tracker: https://github.com/kylebedrich/thrustlab-sdk/issues
187
224
 
188
225
  ## License
189
226
 
190
- MIT
227
+ Apache-2.0. See [`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE).