thrustlab 0.4.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.
- thrustlab-0.4.0/.gitignore +8 -0
- thrustlab-0.4.0/CHANGELOG.md +385 -0
- thrustlab-0.4.0/LICENSE +201 -0
- thrustlab-0.4.0/NOTICE +8 -0
- thrustlab-0.4.0/PKG-INFO +231 -0
- thrustlab-0.4.0/README.md +199 -0
- thrustlab-0.4.0/examples/components/create_component.py +106 -0
- thrustlab-0.4.0/examples/dynamic/run_and_poll.py +86 -0
- thrustlab-0.4.0/examples/outputs/read_dynamic.py +107 -0
- thrustlab-0.4.0/examples/outputs/read_steady_state.py +116 -0
- thrustlab-0.4.0/examples/projects/create.py +5 -0
- thrustlab-0.4.0/examples/projects/list.py +7 -0
- thrustlab-0.4.0/examples/projects/retrieve.py +5 -0
- thrustlab-0.4.0/examples/quickstart.py +52 -0
- thrustlab-0.4.0/examples/simulations/run_sync.py +56 -0
- thrustlab-0.4.0/examples/simulations/wait.py +8 -0
- thrustlab-0.4.0/examples/sweeps/run_and_poll.py +57 -0
- thrustlab-0.4.0/examples/webhooks/verify_handler.py +24 -0
- thrustlab-0.4.0/pyproject.toml +61 -0
- thrustlab-0.4.0/tests/__init__.py +0 -0
- thrustlab-0.4.0/tests/conftest.py +16 -0
- thrustlab-0.4.0/tests/test_async_polling.py +168 -0
- thrustlab-0.4.0/tests/test_client.py +66 -0
- thrustlab-0.4.0/tests/test_components_create.py +70 -0
- thrustlab-0.4.0/tests/test_components_find.py +143 -0
- thrustlab-0.4.0/tests/test_dynamic_resource.py +51 -0
- thrustlab-0.4.0/tests/test_exceptions.py +43 -0
- thrustlab-0.4.0/tests/test_http.py +133 -0
- thrustlab-0.4.0/tests/test_pagination.py +142 -0
- thrustlab-0.4.0/tests/test_resources/__init__.py +0 -0
- thrustlab-0.4.0/tests/test_resources/test_components.py +61 -0
- thrustlab-0.4.0/tests/test_resources/test_compute_units.py +52 -0
- thrustlab-0.4.0/tests/test_resources/test_projects.py +60 -0
- thrustlab-0.4.0/tests/test_resources/test_simulations.py +67 -0
- thrustlab-0.4.0/tests/test_resources/test_starred_components.py +74 -0
- thrustlab-0.4.0/tests/test_resources/test_submissions.py +38 -0
- thrustlab-0.4.0/tests/test_resources/test_sweeps.py +77 -0
- thrustlab-0.4.0/tests/test_resources/test_users.py +13 -0
- thrustlab-0.4.0/tests/test_resources/test_webhook_endpoints.py +103 -0
- thrustlab-0.4.0/tests/test_spec_coverage.py +117 -0
- thrustlab-0.4.0/tests/test_webhooks.py +179 -0
- thrustlab-0.4.0/thrustlab/__init__.py +25 -0
- thrustlab-0.4.0/thrustlab/_async_polling.py +49 -0
- thrustlab-0.4.0/thrustlab/_http.py +167 -0
- thrustlab-0.4.0/thrustlab/_models/__init__.py +429 -0
- thrustlab-0.4.0/thrustlab/_models/airfoil_breakpoint.py +57 -0
- thrustlab-0.4.0/thrustlab/_models/airfoil_list_response.py +115 -0
- thrustlab-0.4.0/thrustlab/_models/airfoil_resource.py +148 -0
- thrustlab-0.4.0/thrustlab/_models/analyze_geometry_request.py +342 -0
- thrustlab-0.4.0/thrustlab/_models/analyze_geometry_request_mode.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/analyze_geometry_request_target_type_type_0.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/analyze_geometry_response.py +521 -0
- thrustlab-0.4.0/thrustlab/_models/analyze_geometry_response_envelope_limiting_factor_type_0.py +13 -0
- thrustlab-0.4.0/thrustlab/_models/analyze_geometry_response_envelope_status_type_0.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/analyze_station_row.py +150 -0
- thrustlab-0.4.0/thrustlab/_models/body_import_airfoil_v1_airfoils_import_post.py +85 -0
- thrustlab-0.4.0/thrustlab/_models/calibrate_accepted_response.py +82 -0
- thrustlab-0.4.0/thrustlab/_models/component_brand.py +80 -0
- thrustlab-0.4.0/thrustlab/_models/component_brands_response.py +108 -0
- thrustlab-0.4.0/thrustlab/_models/component_create_body.py +83 -0
- thrustlab-0.4.0/thrustlab/_models/component_create_body_spec_json.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/component_ids_response.py +98 -0
- thrustlab-0.4.0/thrustlab/_models/component_list_response.py +128 -0
- thrustlab-0.4.0/thrustlab/_models/component_patch.py +111 -0
- thrustlab-0.4.0/thrustlab/_models/component_patch_spec_json_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/component_resource.py +188 -0
- thrustlab-0.4.0/thrustlab/_models/component_resource_spec_json.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/component_sweep_axis_in.py +100 -0
- thrustlab-0.4.0/thrustlab/_models/component_sweep_axis_in_axis.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/component_write_response.py +232 -0
- thrustlab-0.4.0/thrustlab/_models/component_write_response_spec_json.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/component_write_warning.py +94 -0
- thrustlab-0.4.0/thrustlab/_models/create_webhook_endpoint_v1_webhook_endpoints_post_response_create_webhook_endpoint_v1_webhook_endpoints_post.py +51 -0
- thrustlab-0.4.0/thrustlab/_models/credit_balance_resource.py +149 -0
- thrustlab-0.4.0/thrustlab/_models/credit_bucket_breakdown.py +92 -0
- thrustlab-0.4.0/thrustlab/_models/credit_bucket_breakdown_type.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/credit_usage_event_resource.py +161 -0
- thrustlab-0.4.0/thrustlab/_models/credit_usage_event_resource_type.py +16 -0
- thrustlab-0.4.0/thrustlab/_models/credit_usage_event_resource_unit_type.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/credit_usage_list_response.py +116 -0
- thrustlab-0.4.0/thrustlab/_models/credit_usage_related_resource.py +71 -0
- thrustlab-0.4.0/thrustlab/_models/credit_usage_related_resource_object.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/credit_usage_summary_resource.py +147 -0
- thrustlab-0.4.0/thrustlab/_models/credit_usage_summary_resource_window.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/design_request.py +201 -0
- thrustlab-0.4.0/thrustlab/_models/design_request_target_mode.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_create_body.py +291 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_estimate_body.py +356 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_estimate_resource.py +63 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_list_response.py +100 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_patch.py +74 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_resource.py +340 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_resource_battery_topology_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_resource_display_labels_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_resource_error_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_resource_input_snapshot_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_resource_result_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_resource_status.py +12 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_rotor_group_in.py +229 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_rotor_group_in_esc_timing.py +11 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_rotor_group_in_esc_type.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_rotor_group_in_motor_cooling_source.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_rotor_in.py +254 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_rotor_in_esc_timing.py +11 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_rotor_in_esc_type.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_rotor_in_motor_cooling_source.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/dynamic_rotor_in_rotation_sense.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/entitlements_resource.py +144 -0
- thrustlab-0.4.0/thrustlab/_models/export_geometry_request.py +363 -0
- thrustlab-0.4.0/thrustlab/_models/export_geometry_request_format.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/export_geometry_request_rotation_type_0.py +9 -0
- thrustlab-0.4.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 +49 -0
- thrustlab-0.4.0/thrustlab/_models/generate_geometry_request.py +382 -0
- thrustlab-0.4.0/thrustlab/_models/geometry_response.py +174 -0
- thrustlab-0.4.0/thrustlab/_models/geometry_style_resource.py +131 -0
- thrustlab-0.4.0/thrustlab/_models/geometry_styles_list_response.py +115 -0
- thrustlab-0.4.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 +50 -0
- thrustlab-0.4.0/thrustlab/_models/get_event_v1_events_event_id_get_response_get_event_v1_events_event_id_get.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/get_public_result_v1_public_results_slug_get_response_get_public_result_v1_public_results_slug_get.py +47 -0
- thrustlab-0.4.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
- thrustlab-0.4.0/thrustlab/_models/get_webhook_endpoint_v1_webhook_endpoints_public_id_get_response_get_webhook_endpoint_v1_webhook_endpoints_public_id_get.py +49 -0
- thrustlab-0.4.0/thrustlab/_models/http_validation_error.py +79 -0
- thrustlab-0.4.0/thrustlab/_models/list_deliveries_v1_webhook_endpoints_public_id_deliveries_get_response_list_deliveries_v1_webhook_endpoints_public_id_deliveries_get.py +50 -0
- thrustlab-0.4.0/thrustlab/_models/list_events_v1_events_get_response_list_events_v1_events_get.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/list_public_propellers_v1_public_propellers_get_response_list_public_propellers_v1_public_propellers_get.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/list_webhook_endpoints_v1_webhook_endpoints_get_response_list_webhook_endpoints_v1_webhook_endpoints_get.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/pack_leaf_in.py +92 -0
- thrustlab-0.4.0/thrustlab/_models/pack_parallel_in.py +113 -0
- thrustlab-0.4.0/thrustlab/_models/pack_series_in.py +104 -0
- thrustlab-0.4.0/thrustlab/_models/pack_topology_in.py +116 -0
- thrustlab-0.4.0/thrustlab/_models/patch_webhook_endpoint_v1_webhook_endpoints_public_id_patch_response_patch_webhook_endpoint_v1_webhook_endpoints_public_id_patch.py +50 -0
- thrustlab-0.4.0/thrustlab/_models/project_create_body.py +103 -0
- thrustlab-0.4.0/thrustlab/_models/project_list_response.py +108 -0
- thrustlab-0.4.0/thrustlab/_models/project_patch.py +113 -0
- thrustlab-0.4.0/thrustlab/_models/project_resource.py +193 -0
- thrustlab-0.4.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 +50 -0
- thrustlab-0.4.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 +50 -0
- thrustlab-0.4.0/thrustlab/_models/rotor_group_in.py +403 -0
- thrustlab-0.4.0/thrustlab/_models/rotor_group_in_esc_timing.py +11 -0
- thrustlab-0.4.0/thrustlab/_models/rotor_group_in_esc_type.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/rotor_group_in_motor_cooling_source.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/rotor_group_resource.py +161 -0
- thrustlab-0.4.0/thrustlab/_models/rotor_in.py +424 -0
- thrustlab-0.4.0/thrustlab/_models/rotor_in_esc_timing.py +11 -0
- thrustlab-0.4.0/thrustlab/_models/rotor_in_esc_type.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/rotor_in_motor_cooling_source.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/rotor_in_rotation_sense.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/run_queued_v1v1_simulations_run_queued_post_response_run_queued_v1v1_simulations_run_queued_post.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/run_selected_body.py +42 -0
- thrustlab-0.4.0/thrustlab/_models/run_selected_v1v1_simulations_run_selected_post_response_run_selected_v1v1_simulations_run_selected_post.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/schedule_in.py +147 -0
- thrustlab-0.4.0/thrustlab/_models/schedule_in_interpolation_type_0.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/schedule_in_mode.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/segment_group_command_in.py +119 -0
- thrustlab-0.4.0/thrustlab/_models/segment_group_command_in_throttle_ramp_type_0.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/segment_group_command_in_tilt_ramp_type_0.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/segment_in.py +151 -0
- thrustlab-0.4.0/thrustlab/_models/segment_in_airspeed_ramp.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/segment_in_per_group.py +60 -0
- thrustlab-0.4.0/thrustlab/_models/segment_in_throttle_ramp.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/segment_in_vertical_speed_ramp.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/share_resource.py +80 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_cancel_body.py +25 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_create_body.py +403 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_create_body_cooling_source_type_0.py +11 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_create_body_flight_regime.py +11 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_create_body_inflow_mode.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_create_body_launch_intent.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_inputs.py +66 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_list_response.py +88 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_patch.py +121 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_patch_plot_config_json_type_0_item.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_resource.py +443 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_resource_battery_topology_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_resource_display_labels_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_resource_error_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_resource_input_snapshot_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_resource_plot_config_json_type_0_item.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_resource_result_type_0.py +66 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_resource_result_type_0_additional_property.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/simulation_resource_status.py +13 -0
- thrustlab-0.4.0/thrustlab/_models/spline_data.py +80 -0
- thrustlab-0.4.0/thrustlab/_models/starred_component_create_body.py +80 -0
- thrustlab-0.4.0/thrustlab/_models/starred_component_list_response.py +108 -0
- thrustlab-0.4.0/thrustlab/_models/starred_component_resource.py +106 -0
- thrustlab-0.4.0/thrustlab/_models/submission_create_body.py +121 -0
- thrustlab-0.4.0/thrustlab/_models/submission_create_body_data_json.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/submission_list_response.py +108 -0
- thrustlab-0.4.0/thrustlab/_models/submission_patch.py +174 -0
- thrustlab-0.4.0/thrustlab/_models/submission_patch_data_json_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/submission_resource.py +197 -0
- thrustlab-0.4.0/thrustlab/_models/submission_resource_data_json.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_cancel_body.py +42 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_config_in.py +342 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_config_in_esc_timing_values_type_0_item.py +11 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_create_body.py +347 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_create_body_cooling_source.py +11 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_create_body_inflow_mode.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_create_body_launch_intent.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_inputs.py +66 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_list_response.py +88 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_param_range_in.py +136 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_param_range_in_mode.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_patch.py +121 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_patch_plot_config_json_type_0_item.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_point_component_selection.py +112 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_point_inputs.py +282 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_point_list_response.py +124 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_point_list_response_display_labels_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_point_patch.py +42 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_point_resource.py +152 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_point_resource_rotors_type_0.py +66 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_point_resource_rotors_type_0_additional_property.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_resource.py +401 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_resource_error_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_resource_input_snapshot_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_resource_plot_config_json_type_0_item.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_resource_status.py +13 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_resource_summary_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_resource_sweep_config_type_0.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_rotor_group_in.py +394 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_rotor_group_in_esc_timing.py +11 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_rotor_group_in_esc_type.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_rotor_group_in_motor_cooling_source.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_rotor_in.py +426 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_rotor_in_esc_timing.py +11 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_rotor_in_esc_type.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_rotor_in_motor_cooling_source.py +10 -0
- thrustlab-0.4.0/thrustlab/_models/sweep_rotor_in_rotation_sense.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/termination_in.py +102 -0
- thrustlab-0.4.0/thrustlab/_models/termination_in_mode.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/types.py +55 -0
- thrustlab-0.4.0/thrustlab/_models/user_resource.py +224 -0
- thrustlab-0.4.0/thrustlab/_models/user_resource_gate_required_tiers.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/user_resource_unit_system.py +9 -0
- thrustlab-0.4.0/thrustlab/_models/v1_custom_component_override.py +84 -0
- thrustlab-0.4.0/thrustlab/_models/v1_custom_component_override_spec_json.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/v1_health_v1_health_get_response_v1_health_v1_health_get.py +47 -0
- thrustlab-0.4.0/thrustlab/_models/validation_error.py +90 -0
- thrustlab-0.4.0/thrustlab/_models/webhook_endpoint_create.py +91 -0
- thrustlab-0.4.0/thrustlab/_models/webhook_endpoint_patch.py +144 -0
- thrustlab-0.4.0/thrustlab/_pagination.py +150 -0
- thrustlab-0.4.0/thrustlab/_version.py +3 -0
- thrustlab-0.4.0/thrustlab/client.py +98 -0
- thrustlab-0.4.0/thrustlab/exceptions.py +156 -0
- thrustlab-0.4.0/thrustlab/resources/__init__.py +1 -0
- thrustlab-0.4.0/thrustlab/resources/_base.py +12 -0
- thrustlab-0.4.0/thrustlab/resources/components.py +116 -0
- thrustlab-0.4.0/thrustlab/resources/compute_units.py +45 -0
- thrustlab-0.4.0/thrustlab/resources/dynamic_simulations.py +135 -0
- thrustlab-0.4.0/thrustlab/resources/projects.py +59 -0
- thrustlab-0.4.0/thrustlab/resources/simulations.py +87 -0
- thrustlab-0.4.0/thrustlab/resources/starred_components.py +95 -0
- thrustlab-0.4.0/thrustlab/resources/submissions.py +94 -0
- thrustlab-0.4.0/thrustlab/resources/sweeps.py +108 -0
- thrustlab-0.4.0/thrustlab/resources/users.py +13 -0
- thrustlab-0.4.0/thrustlab/resources/webhook_endpoints.py +163 -0
- thrustlab-0.4.0/thrustlab/webhooks.py +120 -0
|
@@ -0,0 +1,385 @@
|
|
|
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.4.0] - 2026-08-27
|
|
12
|
+
|
|
13
|
+
Contract refresh for the production `/v1/` API. This release adds the current
|
|
14
|
+
multi-rotor, battery-topology, geometry, entitlement, and native Rust solver
|
|
15
|
+
response models. It also removes generated models for an endpoint that is not
|
|
16
|
+
part of the public API.
|
|
17
|
+
|
|
18
|
+
### Breaking
|
|
19
|
+
|
|
20
|
+
- Paid accounts now represent unlimited monthly simulation usage explicitly:
|
|
21
|
+
`CreditBalanceResource.total` and `CreditUsageEventResource.balance_after`
|
|
22
|
+
may be `None`, and `CreditBalanceResource.unlimited` states whether the
|
|
23
|
+
account has no monthly usage allowance. Concurrency and HTTP rate limits are
|
|
24
|
+
still enforced separately.
|
|
25
|
+
- Removed `PreviewRequest` and `GeometryPreviewResponse`. The corresponding
|
|
26
|
+
`/v1/geometry/preview` operation was not a public live endpoint; use
|
|
27
|
+
`client.geometry.generate(...)` or `client.geometry.analyze(...)` instead.
|
|
28
|
+
- The generated sweep-point payload is now typed as `SweepPointInputs` with a
|
|
29
|
+
nested `SweepPointComponentSelection`, replacing the unstructured
|
|
30
|
+
`SweepPointResourceInputs` model.
|
|
31
|
+
- Generated dynamic schedule enum names now include the nullable-union suffix:
|
|
32
|
+
`SegmentGroupCommandInThrottleRampType0` and
|
|
33
|
+
`SegmentGroupCommandInTiltRampType0` replace their unsuffixed counterparts.
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- Single-point, sweep, and dynamic requests accept an ordered `rotors` list.
|
|
38
|
+
Each rotor can carry its rotation sense and coaxial stack/position metadata;
|
|
39
|
+
legacy grouped inputs remain accepted for compatibility. Rotor-group counts
|
|
40
|
+
now support up to 40 rotors.
|
|
41
|
+
- Structured `PackTopologyIn` battery definitions with series, parallel, and
|
|
42
|
+
leaf nodes. Simulation and dynamic resources return the stored topology.
|
|
43
|
+
- Simulation, sweep, and dynamic resources expose `solver_engine`; dynamic
|
|
44
|
+
resources also expose `snapshot_version`.
|
|
45
|
+
- Dynamic rotor groups expose the full ESC contract: type, timing, PWM
|
|
46
|
+
frequency, resistance, motor-wire resistance, and synchronous rectification.
|
|
47
|
+
- Geometry design/generation accepts explicit radial station arrays, hub ratio,
|
|
48
|
+
airfoil layout, and one to 16 blades. Analysis responses expose validation
|
|
49
|
+
envelope status/limiting factor and `Ct_raw`, `Cp_raw`, `thrust_raw`,
|
|
50
|
+
`torque_raw`, and `power_raw`.
|
|
51
|
+
- Entitlements expose `max_concurrent_runs` and `fmi_export`. User resources
|
|
52
|
+
expose first/last name and required-tier gate metadata.
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
|
|
56
|
+
- The published contract and generated models now identify native Rust solver
|
|
57
|
+
results via the `solver_engine` response field (`prom-rs/0.2.1` in this
|
|
58
|
+
release).
|
|
59
|
+
- Hobbyist and Pro usage is unlimited. `max_concurrent_runs` communicates the
|
|
60
|
+
account-wide queue width (one for Hobbyist and five for Pro); request rate
|
|
61
|
+
limiting remains independent of simulation concurrency.
|
|
62
|
+
- **Physical inputs that were silently accepted out of range are now rejected
|
|
63
|
+
with a `422` naming the field.** The intervals below were already enforced one
|
|
64
|
+
layer inside the API, but they were absent from the request schema — so a
|
|
65
|
+
request carrying one of these values either returned an unhelpful `500` or, for
|
|
66
|
+
the pinned motor temperatures, was accepted and run. Nothing in range changes:
|
|
67
|
+
every previously-valid request is still valid and returns the same numbers.
|
|
68
|
+
|
|
69
|
+
| Field | Accepted range |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| `density_kg_m3` (simulation, sweep, dynamic, dynamic estimate) | `0 < x <= 2.0` kg/m³ |
|
|
72
|
+
| `airspeed_m_s` (simulation, sweep) | `0 – 100` m/s |
|
|
73
|
+
| `airspeed_target` (dynamic schedule segment and CSV row) | `0 – 100` m/s |
|
|
74
|
+
| `throttle_pct` (rotor group) | `0 – 100` % |
|
|
75
|
+
| `esc_resistance_mohm`, `esc_motor_wire_resistance_mohm` (rotor group) | `0 – 10000` mΩ |
|
|
76
|
+
| `battery_esc_wire_resistance_mohm` (simulation, sweep) | `0 – 10000` mΩ |
|
|
77
|
+
| `motor_t_w`, `motor_t_mag` (rotor group) | `-60 – 250` °C |
|
|
78
|
+
|
|
79
|
+
The motor-temperature pins are the ones worth checking in existing code: they
|
|
80
|
+
are **degrees Celsius**, and a value in kelvin (e.g. `293.15`) used to be
|
|
81
|
+
accepted and quietly changed the winding resistance and torque constant. It is
|
|
82
|
+
now a `422`.
|
|
83
|
+
|
|
84
|
+
Every one of these bounds also appears in the OpenAPI spec now, so a
|
|
85
|
+
spec-generated client can see them.
|
|
86
|
+
|
|
87
|
+
- **`esc_type` now defaults to `six_step` instead of `foc`** on `RotorGroupIn`
|
|
88
|
+
and `SweepRotorGroupIn` (ESC-7). This is a BEHAVIOUR change for any caller that
|
|
89
|
+
omits the field: `esc_type` selects the commutation convention — K_volt
|
|
90
|
+
(1/sqrt(3) vs sqrt(3)/pi), copper and iron multipliers, the six-step advance
|
|
91
|
+
physics, and the throttle→duty map. Measured on a 400 kV / 14-pole / 50 mOhm
|
|
92
|
+
motor at 22.2 V: RPM −4.56% at full throttle (−2.56% at 75%, −2.84% at 50%,
|
|
93
|
+
−3.71% at 25%), thrust −8.91% at full throttle to −5.06% at 75%.
|
|
94
|
+
|
|
95
|
+
Why: the API defaulted to `foc` while the web app has always sent `six_step`,
|
|
96
|
+
so the same powertrain returned different numbers depending on which surface
|
|
97
|
+
submitted it. Six-step is the researched default — catalog Kv is measured under
|
|
98
|
+
trapezoidal drive and real hobby ESCs are 120° block commutation — so aligning
|
|
99
|
+
the API to it makes the two agree without moving the web app.
|
|
100
|
+
|
|
101
|
+
**To keep the previous behaviour, send `esc_type="foc"` explicitly.** Stored
|
|
102
|
+
simulations are unaffected: the column default changed with no backfill, so a
|
|
103
|
+
run recorded as FOC still re-runs as FOC.
|
|
104
|
+
|
|
105
|
+
### Fixed
|
|
106
|
+
|
|
107
|
+
- The source archive now uses an explicit public-package manifest, excluding
|
|
108
|
+
monorepo-only release tooling while retaining the SDK, tests, examples,
|
|
109
|
+
changelog, and legal files.
|
|
110
|
+
|
|
111
|
+
## [0.3.2] - 2026-07-16
|
|
112
|
+
|
|
113
|
+
Bug-fix release: a docs-vs-code audit found several SDK surfaces that
|
|
114
|
+
silently did nothing (the server ignores unknown query params) or targeted
|
|
115
|
+
endpoints that don't exist. No new API surface beyond the fixes below.
|
|
116
|
+
|
|
117
|
+
### Fixed
|
|
118
|
+
|
|
119
|
+
- **`list(project_id=...)` on `simulations`, `sweeps`, and
|
|
120
|
+
`dynamic_simulations` now actually filters.** The SDK sent a `project_id`
|
|
121
|
+
query key but the endpoints read `project` — the filter was silently
|
|
122
|
+
ignored and every listing returned ALL of the caller's runs. The kwarg
|
|
123
|
+
name is unchanged; the SDK now sends the right param.
|
|
124
|
+
- **`projects.list`, `submissions.list`, `webhook_endpoints.list`,
|
|
125
|
+
`list_events`, and `list_deliveries` pagination kwarg renamed
|
|
126
|
+
`starting_after=` → `cursor=`.** The endpoints read `cursor`;
|
|
127
|
+
`starting_after` was silently ignored (same defect the 0.3.0 changelog
|
|
128
|
+
fixed for sims/sweeps — these five were missed).
|
|
129
|
+
- **BREAKING — `client.starred_components` rewritten against the real API.**
|
|
130
|
+
The previous resource targeted `GET/POST /v1/projects/{pid}/starred-components`,
|
|
131
|
+
which does not exist under `/v1/` — every call 404'd. Stars are flat,
|
|
132
|
+
first-class resources:
|
|
133
|
+
- `list(project_id=..., component_type=..., cursor=...)` →
|
|
134
|
+
`GET /v1/starred_components`;
|
|
135
|
+
- `add(project_id=..., component_id=..., component_type=...)` →
|
|
136
|
+
`POST /v1/starred_components` (component_type is required; duplicate
|
|
137
|
+
star raises `ConflictError` 409 `already_starred`);
|
|
138
|
+
- `remove(star_id)` → `DELETE /v1/starred_components/{star_id}` — keys on
|
|
139
|
+
the star's own `star_<ksuid>` id (from `list()`/`add()`), not the
|
|
140
|
+
component id.
|
|
141
|
+
- **`APIError.request_id` is now populated.** It is read from the error
|
|
142
|
+
envelope's `request_id` (with the `X-Request-ID` response header as a
|
|
143
|
+
fallback); previously the SDK only read the header, which the server did
|
|
144
|
+
not send, so `request_id` was always `None`.
|
|
145
|
+
|
|
146
|
+
### Added
|
|
147
|
+
|
|
148
|
+
- `simulations.list(status=...)` — filter by `queued` / `running` /
|
|
149
|
+
`completed` / `failed` / `canceled`.
|
|
150
|
+
- `submissions.list(status=...)` — filter by moderation status.
|
|
151
|
+
- `submissions.update(id, ...)` / `submissions.withdraw(id)` — edit or
|
|
152
|
+
withdraw a submission while it is still `submitted`.
|
|
153
|
+
- `webhook_endpoints.list_deliveries(..., event_type=..., created_at_gte=...)`
|
|
154
|
+
— the endpoint's remaining filters, previously unreachable from the SDK.
|
|
155
|
+
|
|
156
|
+
## [0.3.1] - 2026-07-16
|
|
157
|
+
|
|
158
|
+
Packaging-metadata fix, no code changes:
|
|
159
|
+
|
|
160
|
+
- The `Repository` project URL shipped in 0.3.0 carried a literal
|
|
161
|
+
`<owner>` placeholder; it now points to the public SDK repo,
|
|
162
|
+
`https://github.com/kbedrich/thrustlab-sdk`.
|
|
163
|
+
- README links corrected to the same repo.
|
|
164
|
+
|
|
165
|
+
## [0.3.0] - 2026-07-15
|
|
166
|
+
|
|
167
|
+
The ThrustLab public API was refocused to a **product-only** surface: account,
|
|
168
|
+
billing, subscription, API-key and geometry-calibration management are no
|
|
169
|
+
longer part of the public `/v1/` contract. This SDK release realigns the
|
|
170
|
+
client to that surface.
|
|
171
|
+
|
|
172
|
+
> **0.2.0 was built but never published to PyPI.** 0.3.0 is the first release
|
|
173
|
+
> after 0.1.2, and it **consolidates the unpublished 0.2.0 changes** (canonical
|
|
174
|
+
> `snake_case` result keys, the `dynamic_simulations` resource, the sims/sweeps
|
|
175
|
+
> `cursor` fix) together with the API-refocus breaking changes below. If you are
|
|
176
|
+
> upgrading from `0.1.x`, read this whole entry — it is the full delta.
|
|
177
|
+
|
|
178
|
+
### Removed
|
|
179
|
+
|
|
180
|
+
- **BREAKING — `client.subscriptions` and `client.api_keys` resources are gone.**
|
|
181
|
+
Subscription/billing-portal and API-key management are not part of the public
|
|
182
|
+
product SDK. `client.subscriptions` / `client.api_keys` now raise
|
|
183
|
+
`AttributeError`. (Create and manage API keys from the ThrustLab dashboard.)
|
|
184
|
+
|
|
185
|
+
### Changed
|
|
186
|
+
|
|
187
|
+
- **BREAKING — `client.credits` renamed to `client.compute_units`.** The public
|
|
188
|
+
credits surface was renamed to *compute units*:
|
|
189
|
+
- accessor `client.credits` → `client.compute_units`;
|
|
190
|
+
- method `usage(...)` → `transactions(...)`;
|
|
191
|
+
- endpoints `/v1/credits/balance` → `/v1/compute-units/balance` and
|
|
192
|
+
`/v1/credits/usage` → `/v1/compute-units/transactions`;
|
|
193
|
+
- the pager keyword `starting_after=` → `cursor=` (the endpoint reads `cursor`;
|
|
194
|
+
this matches the 0.2.0 sims/sweeps fix — a `starting_after=` kwarg was
|
|
195
|
+
silently ignored). The `credit_type=` filter keyword is unchanged.
|
|
196
|
+
- **BREAKING (from the unpublished 0.2.0) — result payloads are canonical
|
|
197
|
+
`snake_case` across single-point, sweep, AND dynamic endpoints**, each with a
|
|
198
|
+
sibling `display_labels` map (`{snake_key: "Human Label"}`). Consumers that
|
|
199
|
+
parsed the old display-label result keys on sweep points (`"Thrust (N)"`,
|
|
200
|
+
`"RPM"`, …) must read the snake keys (`thrust_n`, `rpm`, …) and use
|
|
201
|
+
`display_labels` to recover a human string.
|
|
202
|
+
- **BREAKING — simulation / sweep / dynamic create bodies drop the first-party
|
|
203
|
+
fields `solver`, `input_snapshot`, and `design_cl`.** These were never part of
|
|
204
|
+
the public product contract; passing them is no longer accepted. (They remain
|
|
205
|
+
present in *response* payloads where the server legitimately echoes them.)
|
|
206
|
+
- **BREAKING — rotor-group count is capped at 16 total rotors (Σ ≤ 16)** across
|
|
207
|
+
all groups on a create request; larger configurations are rejected by the API.
|
|
208
|
+
|
|
209
|
+
### Added
|
|
210
|
+
|
|
211
|
+
- **`client.components.create(...)`** — create a private custom component
|
|
212
|
+
(`POST /v1/components`) without dropping to the raw transport. Takes
|
|
213
|
+
`type`, `name`, `spec_json`, and an optional `idempotency_key`.
|
|
214
|
+
- Component create/update responses may carry a non-blocking `warnings` list
|
|
215
|
+
(`code` / `param` / `message`) when a spec value looks physically
|
|
216
|
+
implausible — e.g. a motor `R` far outside the expected range for its `kv`
|
|
217
|
+
and `weight` (milliohm/ohm mix-up, or a per-phase value where phase-to-phase
|
|
218
|
+
is expected). The write always succeeds.
|
|
219
|
+
- **`client.compute_units.summary()`** — usage-meter read for the current
|
|
220
|
+
metering window (`GET /v1/compute-units/summary`).
|
|
221
|
+
- **`client.dynamic_simulations` resource** (`create` / `retrieve` / `wait` /
|
|
222
|
+
`list` / `cancel` / `estimate`) mirroring `client.sweeps`, plus a runnable
|
|
223
|
+
dynamic example (`examples/dynamic/run_and_poll.py`).
|
|
224
|
+
- Runnable end-to-end examples for all three simulation types
|
|
225
|
+
(single-point / sweep / dynamic) reading canonical `snake_case` result keys,
|
|
226
|
+
and a corrected README quickstart using the real create body
|
|
227
|
+
(`rotor_groups=[…]` + `battery_component_id`).
|
|
228
|
+
|
|
229
|
+
### Fixed
|
|
230
|
+
|
|
231
|
+
- **`cursor` pagination** — an explicit `starting_after=` kwarg on
|
|
232
|
+
`simulations.list`, `sweeps.list`, and `sweeps.list_points` was silently
|
|
233
|
+
ignored (the backend reads `cursor`). The keyword argument is now `cursor=`.
|
|
234
|
+
Automatic multi-page iteration was unaffected.
|
|
235
|
+
|
|
236
|
+
### Migration from 0.1.x / 0.2.0
|
|
237
|
+
|
|
238
|
+
```python
|
|
239
|
+
# --- credits -> compute_units ---------------------------------------------
|
|
240
|
+
# before (<= 0.2.0)
|
|
241
|
+
balance = client.credits.balance()
|
|
242
|
+
for ev in client.credits.usage(credit_type="simulation", starting_after=cur):
|
|
243
|
+
...
|
|
244
|
+
|
|
245
|
+
# after (0.3.0)
|
|
246
|
+
balance = client.compute_units.balance()
|
|
247
|
+
for ev in client.compute_units.transactions(credit_type="simulation", cursor=cur):
|
|
248
|
+
...
|
|
249
|
+
|
|
250
|
+
# --- removed resources ----------------------------------------------------
|
|
251
|
+
# client.subscriptions.* and client.api_keys.* no longer exist — manage
|
|
252
|
+
# subscriptions and API keys from the ThrustLab dashboard.
|
|
253
|
+
|
|
254
|
+
# --- sweep result keys are snake_case (from 0.2.0) ------------------------
|
|
255
|
+
# before: point["rotors"]["1"]["Thrust (N)"]
|
|
256
|
+
# after: point["rotors"]["1"]["thrust_n"] # display_labels["thrust_n"] -> "Thrust (N)"
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
## [0.2.0] - 2026-07-09
|
|
260
|
+
|
|
261
|
+
### Changed
|
|
262
|
+
|
|
263
|
+
- **BREAKING — result payloads are now canonical `snake_case` across
|
|
264
|
+
single-point, sweep, AND dynamic endpoints, each with a sibling
|
|
265
|
+
`display_labels` map (`{snake_key: "Human Label"}`).** Single-point results
|
|
266
|
+
were already snake_case; this release aligns **sweep points** and **dynamic
|
|
267
|
+
samples** to the same contract. Consumers that parsed the old display-label
|
|
268
|
+
result keys on sweep points (`"Thrust (N)"`, `"RPM"`, `"Current (A)"`, …)
|
|
269
|
+
must now read the snake keys (`thrust_n`, `rpm`, `current_a`, …). Use the
|
|
270
|
+
sibling `display_labels` map to recover a human string for any key.
|
|
271
|
+
|
|
272
|
+
Migration:
|
|
273
|
+
|
|
274
|
+
```python
|
|
275
|
+
# before (0.1.x) — sweep point rotor keys were display labels
|
|
276
|
+
thrust = point["rotors"]["1"]["Thrust (N)"]
|
|
277
|
+
|
|
278
|
+
# after (0.2.0) — canonical snake_case, with display_labels for UI
|
|
279
|
+
thrust = point["rotors"]["1"]["thrust_n"]
|
|
280
|
+
label = sweep["display_labels"]["thrust_n"] # -> "Thrust (N)"
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
### Added
|
|
284
|
+
|
|
285
|
+
- **`client.dynamic_simulations` resource** (`create` / `retrieve` / `wait` /
|
|
286
|
+
`list` / `cancel` / `estimate`) mirroring `client.sweeps`, plus a runnable
|
|
287
|
+
dynamic example (`examples/dynamic/run_and_poll.py`).
|
|
288
|
+
- Runnable end-to-end examples for all three simulation types
|
|
289
|
+
(single-point / sweep / dynamic) reading canonical snake_case result keys,
|
|
290
|
+
and a corrected README quickstart that uses the real create body
|
|
291
|
+
(`rotor_groups=[…]` + `battery_component_id`, not the phantom
|
|
292
|
+
`motor=/propeller=/battery=/throttle=` kwargs).
|
|
293
|
+
|
|
294
|
+
### Fixed
|
|
295
|
+
|
|
296
|
+
- **`cursor` pagination** — an explicit `starting_after=` kwarg on
|
|
297
|
+
`simulations.list`, `sweeps.list`, and `sweeps.list_points` was silently
|
|
298
|
+
ignored (the backend reads `cursor`). The keyword argument is now `cursor=`.
|
|
299
|
+
Automatic multi-page iteration was unaffected.
|
|
300
|
+
|
|
301
|
+
### Corrected (documentation record)
|
|
302
|
+
|
|
303
|
+
- The 0.1.0 changelog listed a `geometry` resource module and terminal states
|
|
304
|
+
`succeeded`/`cancelled` that never matched the shipped library. The SDK has
|
|
305
|
+
**no** `geometry` resource, and the canonical terminal states are
|
|
306
|
+
`completed` / `failed` / `canceled` (one-L wire spelling), with a
|
|
307
|
+
`timed_out` client-side sentinel from `wait()`.
|
|
308
|
+
|
|
309
|
+
## [0.1.2] - 2026-07-08
|
|
310
|
+
|
|
311
|
+
### Fixed
|
|
312
|
+
|
|
313
|
+
- **`wait()` now recognizes the canonical terminal states
|
|
314
|
+
`completed`/`failed`/`canceled`** (one-L `canceled` wire spelling). The
|
|
315
|
+
previous set omitted `canceled`, so `wait()` polled forever on a canceled
|
|
316
|
+
run until it hit the timeout sentinel.
|
|
317
|
+
|
|
318
|
+
## [0.1.1] - 2026-04-28
|
|
319
|
+
|
|
320
|
+
### Changed
|
|
321
|
+
|
|
322
|
+
- **License relicensed from MIT to Apache-2.0.** The Apache-2.0 license
|
|
323
|
+
includes an explicit patent grant scoped to the SDK plus a defensive
|
|
324
|
+
termination clause (anyone who sues ThrustLab for patent infringement
|
|
325
|
+
loses the patent grant). MIT had no explicit patent terms. ThrustLab
|
|
326
|
+
reserves all rights to the underlying simulation methodology that this
|
|
327
|
+
SDK calls; the license here applies only to this client library.
|
|
328
|
+
- Added `NOTICE` file alongside `LICENSE` per Apache convention.
|
|
329
|
+
|
|
330
|
+
### Migration from 0.1.0
|
|
331
|
+
|
|
332
|
+
If you pinned `thrustlab==0.1.0`, upgrade to `thrustlab==0.1.1`. No code
|
|
333
|
+
changes — only the license text differs. Version 0.1.0 has been yanked
|
|
334
|
+
from PyPI.
|
|
335
|
+
|
|
336
|
+
## [0.1.0] - 2026-04-27
|
|
337
|
+
|
|
338
|
+
Initial public beta release of the official ThrustLab Python SDK.
|
|
339
|
+
|
|
340
|
+
### Added
|
|
341
|
+
|
|
342
|
+
- Full coverage of the `/v1/` API surface across **12 resource modules**:
|
|
343
|
+
`api_keys`, `users`, `projects`, `simulations`, `sweeps`, `components`,
|
|
344
|
+
`submissions`, `starred_components`, `geometry`, `credits`,
|
|
345
|
+
`subscriptions`, `webhook_endpoints`.
|
|
346
|
+
- Sync transport (`httpx.Client`) with bearer-token authentication.
|
|
347
|
+
- Auto-generated `Idempotency-Key` header on every mutating request (override
|
|
348
|
+
via `idempotency_key=` keyword argument).
|
|
349
|
+
- Exponential backoff + jitter retry on 429, 5xx, and transient network
|
|
350
|
+
errors (`max_retries=3` default, configurable per client instance).
|
|
351
|
+
- `CursorPager[T]` lazy iterator for cursor-paginated list endpoints;
|
|
352
|
+
transparent multi-page iteration.
|
|
353
|
+
- `wait()` helpers on `simulations` and `sweeps` for polling async resources
|
|
354
|
+
to terminal state (`succeeded` / `failed` / `cancelled` / `timed_out`).
|
|
355
|
+
- `Webhook.verify()` for HMAC SHA256 webhook signature verification with
|
|
356
|
+
configurable timestamp tolerance (default 300 s).
|
|
357
|
+
- Stripe-style typed exception hierarchy:
|
|
358
|
+
`ThrustlabError` → `APIError` → `AuthenticationError`, `PermissionError`,
|
|
359
|
+
`NotFoundError`, `ValidationError`, `ConflictError`, `RateLimitError`,
|
|
360
|
+
`APIServerError`; plus `NetworkError`, `SignatureVerificationError`,
|
|
361
|
+
`ConfigurationError`.
|
|
362
|
+
- Pydantic v2 models generated from `openapi.json` via
|
|
363
|
+
`openapi-python-client`; used internally for request/response shaping.
|
|
364
|
+
- Configuration via constructor kwargs (`api_key`, `base_url`, `timeout`,
|
|
365
|
+
`max_retries`) or env vars (`THRUSTLAB_API_KEY`, `THRUSTLAB_BASE_URL`).
|
|
366
|
+
- 103 unit + integration tests (pytest).
|
|
367
|
+
|
|
368
|
+
### Out of scope (deferred)
|
|
369
|
+
|
|
370
|
+
- Async transport (`httpx.AsyncClient`). Planned for v0.2.
|
|
371
|
+
- Streaming response support.
|
|
372
|
+
- Python 3.9 compatibility.
|
|
373
|
+
- CLI tool (`thrustlab` command).
|
|
374
|
+
- SDKs in other languages.
|
|
375
|
+
|
|
376
|
+
## Pre-release rehearsal procedure
|
|
377
|
+
|
|
378
|
+
Before tagging v0.1.0, rehearse with:
|
|
379
|
+
|
|
380
|
+
1. Create a short-lived release-rehearsal branch from master.
|
|
381
|
+
2. Tag `sdk-py-v0.0.1-rc1` and push it.
|
|
382
|
+
3. The CI workflow runs build + TestPyPI publish only (gate step enforces
|
|
383
|
+
ancestry before either publish step fires).
|
|
384
|
+
4. Delete the rehearsal tag + branch after validation.
|
|
385
|
+
5. Tag `sdk-py-v0.1.0` from the actual master-merge commit for production publish.
|
thrustlab-0.4.0/LICENSE
ADDED
|
@@ -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.4.0/NOTICE
ADDED