pointcosm 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.
Files changed (179) hide show
  1. pointcosm-0.4.0/LICENSE +201 -0
  2. pointcosm-0.4.0/PKG-INFO +217 -0
  3. pointcosm-0.4.0/README.md +192 -0
  4. pointcosm-0.4.0/pyproject.toml +112 -0
  5. pointcosm-0.4.0/pyproject.toml.orig +87 -0
  6. pointcosm-0.4.0/src/pointcosm/__init__.py +233 -0
  7. pointcosm-0.4.0/src/pointcosm/_generated/__init__.py +8 -0
  8. pointcosm-0.4.0/src/pointcosm/_generated/api/__init__.py +1 -0
  9. pointcosm-0.4.0/src/pointcosm/_generated/api/assets/__init__.py +1 -0
  10. pointcosm-0.4.0/src/pointcosm/_generated/api/assets/storage_assets_complete_upload.py +211 -0
  11. pointcosm-0.4.0/src/pointcosm/_generated/api/assets/storage_assets_create.py +209 -0
  12. pointcosm-0.4.0/src/pointcosm/_generated/api/assets/storage_assets_create_credentials.py +217 -0
  13. pointcosm-0.4.0/src/pointcosm/_generated/api/assets/storage_assets_delete.py +205 -0
  14. pointcosm-0.4.0/src/pointcosm/_generated/api/assets/storage_assets_list.py +264 -0
  15. pointcosm-0.4.0/src/pointcosm/_generated/api/assets/storage_assets_retrieve.py +205 -0
  16. pointcosm-0.4.0/src/pointcosm/_generated/api/green_points/__init__.py +1 -0
  17. pointcosm-0.4.0/src/pointcosm/_generated/api/green_points/billing_green_points_account_retrieve.py +195 -0
  18. pointcosm-0.4.0/src/pointcosm/_generated/api/green_points/billing_green_points_ledger_list.py +230 -0
  19. pointcosm-0.4.0/src/pointcosm/_generated/api/products/__init__.py +1 -0
  20. pointcosm-0.4.0/src/pointcosm/_generated/api/products/train_products_list.py +224 -0
  21. pointcosm-0.4.0/src/pointcosm/_generated/api/products/train_products_retrieve.py +205 -0
  22. pointcosm-0.4.0/src/pointcosm/_generated/api/tasks/__init__.py +1 -0
  23. pointcosm-0.4.0/src/pointcosm/_generated/api/tasks/train_artifacts_create_download_url.py +233 -0
  24. pointcosm-0.4.0/src/pointcosm/_generated/api/tasks/train_artifacts_list.py +205 -0
  25. pointcosm-0.4.0/src/pointcosm/_generated/api/tasks/train_tasks_create.py +209 -0
  26. pointcosm-0.4.0/src/pointcosm/_generated/api/tasks/train_tasks_list.py +244 -0
  27. pointcosm-0.4.0/src/pointcosm/_generated/api/tasks/train_tasks_rerun.py +226 -0
  28. pointcosm-0.4.0/src/pointcosm/_generated/api/tasks/train_tasks_retrieve.py +205 -0
  29. pointcosm-0.4.0/src/pointcosm/_generated/api/user_storage_connections/__init__.py +1 -0
  30. pointcosm-0.4.0/src/pointcosm/_generated/api/user_storage_connections/storage_connections_create.py +209 -0
  31. pointcosm-0.4.0/src/pointcosm/_generated/api/user_storage_connections/storage_connections_delete.py +205 -0
  32. pointcosm-0.4.0/src/pointcosm/_generated/api/user_storage_connections/storage_connections_list.py +224 -0
  33. pointcosm-0.4.0/src/pointcosm/_generated/api/user_storage_connections/storage_connections_retrieve.py +205 -0
  34. pointcosm-0.4.0/src/pointcosm/_generated/api/user_storage_connections/storage_connections_update.py +226 -0
  35. pointcosm-0.4.0/src/pointcosm/_generated/api/webhook/__init__.py +1 -0
  36. pointcosm-0.4.0/src/pointcosm/_generated/api/webhook/webhooks_configuration_disable.py +178 -0
  37. pointcosm-0.4.0/src/pointcosm/_generated/api/webhook/webhooks_configuration_retrieve.py +178 -0
  38. pointcosm-0.4.0/src/pointcosm/_generated/api/webhook/webhooks_configuration_update.py +215 -0
  39. pointcosm-0.4.0/src/pointcosm/_generated/api/webhook/webhooks_secret_rotate.py +172 -0
  40. pointcosm-0.4.0/src/pointcosm/_generated/client.py +272 -0
  41. pointcosm-0.4.0/src/pointcosm/_generated/errors.py +16 -0
  42. pointcosm-0.4.0/src/pointcosm/_generated/models/__init__.py +277 -0
  43. pointcosm-0.4.0/src/pointcosm/_generated/models/api_error.py +102 -0
  44. pointcosm-0.4.0/src/pointcosm/_generated/models/api_error_details_type_0.py +47 -0
  45. pointcosm-0.4.0/src/pointcosm/_generated/models/api_failure_response.py +83 -0
  46. pointcosm-0.4.0/src/pointcosm/_generated/models/artifact_download_out.py +62 -0
  47. pointcosm-0.4.0/src/pointcosm/_generated/models/artifact_list_out.py +84 -0
  48. pointcosm-0.4.0/src/pointcosm/_generated/models/artifact_out.py +109 -0
  49. pointcosm-0.4.0/src/pointcosm/_generated/models/asset_create_in.py +152 -0
  50. pointcosm-0.4.0/src/pointcosm/_generated/models/asset_create_in_input_type.py +9 -0
  51. pointcosm-0.4.0/src/pointcosm/_generated/models/asset_create_in_upload_mode.py +9 -0
  52. pointcosm-0.4.0/src/pointcosm/_generated/models/asset_create_out.py +105 -0
  53. pointcosm-0.4.0/src/pointcosm/_generated/models/asset_ingestion_status.py +15 -0
  54. pointcosm-0.4.0/src/pointcosm/_generated/models/asset_list_out.py +99 -0
  55. pointcosm-0.4.0/src/pointcosm/_generated/models/asset_out.py +448 -0
  56. pointcosm-0.4.0/src/pointcosm/_generated/models/asset_out_asset_type.py +9 -0
  57. pointcosm-0.4.0/src/pointcosm/_generated/models/asset_out_upload_mode.py +9 -0
  58. pointcosm-0.4.0/src/pointcosm/_generated/models/asset_source_type.py +10 -0
  59. pointcosm-0.4.0/src/pointcosm/_generated/models/asset_status.py +13 -0
  60. pointcosm-0.4.0/src/pointcosm/_generated/models/billing_green_points_account_retrieve_response_200_type_0.py +83 -0
  61. pointcosm-0.4.0/src/pointcosm/_generated/models/billing_green_points_ledger_list_response_200_type_0.py +83 -0
  62. pointcosm-0.4.0/src/pointcosm/_generated/models/green_point_ledger_entry_out.py +167 -0
  63. pointcosm-0.4.0/src/pointcosm/_generated/models/green_point_ledger_page.py +99 -0
  64. pointcosm-0.4.0/src/pointcosm/_generated/models/input_limits_out.py +164 -0
  65. pointcosm-0.4.0/src/pointcosm/_generated/models/product_green_point_price_out.py +204 -0
  66. pointcosm-0.4.0/src/pointcosm/_generated/models/product_green_point_price_out_input_type.py +9 -0
  67. pointcosm-0.4.0/src/pointcosm/_generated/models/product_green_point_price_out_pricing_mode_type_0.py +9 -0
  68. pointcosm-0.4.0/src/pointcosm/_generated/models/product_input_limit_out.py +139 -0
  69. pointcosm-0.4.0/src/pointcosm/_generated/models/public_green_point_account_out.py +101 -0
  70. pointcosm-0.4.0/src/pointcosm/_generated/models/public_product_list_out.py +99 -0
  71. pointcosm-0.4.0/src/pointcosm/_generated/models/public_product_out.py +158 -0
  72. pointcosm-0.4.0/src/pointcosm/_generated/models/public_product_out_green_point_prices.py +62 -0
  73. pointcosm-0.4.0/src/pointcosm/_generated/models/public_product_out_input_limits.py +60 -0
  74. pointcosm-0.4.0/src/pointcosm/_generated/models/public_product_out_supported_input_types_item.py +9 -0
  75. pointcosm-0.4.0/src/pointcosm/_generated/models/safe_transfer_progress.py +278 -0
  76. pointcosm-0.4.0/src/pointcosm/_generated/models/safe_transfer_progress_direction.py +9 -0
  77. pointcosm-0.4.0/src/pointcosm/_generated/models/safe_transfer_progress_finished_at_quality_type_0.py +9 -0
  78. pointcosm-0.4.0/src/pointcosm/_generated/models/safe_transfer_progress_last_updated_at_quality.py +9 -0
  79. pointcosm-0.4.0/src/pointcosm/_generated/models/safe_transfer_progress_purpose.py +9 -0
  80. pointcosm-0.4.0/src/pointcosm/_generated/models/safe_transfer_progress_started_at_quality.py +9 -0
  81. pointcosm-0.4.0/src/pointcosm/_generated/models/safe_transfer_progress_status.py +10 -0
  82. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_assets_complete_upload_response_200_type_0.py +83 -0
  83. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_assets_create_credentials_response_200_type_0.py +83 -0
  84. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_assets_create_response_200_type_0.py +83 -0
  85. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_assets_delete_response_200_type_0.py +77 -0
  86. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_assets_list_response_200_type_0.py +83 -0
  87. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_assets_retrieve_response_200_type_0.py +83 -0
  88. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_connections_create_response_200_type_0.py +83 -0
  89. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_connections_delete_response_200_type_0.py +77 -0
  90. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_connections_list_response_200_type_0.py +85 -0
  91. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_connections_retrieve_response_200_type_0.py +83 -0
  92. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_connections_update_response_200_type_0.py +83 -0
  93. pointcosm-0.4.0/src/pointcosm/_generated/models/storage_credentials_out.py +149 -0
  94. pointcosm-0.4.0/src/pointcosm/_generated/models/task_asset_projection.py +70 -0
  95. pointcosm-0.4.0/src/pointcosm/_generated/models/task_create_in.py +68 -0
  96. pointcosm-0.4.0/src/pointcosm/_generated/models/task_create_in_parameters.py +47 -0
  97. pointcosm-0.4.0/src/pointcosm/_generated/models/task_detail_out.py +395 -0
  98. pointcosm-0.4.0/src/pointcosm/_generated/models/task_detail_out_rerun_attempt.py +9 -0
  99. pointcosm-0.4.0/src/pointcosm/_generated/models/task_green_point_charge_out.py +123 -0
  100. pointcosm-0.4.0/src/pointcosm/_generated/models/task_green_point_charge_out_input_type.py +9 -0
  101. pointcosm-0.4.0/src/pointcosm/_generated/models/task_green_point_charge_out_pricing_mode.py +9 -0
  102. pointcosm-0.4.0/src/pointcosm/_generated/models/task_green_point_charge_out_status.py +10 -0
  103. pointcosm-0.4.0/src/pointcosm/_generated/models/task_list_item.py +322 -0
  104. pointcosm-0.4.0/src/pointcosm/_generated/models/task_list_item_rerun_attempt.py +9 -0
  105. pointcosm-0.4.0/src/pointcosm/_generated/models/task_list_out.py +99 -0
  106. pointcosm-0.4.0/src/pointcosm/_generated/models/task_milestone_timing.py +177 -0
  107. pointcosm-0.4.0/src/pointcosm/_generated/models/task_milestone_timing_finish_time_quality.py +11 -0
  108. pointcosm-0.4.0/src/pointcosm/_generated/models/task_milestone_timing_lifecycle_status.py +11 -0
  109. pointcosm-0.4.0/src/pointcosm/_generated/models/task_milestone_timing_milestone.py +14 -0
  110. pointcosm-0.4.0/src/pointcosm/_generated/models/task_milestone_timing_start_time_quality.py +11 -0
  111. pointcosm-0.4.0/src/pointcosm/_generated/models/task_milestone_timing_timing_completeness.py +10 -0
  112. pointcosm-0.4.0/src/pointcosm/_generated/models/task_out.py +130 -0
  113. pointcosm-0.4.0/src/pointcosm/_generated/models/task_out_rerun_attempt.py +9 -0
  114. pointcosm-0.4.0/src/pointcosm/_generated/models/task_preprocess_progress.py +105 -0
  115. pointcosm-0.4.0/src/pointcosm/_generated/models/task_preprocess_progress_availability.py +10 -0
  116. pointcosm-0.4.0/src/pointcosm/_generated/models/task_preprocess_progress_quality_level.py +11 -0
  117. pointcosm-0.4.0/src/pointcosm/_generated/models/task_product_projection.py +78 -0
  118. pointcosm-0.4.0/src/pointcosm/_generated/models/task_progress.py +209 -0
  119. pointcosm-0.4.0/src/pointcosm/_generated/models/task_progress_activity_status.py +11 -0
  120. pointcosm-0.4.0/src/pointcosm/_generated/models/task_progress_current_milestone.py +14 -0
  121. pointcosm-0.4.0/src/pointcosm/_generated/models/task_progress_observation_status.py +11 -0
  122. pointcosm-0.4.0/src/pointcosm/_generated/models/task_rerun_in.py +75 -0
  123. pointcosm-0.4.0/src/pointcosm/_generated/models/task_rerun_in_parameters_type_0.py +47 -0
  124. pointcosm-0.4.0/src/pointcosm/_generated/models/task_status.py +14 -0
  125. pointcosm-0.4.0/src/pointcosm/_generated/models/task_summary_out.py +93 -0
  126. pointcosm-0.4.0/src/pointcosm/_generated/models/train_artifacts_create_download_url_response_200_type_0.py +83 -0
  127. pointcosm-0.4.0/src/pointcosm/_generated/models/train_artifacts_list_response_200_type_0.py +83 -0
  128. pointcosm-0.4.0/src/pointcosm/_generated/models/train_products_list_response_200_type_0.py +83 -0
  129. pointcosm-0.4.0/src/pointcosm/_generated/models/train_products_retrieve_response_200_type_0.py +83 -0
  130. pointcosm-0.4.0/src/pointcosm/_generated/models/train_tasks_create_response_200_type_0.py +83 -0
  131. pointcosm-0.4.0/src/pointcosm/_generated/models/train_tasks_list_response_200_type_0.py +83 -0
  132. pointcosm-0.4.0/src/pointcosm/_generated/models/train_tasks_rerun_response_200_type_0.py +83 -0
  133. pointcosm-0.4.0/src/pointcosm/_generated/models/train_tasks_retrieve_response_200_type_0.py +83 -0
  134. pointcosm-0.4.0/src/pointcosm/_generated/models/user_storage_connection_create_in.py +110 -0
  135. pointcosm-0.4.0/src/pointcosm/_generated/models/user_storage_connection_create_in_provider_config_type_0.py +47 -0
  136. pointcosm-0.4.0/src/pointcosm/_generated/models/user_storage_connection_list_out.py +99 -0
  137. pointcosm-0.4.0/src/pointcosm/_generated/models/user_storage_connection_out.py +274 -0
  138. pointcosm-0.4.0/src/pointcosm/_generated/models/user_storage_connection_out_provider_config_type_0.py +47 -0
  139. pointcosm-0.4.0/src/pointcosm/_generated/models/user_storage_connection_status.py +11 -0
  140. pointcosm-0.4.0/src/pointcosm/_generated/models/user_storage_connection_update_in.py +154 -0
  141. pointcosm-0.4.0/src/pointcosm/_generated/models/user_storage_connection_update_in_provider_config_type_0.py +47 -0
  142. pointcosm-0.4.0/src/pointcosm/_generated/models/webhook_configuration_in.py +42 -0
  143. pointcosm-0.4.0/src/pointcosm/_generated/models/webhook_configuration_out.py +124 -0
  144. pointcosm-0.4.0/src/pointcosm/_generated/models/webhook_mutation_out.py +91 -0
  145. pointcosm-0.4.0/src/pointcosm/_generated/models/webhook_secret_rotation_out.py +65 -0
  146. pointcosm-0.4.0/src/pointcosm/_generated/models/webhooks_configuration_disable_response_200_type_0.py +83 -0
  147. pointcosm-0.4.0/src/pointcosm/_generated/models/webhooks_configuration_retrieve_response_200_type_0.py +83 -0
  148. pointcosm-0.4.0/src/pointcosm/_generated/models/webhooks_configuration_update_response_200_type_0.py +83 -0
  149. pointcosm-0.4.0/src/pointcosm/_generated/models/webhooks_secret_rotate_response_200_type_0.py +83 -0
  150. pointcosm-0.4.0/src/pointcosm/_generated/types.py +54 -0
  151. pointcosm-0.4.0/src/pointcosm/_internal/__init__.py +1 -0
  152. pointcosm-0.4.0/src/pointcosm/_internal/capability.py +136 -0
  153. pointcosm-0.4.0/src/pointcosm/_internal/contract_evidence.py +38 -0
  154. pointcosm-0.4.0/src/pointcosm/_internal/envelope.py +94 -0
  155. pointcosm-0.4.0/src/pointcosm/_internal/executor.py +263 -0
  156. pointcosm-0.4.0/src/pointcosm/_internal/manifest.py +95 -0
  157. pointcosm-0.4.0/src/pointcosm/_internal/model_adapters.py +613 -0
  158. pointcosm-0.4.0/src/pointcosm/_internal/retry.py +96 -0
  159. pointcosm-0.4.0/src/pointcosm/_internal/sensitive.py +71 -0
  160. pointcosm-0.4.0/src/pointcosm/async_client.py +162 -0
  161. pointcosm-0.4.0/src/pointcosm/auth/__init__.py +6 -0
  162. pointcosm-0.4.0/src/pointcosm/auth/_shared.py +109 -0
  163. pointcosm-0.4.0/src/pointcosm/auth/async_provider.py +62 -0
  164. pointcosm-0.4.0/src/pointcosm/auth/models.py +74 -0
  165. pointcosm-0.4.0/src/pointcosm/auth/sync_provider.py +62 -0
  166. pointcosm-0.4.0/src/pointcosm/billing.py +52 -0
  167. pointcosm-0.4.0/src/pointcosm/client.py +162 -0
  168. pointcosm-0.4.0/src/pointcosm/config.py +96 -0
  169. pointcosm-0.4.0/src/pointcosm/exceptions.py +164 -0
  170. pointcosm-0.4.0/src/pointcosm/models/__init__.py +127 -0
  171. pointcosm-0.4.0/src/pointcosm/models/billing.py +63 -0
  172. pointcosm-0.4.0/src/pointcosm/models/common.py +378 -0
  173. pointcosm-0.4.0/src/pointcosm/models/storage.py +219 -0
  174. pointcosm-0.4.0/src/pointcosm/models/train.py +421 -0
  175. pointcosm-0.4.0/src/pointcosm/models/webhooks.py +91 -0
  176. pointcosm-0.4.0/src/pointcosm/py.typed +1 -0
  177. pointcosm-0.4.0/src/pointcosm/storage.py +240 -0
  178. pointcosm-0.4.0/src/pointcosm/train.py +175 -0
  179. pointcosm-0.4.0/src/pointcosm/webhooks.py +82 -0
@@ -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 2026 PointCosm
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.
@@ -0,0 +1,217 @@
1
+ Metadata-Version: 2.4
2
+ Name: pointcosm
3
+ Version: 0.4.0
4
+ Summary: Official Python SDK for the PointCosm customer API
5
+ Keywords: pointcosm,sdk,api-client,openapi
6
+ License-Expression: Apache-2.0
7
+ License-File: LICENSE
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Classifier: Typing :: Typed
18
+ Requires-Dist: attrs>=26.1,<27
19
+ Requires-Dist: httpx>=0.28.1,<0.29
20
+ Maintainer: PointCosm
21
+ Requires-Python: >=3.11, <3.15
22
+ Project-URL: Repository, https://github.com/pointcosm-studio/pointcosm-python
23
+ Project-URL: Issues, https://github.com/pointcosm-studio/pointcosm-python/issues
24
+ Description-Content-Type: text/markdown
25
+
26
+ # Pointcosm Python SDK
27
+
28
+ [简体中文](README.zh-CN.md) | English
29
+
30
+ > **Status:** implementation is complete for local validation. This package has not been
31
+ > published and is not approved for production use.
32
+
33
+ This repository contains the public Pointcosm Python SDK. Its sole contract authority is a pinned,
34
+ reviewed commit of `pointcosm-sdk-contracts`; the SDK imports Customer/Auth OpenAPI, language-neutral
35
+ manifests, sensitive-field rules and bundle metadata from that clean local checkout without network
36
+ access. Train and Auth remain upstream runtime fact sources for the contracts repository, but are
37
+ never direct SDK generation inputs. Mixed internal `GET /openapi.json` contracts are prohibited.
38
+
39
+ ## Development setup
40
+
41
+ The validated compatibility range is CPython 3.11 through 3.14.
42
+
43
+ ```bash
44
+ uv sync --all-groups --python 3.14
45
+ uv run python -c "import pointcosm"
46
+ uv run pytest
47
+ ```
48
+
49
+ Train Platform commands that load application settings must explicitly use:
50
+
51
+ ```bash
52
+ APP_PROFILE=local
53
+ ```
54
+
55
+ ## Safety boundaries
56
+
57
+ - Never commit real access tokens, client secrets, STS credentials, Webhook secrets, or signed URLs.
58
+ - Do not generate from an internal or mixed OpenAPI document.
59
+ - Do not weaken contract, deterministic-generation, error, or sensitive-sentinel gates.
60
+ - Building local wheel or sdist artifacts is allowed for validation only.
61
+ - Uploading to TestPyPI or PyPI, creating a public tag or release, and declaring production
62
+ readiness require separate explicit project-owner approval.
63
+ - Publishing uses GitHub Actions Trusted Publishing with the protected `pypi` environment. No
64
+ long-lived PyPI token belongs in repository or organization secrets.
65
+
66
+ The reviewed implementation artifacts are under
67
+ [`specs/001-python-sdk-v1/`](specs/001-python-sdk-v1/).
68
+
69
+ ## Contract status
70
+
71
+ The pinned customer OpenAPI snapshot contains 17 paths, 25 public operations and 45 referenced
72
+ schemas. It declares standard `ApiFailureResponse` responses for HTTP 401, 403 and 500 on all 25
73
+ public operations, plus HTTP 422 on all 21 applicable operations. The strict contract gate is:
74
+
75
+ ```bash
76
+ uv run pytest -q tests/contract/test_standard_error_responses.py
77
+ ```
78
+
79
+ Do not skip, xfail or weaken this test during future contract refreshes.
80
+
81
+ ## Contract refresh review
82
+
83
+ Candidate acquisition and review belong to `pointcosm-sdk-contracts`. This SDK only consumes a full
84
+ 40-character commit whose checkout HEAD matches, whose tracked and untracked working tree is clean,
85
+ and whose bundle release, bundle SHA and every declared artifact SHA/size pass. Branches, tags used
86
+ without resolution, abbreviated revisions, dirty checkouts, URLs and loose OpenAPI files are rejected.
87
+
88
+ The currently approved input is contracts commit `1df69d43b6ac571b31f1c6c67d7d2df38742947d`,
89
+ bundle `0.5.0`, bundle SHA
90
+ `8b948c05f25016b0da7957a3791936d85a15a945bfdc25de4befb43806f75a22`:
91
+
92
+ ```bash
93
+ uv run python scripts/import_contract_bundle.py \
94
+ /path/to/pointcosm-sdk-contracts \
95
+ --revision 1df69d43b6ac571b31f1c6c67d7d2df38742947d \
96
+ --bundle-release 0.5.0 \
97
+ --bundle-sha256 8b948c05f25016b0da7957a3791936d85a15a945bfdc25de4befb43806f75a22 \
98
+ --customer-sha256 34c9aa8d5a59ef4e54a3c5960eba9326b01045db493a57332aa07df256e8c9f6 \
99
+ --auth-sha256 ff17917c6ccab2fcf1cb6c2ee0392c2efea6dfca567d084a6434836c36c489cf
100
+ uv run python scripts/validate_auth_openapi.py openapi/auth-public.openapi.json
101
+ uv run python scripts/generate.py --check
102
+ ```
103
+
104
+ Use the same command with `--check` after import. Review the imported neutral manifests, Python
105
+ manifests, generated source and provenance diff before accepting it. Auth v1 remains exactly one
106
+ marked `POST /api/oauth/token` operation; credential management and admin operations remain excluded.
107
+
108
+ Bundle 0.3.0 is a deliberate breaking cleanup. Public `Product`, `Asset`, `Task`, `TaskListItem` and
109
+ `TaskDetail` no longer expose backend display/pipeline/execution fields. Unknown response fields
110
+ remain forward-compatible but are never attached as public attributes. Customer-visible pricing is
111
+ limited to green-point prices and frozen task charges; RMB references and compute-center costs remain
112
+ forbidden.
113
+
114
+ Bundle 0.4.0 added typed seven-stage milestone timing and richer transfer lifecycle/timestamp quality
115
+ to task progress. Bundle 0.5.0 makes the customer-safe `TaskProgress` projection required and non-null
116
+ on create/rerun `TaskOut`, list `TaskListItem` and retrieve `TaskDetailOut`; its seven English milestone
117
+ values and exactly seven `milestones` entries remain unchanged. SDK 0.4.0 exposes `Task.progress`,
118
+ `TaskListItem.progress` and `TaskDetail.progress` as typed immutable public models.
119
+
120
+ ## Installation
121
+
122
+ The project is not published yet. For local development:
123
+
124
+ ```bash
125
+ uv sync --all-groups
126
+ ```
127
+
128
+ ## Static Bearer
129
+
130
+ ```python
131
+ import os
132
+
133
+ from pointcosm import Pointcosm
134
+
135
+ with Pointcosm(
136
+ base_url="http://localhost:8200",
137
+ access_token=os.getenv("POINTCOSM_ACCESS_TOKEN", "synthetic-doc-token"),
138
+ ) as client:
139
+ if os.getenv("POINTCOSM_DOCS_DRY_RUN") != "1":
140
+ products = client.train.list_products()
141
+ ```
142
+
143
+ ## Client credentials
144
+
145
+ The Auth Service uses port 8100 locally. Production base URLs must come from approved customer
146
+ configuration; the SDK repository and package do not publish deployment locators. Production use is
147
+ not approved.
148
+
149
+ ```python
150
+ import os
151
+
152
+ from pointcosm import Pointcosm
153
+
154
+ client = Pointcosm.from_client_credentials(
155
+ base_url="http://localhost:8200",
156
+ auth_base_url="http://localhost:8100",
157
+ client_id=os.getenv("POINTCOSM_CLIENT_ID", "synthetic-client"),
158
+ client_secret=os.getenv("POINTCOSM_CLIENT_SECRET", "synthetic-secret"),
159
+ resource="train-platform-api",
160
+ )
161
+ if os.getenv("POINTCOSM_DOCS_DRY_RUN") != "1":
162
+ account = client.billing.get_green_point_account()
163
+ client.close()
164
+ ```
165
+
166
+ Credential creation, listing, rotation and revocation remain UI/admin workflows and are not SDK
167
+ APIs.
168
+
169
+ ## Capabilities and errors
170
+
171
+ The stable namespaces are `client.train`, `client.storage`, `client.webhooks` and `client.billing`.
172
+ Methods return stable public models and may raise exceptions from `pointcosm.exceptions`.
173
+ For a complete method catalog and end-to-end examples, see the
174
+ [Chinese SDK usage guide](docs/006-python-sdk-guide.zh-CN.md) and the
175
+ [public API reference](docs/004-public-api-reference.md).
176
+
177
+ ```python
178
+ from pointcosm.exceptions import (
179
+ PointcosmApiError,
180
+ PointcosmContractError,
181
+ PointcosmTransportError,
182
+ )
183
+
184
+ handled_errors = (PointcosmApiError, PointcosmContractError, PointcosmTransportError)
185
+ ```
186
+
187
+ API errors expose bounded `status_code`, `code`, `message`, `details`, `request_id` and
188
+ `operation_id`. They never retain raw bodies or headers.
189
+
190
+ ## Sensitive values
191
+
192
+ STS keys, Webhook secrets and signed download URLs use `SensitiveStr`. `str` and `repr` are
193
+ redacted; revealing a value requires the explicit `get_secret_value()` method. Never log the
194
+ revealed value.
195
+
196
+ ## Lifecycle, timeout and retry
197
+
198
+ SDK-created HTTP clients close on context exit. Injected `httpx` clients remain caller-owned and
199
+ must be closed by the caller. Redirects are always disabled. Injected proxies and event hooks are
200
+ also caller-owned; the SDK cannot sanitize logging performed by them.
201
+
202
+ ```python
203
+ from pointcosm import RetryPolicy, TimeoutConfig
204
+
205
+ timeout = TimeoutConfig(connect=5, read=30, write=30, pool=5)
206
+ retry = RetryPolicy(max_attempts=3, max_elapsed=10)
207
+ ```
208
+
209
+ Retry is disabled by default. When explicitly enabled, only operations whose reviewed manifest
210
+ metadata says `retry=safe` can retry timeout/connect failures or HTTP 429/502/503/504. Mutation,
211
+ secret, authentication, business and contract failures never retry.
212
+
213
+ ## License
214
+
215
+ Licensed under the [Apache License 2.0](LICENSE). The license does not grant permission to use
216
+ PointCosm trade names, trademarks, service marks or product names except as described by the
217
+ license.
@@ -0,0 +1,192 @@
1
+ # Pointcosm Python SDK
2
+
3
+ [简体中文](README.zh-CN.md) | English
4
+
5
+ > **Status:** implementation is complete for local validation. This package has not been
6
+ > published and is not approved for production use.
7
+
8
+ This repository contains the public Pointcosm Python SDK. Its sole contract authority is a pinned,
9
+ reviewed commit of `pointcosm-sdk-contracts`; the SDK imports Customer/Auth OpenAPI, language-neutral
10
+ manifests, sensitive-field rules and bundle metadata from that clean local checkout without network
11
+ access. Train and Auth remain upstream runtime fact sources for the contracts repository, but are
12
+ never direct SDK generation inputs. Mixed internal `GET /openapi.json` contracts are prohibited.
13
+
14
+ ## Development setup
15
+
16
+ The validated compatibility range is CPython 3.11 through 3.14.
17
+
18
+ ```bash
19
+ uv sync --all-groups --python 3.14
20
+ uv run python -c "import pointcosm"
21
+ uv run pytest
22
+ ```
23
+
24
+ Train Platform commands that load application settings must explicitly use:
25
+
26
+ ```bash
27
+ APP_PROFILE=local
28
+ ```
29
+
30
+ ## Safety boundaries
31
+
32
+ - Never commit real access tokens, client secrets, STS credentials, Webhook secrets, or signed URLs.
33
+ - Do not generate from an internal or mixed OpenAPI document.
34
+ - Do not weaken contract, deterministic-generation, error, or sensitive-sentinel gates.
35
+ - Building local wheel or sdist artifacts is allowed for validation only.
36
+ - Uploading to TestPyPI or PyPI, creating a public tag or release, and declaring production
37
+ readiness require separate explicit project-owner approval.
38
+ - Publishing uses GitHub Actions Trusted Publishing with the protected `pypi` environment. No
39
+ long-lived PyPI token belongs in repository or organization secrets.
40
+
41
+ The reviewed implementation artifacts are under
42
+ [`specs/001-python-sdk-v1/`](specs/001-python-sdk-v1/).
43
+
44
+ ## Contract status
45
+
46
+ The pinned customer OpenAPI snapshot contains 17 paths, 25 public operations and 45 referenced
47
+ schemas. It declares standard `ApiFailureResponse` responses for HTTP 401, 403 and 500 on all 25
48
+ public operations, plus HTTP 422 on all 21 applicable operations. The strict contract gate is:
49
+
50
+ ```bash
51
+ uv run pytest -q tests/contract/test_standard_error_responses.py
52
+ ```
53
+
54
+ Do not skip, xfail or weaken this test during future contract refreshes.
55
+
56
+ ## Contract refresh review
57
+
58
+ Candidate acquisition and review belong to `pointcosm-sdk-contracts`. This SDK only consumes a full
59
+ 40-character commit whose checkout HEAD matches, whose tracked and untracked working tree is clean,
60
+ and whose bundle release, bundle SHA and every declared artifact SHA/size pass. Branches, tags used
61
+ without resolution, abbreviated revisions, dirty checkouts, URLs and loose OpenAPI files are rejected.
62
+
63
+ The currently approved input is contracts commit `1df69d43b6ac571b31f1c6c67d7d2df38742947d`,
64
+ bundle `0.5.0`, bundle SHA
65
+ `8b948c05f25016b0da7957a3791936d85a15a945bfdc25de4befb43806f75a22`:
66
+
67
+ ```bash
68
+ uv run python scripts/import_contract_bundle.py \
69
+ /path/to/pointcosm-sdk-contracts \
70
+ --revision 1df69d43b6ac571b31f1c6c67d7d2df38742947d \
71
+ --bundle-release 0.5.0 \
72
+ --bundle-sha256 8b948c05f25016b0da7957a3791936d85a15a945bfdc25de4befb43806f75a22 \
73
+ --customer-sha256 34c9aa8d5a59ef4e54a3c5960eba9326b01045db493a57332aa07df256e8c9f6 \
74
+ --auth-sha256 ff17917c6ccab2fcf1cb6c2ee0392c2efea6dfca567d084a6434836c36c489cf
75
+ uv run python scripts/validate_auth_openapi.py openapi/auth-public.openapi.json
76
+ uv run python scripts/generate.py --check
77
+ ```
78
+
79
+ Use the same command with `--check` after import. Review the imported neutral manifests, Python
80
+ manifests, generated source and provenance diff before accepting it. Auth v1 remains exactly one
81
+ marked `POST /api/oauth/token` operation; credential management and admin operations remain excluded.
82
+
83
+ Bundle 0.3.0 is a deliberate breaking cleanup. Public `Product`, `Asset`, `Task`, `TaskListItem` and
84
+ `TaskDetail` no longer expose backend display/pipeline/execution fields. Unknown response fields
85
+ remain forward-compatible but are never attached as public attributes. Customer-visible pricing is
86
+ limited to green-point prices and frozen task charges; RMB references and compute-center costs remain
87
+ forbidden.
88
+
89
+ Bundle 0.4.0 added typed seven-stage milestone timing and richer transfer lifecycle/timestamp quality
90
+ to task progress. Bundle 0.5.0 makes the customer-safe `TaskProgress` projection required and non-null
91
+ on create/rerun `TaskOut`, list `TaskListItem` and retrieve `TaskDetailOut`; its seven English milestone
92
+ values and exactly seven `milestones` entries remain unchanged. SDK 0.4.0 exposes `Task.progress`,
93
+ `TaskListItem.progress` and `TaskDetail.progress` as typed immutable public models.
94
+
95
+ ## Installation
96
+
97
+ The project is not published yet. For local development:
98
+
99
+ ```bash
100
+ uv sync --all-groups
101
+ ```
102
+
103
+ ## Static Bearer
104
+
105
+ ```python
106
+ import os
107
+
108
+ from pointcosm import Pointcosm
109
+
110
+ with Pointcosm(
111
+ base_url="http://localhost:8200",
112
+ access_token=os.getenv("POINTCOSM_ACCESS_TOKEN", "synthetic-doc-token"),
113
+ ) as client:
114
+ if os.getenv("POINTCOSM_DOCS_DRY_RUN") != "1":
115
+ products = client.train.list_products()
116
+ ```
117
+
118
+ ## Client credentials
119
+
120
+ The Auth Service uses port 8100 locally. Production base URLs must come from approved customer
121
+ configuration; the SDK repository and package do not publish deployment locators. Production use is
122
+ not approved.
123
+
124
+ ```python
125
+ import os
126
+
127
+ from pointcosm import Pointcosm
128
+
129
+ client = Pointcosm.from_client_credentials(
130
+ base_url="http://localhost:8200",
131
+ auth_base_url="http://localhost:8100",
132
+ client_id=os.getenv("POINTCOSM_CLIENT_ID", "synthetic-client"),
133
+ client_secret=os.getenv("POINTCOSM_CLIENT_SECRET", "synthetic-secret"),
134
+ resource="train-platform-api",
135
+ )
136
+ if os.getenv("POINTCOSM_DOCS_DRY_RUN") != "1":
137
+ account = client.billing.get_green_point_account()
138
+ client.close()
139
+ ```
140
+
141
+ Credential creation, listing, rotation and revocation remain UI/admin workflows and are not SDK
142
+ APIs.
143
+
144
+ ## Capabilities and errors
145
+
146
+ The stable namespaces are `client.train`, `client.storage`, `client.webhooks` and `client.billing`.
147
+ Methods return stable public models and may raise exceptions from `pointcosm.exceptions`.
148
+ For a complete method catalog and end-to-end examples, see the
149
+ [Chinese SDK usage guide](docs/006-python-sdk-guide.zh-CN.md) and the
150
+ [public API reference](docs/004-public-api-reference.md).
151
+
152
+ ```python
153
+ from pointcosm.exceptions import (
154
+ PointcosmApiError,
155
+ PointcosmContractError,
156
+ PointcosmTransportError,
157
+ )
158
+
159
+ handled_errors = (PointcosmApiError, PointcosmContractError, PointcosmTransportError)
160
+ ```
161
+
162
+ API errors expose bounded `status_code`, `code`, `message`, `details`, `request_id` and
163
+ `operation_id`. They never retain raw bodies or headers.
164
+
165
+ ## Sensitive values
166
+
167
+ STS keys, Webhook secrets and signed download URLs use `SensitiveStr`. `str` and `repr` are
168
+ redacted; revealing a value requires the explicit `get_secret_value()` method. Never log the
169
+ revealed value.
170
+
171
+ ## Lifecycle, timeout and retry
172
+
173
+ SDK-created HTTP clients close on context exit. Injected `httpx` clients remain caller-owned and
174
+ must be closed by the caller. Redirects are always disabled. Injected proxies and event hooks are
175
+ also caller-owned; the SDK cannot sanitize logging performed by them.
176
+
177
+ ```python
178
+ from pointcosm import RetryPolicy, TimeoutConfig
179
+
180
+ timeout = TimeoutConfig(connect=5, read=30, write=30, pool=5)
181
+ retry = RetryPolicy(max_attempts=3, max_elapsed=10)
182
+ ```
183
+
184
+ Retry is disabled by default. When explicitly enabled, only operations whose reviewed manifest
185
+ metadata says `retry=safe` can retry timeout/connect failures or HTTP 429/502/503/504. Mutation,
186
+ secret, authentication, business and contract failures never retry.
187
+
188
+ ## License
189
+
190
+ Licensed under the [Apache License 2.0](LICENSE). The license does not grant permission to use
191
+ PointCosm trade names, trademarks, service marks or product names except as described by the
192
+ license.