geometry-api-v2 1.0.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 (311) hide show
  1. geometry_api_v2-1.0.0/.coveragerc +28 -0
  2. geometry_api_v2-1.0.0/.gitignore +160 -0
  3. geometry_api_v2-1.0.0/.pre-commit-config.yaml +65 -0
  4. geometry_api_v2-1.0.0/.readthedocs.yml +27 -0
  5. geometry_api_v2-1.0.0/CONTRIBUTING.rst +353 -0
  6. geometry_api_v2-1.0.0/LICENSE +7 -0
  7. geometry_api_v2-1.0.0/PKG-INFO +175 -0
  8. geometry_api_v2-1.0.0/README.md +104 -0
  9. geometry_api_v2-1.0.0/README.rst +148 -0
  10. geometry_api_v2-1.0.0/docs/Makefile +29 -0
  11. geometry_api_v2-1.0.0/docs/_static/.gitignore +1 -0
  12. geometry_api_v2-1.0.0/docs/api/modules.rst +7 -0
  13. geometry_api_v2-1.0.0/docs/api/shapediver.geometry_api_v2.client.api.rst +141 -0
  14. geometry_api_v2-1.0.0/docs/api/shapediver.geometry_api_v2.client.models.rst +1837 -0
  15. geometry_api_v2-1.0.0/docs/api/shapediver.geometry_api_v2.client.rst +62 -0
  16. geometry_api_v2-1.0.0/docs/api/shapediver.geometry_api_v2.rst +37 -0
  17. geometry_api_v2-1.0.0/docs/api/shapediver.rst +12 -0
  18. geometry_api_v2-1.0.0/docs/conf.py +286 -0
  19. geometry_api_v2-1.0.0/docs/contributing.rst +1 -0
  20. geometry_api_v2-1.0.0/docs/index.rst +58 -0
  21. geometry_api_v2-1.0.0/docs/license.rst +7 -0
  22. geometry_api_v2-1.0.0/docs/readme.rst +2 -0
  23. geometry_api_v2-1.0.0/docs/requirements.txt +5 -0
  24. geometry_api_v2-1.0.0/justfile +137 -0
  25. geometry_api_v2-1.0.0/oas_spec.yaml +6468 -0
  26. geometry_api_v2-1.0.0/openapitools.json +7 -0
  27. geometry_api_v2-1.0.0/pyproject.toml +9 -0
  28. geometry_api_v2-1.0.0/requirements.txt +7 -0
  29. geometry_api_v2-1.0.0/requirements_dev.txt +1 -0
  30. geometry_api_v2-1.0.0/setup.cfg +91 -0
  31. geometry_api_v2-1.0.0/setup.py +22 -0
  32. geometry_api_v2-1.0.0/src/geometry_api_v2.egg-info/PKG-INFO +175 -0
  33. geometry_api_v2-1.0.0/src/geometry_api_v2.egg-info/SOURCES.txt +310 -0
  34. geometry_api_v2-1.0.0/src/geometry_api_v2.egg-info/dependency_links.txt +1 -0
  35. geometry_api_v2-1.0.0/src/geometry_api_v2.egg-info/not-zip-safe +1 -0
  36. geometry_api_v2-1.0.0/src/geometry_api_v2.egg-info/requires.txt +10 -0
  37. geometry_api_v2-1.0.0/src/geometry_api_v2.egg-info/top_level.txt +1 -0
  38. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/__init__.py +13 -0
  39. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/__init__.py +276 -0
  40. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/__init__.py +20 -0
  41. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/analytics_api.py +581 -0
  42. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/ar_scene_api.py +808 -0
  43. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/assets_api.py +1921 -0
  44. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/auth_api.py +275 -0
  45. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/auth_group_api.py +308 -0
  46. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/export_api.py +1228 -0
  47. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/file_api.py +1483 -0
  48. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/gltf_api.py +345 -0
  49. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/log_api.py +322 -0
  50. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/model_api.py +4558 -0
  51. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/output_api.py +1228 -0
  52. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/script_api.py +555 -0
  53. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/sdtf_api.py +1196 -0
  54. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/session_api.py +1674 -0
  55. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/system_api.py +1061 -0
  56. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api/texture_api.py +314 -0
  57. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api_client.py +770 -0
  58. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/api_response.py +21 -0
  59. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/configuration.py +468 -0
  60. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/exceptions.py +199 -0
  61. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/__init__.py +244 -0
  62. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/at_least_one_any_date_extended.py +144 -0
  63. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/at_least_one_uuid.py +144 -0
  64. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/commons_computation_status.py +52 -0
  65. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/commons_group.py +89 -0
  66. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/commons_model_status.py +42 -0
  67. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/commons_ticket.py +103 -0
  68. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/commons_ticket_type.py +37 -0
  69. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/null_obj.py +87 -0
  70. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/query_computation_statistics_status.py +39 -0
  71. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/query_computation_status.py +52 -0
  72. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/query_computation_type.py +39 -0
  73. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/query_gltf_conversion.py +38 -0
  74. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/query_model_status.py +42 -0
  75. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/query_order.py +37 -0
  76. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_any_credit_metric_id.py +193 -0
  77. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_authorization_group.py +91 -0
  78. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_basic_parameter.py +160 -0
  79. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_cache.py +98 -0
  80. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_configure.py +98 -0
  81. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_credit_metric.py +122 -0
  82. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_credit_metrics.py +95 -0
  83. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_customization.py +98 -0
  84. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_customization_or_cache.py +137 -0
  85. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_customization_or_export.py +137 -0
  86. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_export.py +98 -0
  87. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_export_definition.py +99 -0
  88. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_export_definition_group.py +137 -0
  89. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_export_definitions.py +98 -0
  90. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_export_or_cache.py +137 -0
  91. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_file_definition.py +92 -0
  92. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_file_upload.py +98 -0
  93. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_group.py +89 -0
  94. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_log_level.py +38 -0
  95. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_log_message.py +90 -0
  96. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_model.py +144 -0
  97. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_model_credit_metric_id.py +91 -0
  98. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_model_file_type.py +37 -0
  99. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_model_organization_credit_metric_id.py +96 -0
  100. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_model_statistic.py +122 -0
  101. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_model_statistics.py +95 -0
  102. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_model_user_credit_metric_id.py +96 -0
  103. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_organization_credit_metric_id.py +91 -0
  104. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_output_definition.py +109 -0
  105. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_output_definition_chunk.py +91 -0
  106. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_output_definition_group.py +137 -0
  107. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_output_definitions.py +98 -0
  108. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_parameter_asset.py +93 -0
  109. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_parameter_chunk.py +89 -0
  110. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_parameter_definition.py +99 -0
  111. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_parameter_definition_group.py +137 -0
  112. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_parameter_definitions.py +98 -0
  113. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_parameter_value.py +137 -0
  114. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_sdtf_definition.py +95 -0
  115. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_sdtf_type.py +36 -0
  116. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_stype_parameter.py +93 -0
  117. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_system_credit_metric_id.py +87 -0
  118. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_ticket.py +106 -0
  119. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_ticket_type.py +37 -0
  120. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_trust_level.py +38 -0
  121. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/req_user_credit_metric_id.py +91 -0
  122. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_action.py +95 -0
  123. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_allowed_worker_plugin.py +124 -0
  124. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_analytics.py +105 -0
  125. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_any_credit_metric.py +193 -0
  126. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_ar_credit_metric.py +88 -0
  127. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_asset.py +109 -0
  128. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_asset_definition.py +89 -0
  129. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_authorization_settings.py +97 -0
  130. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_base_credit_metric.py +113 -0
  131. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_cleanup_exports.py +87 -0
  132. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_cleanup_outputs.py +87 -0
  133. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_cleanup_textures.py +87 -0
  134. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_close_session.py +87 -0
  135. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_computation_component.py +125 -0
  136. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_computation_components.py +98 -0
  137. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_computation_limits.py +92 -0
  138. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_computation_status.py +52 -0
  139. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_compute_exports.py +139 -0
  140. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_compute_outputs.py +124 -0
  141. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_compute_settings.py +123 -0
  142. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_computed_component.py +96 -0
  143. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_computing_component.py +93 -0
  144. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_create_authorization_group.py +91 -0
  145. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_create_model.py +113 -0
  146. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_create_model_config.py +87 -0
  147. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_create_session_by_model.py +176 -0
  148. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_create_session_by_ticket.py +176 -0
  149. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_create_ticket.py +113 -0
  150. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_decrypt_ticket.py +93 -0
  151. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_default_combined_metric.py +88 -0
  152. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_default_computation_metric.py +94 -0
  153. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_default_credit_metric.py +115 -0
  154. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_default_export_metric.py +88 -0
  155. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_default_output_metric.py +88 -0
  156. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_default_session_metric.py +90 -0
  157. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_delete_file.py +87 -0
  158. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_delete_model.py +87 -0
  159. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_delete_sdtf.py +87 -0
  160. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_error.py +92 -0
  161. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_error_component.py +97 -0
  162. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_error_type.py +64 -0
  163. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_export.py +140 -0
  164. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_export_content.py +94 -0
  165. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_export_definition.py +117 -0
  166. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_export_definition_group.py +89 -0
  167. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_export_definition_type.py +39 -0
  168. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_export_list.py +145 -0
  169. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_export_or_definition.py +137 -0
  170. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_export_result.py +93 -0
  171. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_file.py +89 -0
  172. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_file_asset.py +109 -0
  173. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_file_info.py +92 -0
  174. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_file_list.py +145 -0
  175. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_get_cached_exports.py +139 -0
  176. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_get_cached_outputs.py +124 -0
  177. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_get_cleanup_status.py +97 -0
  178. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_get_credit_metrics.py +95 -0
  179. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_get_minions_info.py +93 -0
  180. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_get_model.py +164 -0
  181. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_get_model_computations.py +103 -0
  182. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_get_model_config.py +95 -0
  183. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_get_model_statistics.py +95 -0
  184. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_get_session_defaults.py +176 -0
  185. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_get_workers_info.py +93 -0
  186. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_gltf_upload.py +89 -0
  187. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_installed_worker_plugin.py +109 -0
  188. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_limited_credit_metric.py +115 -0
  189. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_list.py +145 -0
  190. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_list_export_versions.py +99 -0
  191. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_list_files.py +101 -0
  192. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_list_models.py +99 -0
  193. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_list_output_versions.py +99 -0
  194. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_list_sdtfs.py +101 -0
  195. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_list_textures.py +99 -0
  196. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_loading_credit_metric.py +90 -0
  197. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_log_message.py +87 -0
  198. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_minion_info.py +115 -0
  199. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_minion_process.py +100 -0
  200. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_minion_system.py +97 -0
  201. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_minion_task.py +107 -0
  202. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model.py +125 -0
  203. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model_cleanup_process.py +102 -0
  204. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model_cleanup_process_type.py +38 -0
  205. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model_computation.py +160 -0
  206. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model_computation_stats.py +142 -0
  207. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model_credit_metric.py +129 -0
  208. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model_list.py +145 -0
  209. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model_organization_credit_metric.py +117 -0
  210. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model_settings.py +89 -0
  211. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model_statistic.py +133 -0
  212. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model_status.py +42 -0
  213. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_model_user_credit_metric.py +117 -0
  214. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_on_action_statistic.py +106 -0
  215. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_on_duration_statistic.py +98 -0
  216. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_organization_credit_metric.py +122 -0
  217. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_output.py +145 -0
  218. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_output_chunk.py +97 -0
  219. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_output_content.py +107 -0
  220. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_output_definition.py +126 -0
  221. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_output_definition_group.py +89 -0
  222. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_output_list.py +145 -0
  223. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_output_or_definition.py +137 -0
  224. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_pagination.py +90 -0
  225. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_parameter.py +139 -0
  226. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_parameter_group.py +89 -0
  227. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_parameter_type.py +67 -0
  228. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_actions.py +95 -0
  229. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_analytics.py +91 -0
  230. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_authorization_group.py +87 -0
  231. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_cleanup.py +95 -0
  232. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_decrypted_ticket.py +91 -0
  233. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_exports.py +100 -0
  234. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_file.py +91 -0
  235. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_gltf_upload.py +91 -0
  236. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_message.py +87 -0
  237. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_model.py +91 -0
  238. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_model_computation.py +95 -0
  239. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_outputs.py +100 -0
  240. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_pagination.py +91 -0
  241. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_parameters.py +100 -0
  242. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_plugins.py +91 -0
  243. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_session_id.py +87 -0
  244. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_setting.py +91 -0
  245. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_statistic.py +91 -0
  246. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_templates.py +95 -0
  247. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_ticket.py +87 -0
  248. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_version.py +87 -0
  249. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_viewer.py +91 -0
  250. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_part_viewer_settings_version.py +87 -0
  251. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_plugins.py +95 -0
  252. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_plugins_library.py +97 -0
  253. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_rate_limited_combined_metric.py +88 -0
  254. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_rate_limited_computation_metric.py +94 -0
  255. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_rate_limited_export_metric.py +88 -0
  256. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_rate_limited_output_metric.py +88 -0
  257. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_rate_limited_session_metric.py +92 -0
  258. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_sdtf_asset.py +109 -0
  259. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_sdtf_info.py +92 -0
  260. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_sdtf_list.py +145 -0
  261. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_settings.py +103 -0
  262. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_statistic.py +122 -0
  263. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_structure_type.py +38 -0
  264. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_system.py +97 -0
  265. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_system_credit_metric.py +115 -0
  266. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_template.py +91 -0
  267. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_texture.py +98 -0
  268. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_texture_list.py +145 -0
  269. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_ticket.py +108 -0
  270. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_ticket_authorization.py +91 -0
  271. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_ticket_type.py +37 -0
  272. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_token_authorization.py +91 -0
  273. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_update_export_definitions.py +87 -0
  274. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_update_model.py +113 -0
  275. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_update_model_config.py +87 -0
  276. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_update_output_definitions.py +87 -0
  277. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_update_parameter_default_values.py +87 -0
  278. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_update_parameter_definitions.py +87 -0
  279. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_upload_file.py +95 -0
  280. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_upload_gltf.py +93 -0
  281. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_upload_sdtf.py +95 -0
  282. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_user_credit_metric.py +122 -0
  283. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_viewer.py +87 -0
  284. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_visualization_type.py +50 -0
  285. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_warning_component.py +95 -0
  286. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_worker_info.py +97 -0
  287. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_worker_plugin_component.py +89 -0
  288. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_worker_plugins.py +107 -0
  289. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/models/res_worker_system.py +97 -0
  290. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/py.typed +0 -0
  291. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/client/rest.py +257 -0
  292. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/sd_client.py +103 -0
  293. geometry_api_v2-1.0.0/src/shapediver/geometry_api_v2/sd_utils.py +252 -0
  294. geometry_api_v2-1.0.0/tests/README.md +43 -0
  295. geometry_api_v2-1.0.0/tests/conftest.py +73 -0
  296. geometry_api_v2-1.0.0/tests/data/Box.glb +0 -0
  297. geometry_api_v2-1.0.0/tests/data/logo.jpg +0 -0
  298. geometry_api_v2-1.0.0/tests/data/test.sdtf +0 -0
  299. geometry_api_v2-1.0.0/tests/test_analytics_api.py +63 -0
  300. geometry_api_v2-1.0.0/tests/test_ar_scene_api.py +42 -0
  301. geometry_api_v2-1.0.0/tests/test_auth_group_api.py +20 -0
  302. geometry_api_v2-1.0.0/tests/test_export_api.py +77 -0
  303. geometry_api_v2-1.0.0/tests/test_file_api.py +77 -0
  304. geometry_api_v2-1.0.0/tests/test_gltf_api.py +51 -0
  305. geometry_api_v2-1.0.0/tests/test_model_api.py +94 -0
  306. geometry_api_v2-1.0.0/tests/test_output_api.py +73 -0
  307. geometry_api_v2-1.0.0/tests/test_sd_utils.py +570 -0
  308. geometry_api_v2-1.0.0/tests/test_sdtf_api.py +56 -0
  309. geometry_api_v2-1.0.0/tests/test_session_api.py +75 -0
  310. geometry_api_v2-1.0.0/tests/test_texture_api.py +18 -0
  311. geometry_api_v2-1.0.0/tox.ini +97 -0
@@ -0,0 +1,28 @@
1
+ # .coveragerc to control coverage.py
2
+ [run]
3
+ branch = True
4
+ source = shapediver.geometry_api_v2
5
+ # omit = bad_file.py
6
+
7
+ [paths]
8
+ source =
9
+ src/
10
+ */site-packages/
11
+
12
+ [report]
13
+ # Regexes for lines to exclude from consideration
14
+ exclude_lines =
15
+ # Have to re-enable the standard pragma
16
+ pragma: no cover
17
+
18
+ # Don't complain about missing debug-only code:
19
+ def __repr__
20
+ if self\.debug
21
+
22
+ # Don't complain if tests don't hit defensive assertion code:
23
+ raise AssertionError
24
+ raise NotImplementedError
25
+
26
+ # Don't complain if non-runnable code isn't run:
27
+ if 0:
28
+ if __name__ == .__main__.:
@@ -0,0 +1,160 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ #.idea/
@@ -0,0 +1,65 @@
1
+ exclude: "^(docs/conf.py|oas_spec.yaml|src/shapediver/geometry_api_v2/client/.*)$"
2
+
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v4.6.0
6
+ hooks:
7
+ - id: trailing-whitespace
8
+ - id: check-added-large-files
9
+ - id: check-ast
10
+ - id: check-json
11
+ - id: check-merge-conflict
12
+ - id: check-xml
13
+ - id: check-yaml
14
+ - id: debug-statements
15
+ - id: end-of-file-fixer
16
+ # - id: requirements-txt-fixer
17
+ - id: mixed-line-ending
18
+ args: ["--fix=auto"] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
19
+
20
+ ## If you want to automatically "modernize" your Python code:
21
+ # - repo: https://github.com/asottile/pyupgrade
22
+ # rev: v3.7.0
23
+ # hooks:
24
+ # - id: pyupgrade
25
+ # args: ['--py37-plus']
26
+
27
+ ## If you want to avoid flake8 errors due to unused vars or imports:
28
+ # - repo: https://github.com/PyCQA/autoflake
29
+ # rev: v2.1.1
30
+ # hooks:
31
+ # - id: autoflake
32
+ # args: [
33
+ # --in-place,
34
+ # --remove-all-unused-imports,
35
+ # --remove-unused-variables,
36
+ # ]
37
+
38
+ - repo: https://github.com/PyCQA/isort
39
+ rev: 5.13.2
40
+ hooks:
41
+ - id: isort
42
+
43
+ - repo: https://github.com/psf/black
44
+ rev: 24.4.2
45
+ hooks:
46
+ - id: black
47
+ language_version: python3
48
+
49
+ ## If like to embrace black styles even in the docs:
50
+ # - repo: https://github.com/asottile/blacken-docs
51
+ # rev: v1.13.0
52
+ # hooks:
53
+ # - id: blacken-docs
54
+ # additional_dependencies: [black]
55
+ - repo: https://github.com/PyCQA/flake8
56
+ rev: 7.0.0
57
+ hooks:
58
+ - id: flake8
59
+ ## You can add flake8 plugins via `additional_dependencies`:
60
+ # additional_dependencies: [flake8-bugbear]
61
+ ## Check for misspells in documentation files:
62
+ # - repo: https://github.com/codespell-project/codespell
63
+ # rev: v2.2.5
64
+ # hooks:
65
+ # - id: codespell
@@ -0,0 +1,27 @@
1
+ # Read the Docs configuration file
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Build documentation in the docs/ directory with Sphinx
8
+ sphinx:
9
+ configuration: docs/conf.py
10
+
11
+ # Build documentation with MkDocs
12
+ #mkdocs:
13
+ # configuration: mkdocs.yml
14
+
15
+ # Optionally build your docs in additional formats such as PDF
16
+ formats:
17
+ - pdf
18
+
19
+ build:
20
+ os: ubuntu-22.04
21
+ tools:
22
+ python: "3.11"
23
+
24
+ python:
25
+ install:
26
+ - requirements: docs/requirements.txt
27
+ - {path: ., method: pip}
@@ -0,0 +1,353 @@
1
+ .. todo:: THIS IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS!
2
+
3
+ The document assumes you are using a source repository service that promotes a
4
+ contribution model similar to `GitHub's fork and pull request workflow`_.
5
+ While this is true for the majority of services (like GitHub, GitLab,
6
+ BitBucket), it might not be the case for private repositories (e.g., when
7
+ using Gerrit).
8
+
9
+ Also notice that the code examples might refer to GitHub URLs or the text
10
+ might use GitHub specific terminology (e.g., *Pull Request* instead of *Merge
11
+ Request*).
12
+
13
+ Please make sure to check the document having these assumptions in mind
14
+ and update things accordingly.
15
+
16
+ .. todo:: Provide the correct links/replacements at the bottom of the document.
17
+
18
+ .. todo:: You might want to have a look on `PyScaffold's contributor's guide`_,
19
+
20
+ especially if your project is open source. The text should be very similar to
21
+ this template, but there are a few extra contents that you might decide to
22
+ also include, like mentioning labels of your issue tracker or automated
23
+ releases.
24
+
25
+
26
+ ============
27
+ Contributing
28
+ ============
29
+
30
+ Welcome to ``geometry_api_v2`` contributor's guide.
31
+
32
+ This document focuses on getting any potential contributor familiarized
33
+ with the development processes, but `other kinds of contributions`_ are also
34
+ appreciated.
35
+
36
+ If you are new to using git_ or have never collaborated in a project previously,
37
+ please have a look at `contribution-guide.org`_. Other resources are also
38
+ listed in the excellent `guide created by FreeCodeCamp`_ [#contrib1]_.
39
+
40
+ Please notice, all users and contributors are expected to be **open,
41
+ considerate, reasonable, and respectful**. When in doubt, `Python Software
42
+ Foundation's Code of Conduct`_ is a good reference in terms of behavior
43
+ guidelines.
44
+
45
+
46
+ Issue Reports
47
+ =============
48
+
49
+ If you experience bugs or general issues with ``geometry_api_v2``, please have a look
50
+ on the `issue tracker`_. If you don't see anything useful there, please feel
51
+ free to fire an issue report.
52
+
53
+ .. tip::
54
+ Please don't forget to include the closed issues in your search.
55
+ Sometimes a solution was already reported, and the problem is considered
56
+ **solved**.
57
+
58
+ New issue reports should include information about your programming environment
59
+ (e.g., operating system, Python version) and steps to reproduce the problem.
60
+ Please try also to simplify the reproduction steps to a very minimal example
61
+ that still illustrates the problem you are facing. By removing other factors,
62
+ you help us to identify the root cause of the issue.
63
+
64
+
65
+ Documentation Improvements
66
+ ==========================
67
+
68
+ You can help improve ``geometry_api_v2`` docs by making them more readable and coherent, or
69
+ by adding missing information and correcting mistakes.
70
+
71
+ ``geometry_api_v2`` documentation uses Sphinx_ as its main documentation compiler.
72
+ This means that the docs are kept in the same repository as the project code, and
73
+ that any documentation update is done in the same way was a code contribution.
74
+
75
+ .. todo:: Don't forget to mention which markup language you are using.
76
+
77
+ e.g., reStructuredText_ or CommonMark_ with MyST_ extensions.
78
+
79
+ .. todo:: If your project is hosted on GitHub, you can also mention the following tip:
80
+
81
+ .. tip::
82
+ Please notice that the `GitHub web interface`_ provides a quick way of
83
+ propose changes in ``geometry_api_v2``'s files. While this mechanism can
84
+ be tricky for normal code contributions, it works perfectly fine for
85
+ contributing to the docs, and can be quite handy.
86
+
87
+ If you are interested in trying this method out, please navigate to
88
+ the ``docs`` folder in the source repository_, find which file you
89
+ would like to propose changes and click in the little pencil icon at the
90
+ top, to open `GitHub's code editor`_. Once you finish editing the file,
91
+ please write a message in the form at the bottom of the page describing
92
+ which changes have you made and what are the motivations behind them and
93
+ submit your proposal.
94
+
95
+ When working on documentation changes in your local machine, you can
96
+ compile them using |tox|_::
97
+
98
+ tox -e docs
99
+
100
+ and use Python's built-in web server for a preview in your web browser
101
+ (``http://localhost:8000``)::
102
+
103
+ python3 -m http.server --directory 'docs/_build/html'
104
+
105
+
106
+ Code Contributions
107
+ ==================
108
+
109
+ .. todo:: Please include a reference or explanation about the internals of the project.
110
+
111
+ An architecture description, design principles or at least a summary of the
112
+ main concepts will make it easy for potential contributors to get started
113
+ quickly.
114
+
115
+ Submit an issue
116
+ ---------------
117
+
118
+ Before you work on any non-trivial code contribution it's best to first create
119
+ a report in the `issue tracker`_ to start a discussion on the subject.
120
+ This often provides additional considerations and avoids unnecessary work.
121
+
122
+ Create an environment
123
+ ---------------------
124
+
125
+ Before you start coding, we recommend creating an isolated `virtual
126
+ environment`_ to avoid any problems with your installed Python packages.
127
+ This can easily be done via either |virtualenv|_::
128
+
129
+ virtualenv <PATH TO VENV>
130
+ source <PATH TO VENV>/bin/activate
131
+
132
+ or Miniconda_::
133
+
134
+ conda create -n geometry_api_v2 python=3 six virtualenv pytest pytest-cov
135
+ conda activate geometry_api_v2
136
+
137
+ Clone the repository
138
+ --------------------
139
+
140
+ #. Create an user account on |the repository service| if you do not already have one.
141
+ #. Fork the project repository_: click on the *Fork* button near the top of the
142
+ page. This creates a copy of the code under your account on |the repository service|.
143
+ #. Clone this copy to your local disk::
144
+
145
+ git clone git@github.com:YourLogin/geometry_api_v2.git
146
+ cd geometry_api_v2
147
+
148
+ #. You should run::
149
+
150
+ pip install -U pip setuptools -e .
151
+
152
+ to be able to import the package under development in the Python REPL.
153
+
154
+ .. todo:: if you are not using pre-commit, please remove the following item:
155
+
156
+ #. Install |pre-commit|_::
157
+
158
+ pip install pre-commit
159
+ pre-commit install
160
+
161
+ ``geometry_api_v2`` comes with a lot of hooks configured to automatically help the
162
+ developer to check the code being written.
163
+
164
+ Implement your changes
165
+ ----------------------
166
+
167
+ #. Create a branch to hold your changes::
168
+
169
+ git checkout -b my-feature
170
+
171
+ and start making changes. Never work on the main branch!
172
+
173
+ #. Start your work on this branch. Don't forget to add docstrings_ to new
174
+ functions, modules and classes, especially if they are part of public APIs.
175
+
176
+ #. Add yourself to the list of contributors in ``AUTHORS.rst``.
177
+
178
+ #. When you’re done editing, do::
179
+
180
+ git add <MODIFIED FILES>
181
+ git commit
182
+
183
+ to record your changes in git_.
184
+
185
+ .. todo:: if you are not using pre-commit, please remove the following item:
186
+
187
+ Please make sure to see the validation messages from |pre-commit|_ and fix
188
+ any eventual issues.
189
+ This should automatically use flake8_/black_ to check/fix the code style
190
+ in a way that is compatible with the project.
191
+
192
+ .. important:: Don't forget to add unit tests and documentation in case your
193
+ contribution adds an additional feature and is not just a bugfix.
194
+
195
+ Moreover, writing a `descriptive commit message`_ is highly recommended.
196
+ In case of doubt, you can check the commit history with::
197
+
198
+ git log --graph --decorate --pretty=oneline --abbrev-commit --all
199
+
200
+ to look for recurring communication patterns.
201
+
202
+ #. Please check that your changes don't break any unit tests with::
203
+
204
+ tox
205
+
206
+ (after having installed |tox|_ with ``pip install tox`` or ``pipx``).
207
+
208
+ You can also use |tox|_ to run several other pre-configured tasks in the
209
+ repository. Try ``tox -av`` to see a list of the available checks.
210
+
211
+ Submit your contribution
212
+ ------------------------
213
+
214
+ #. If everything works fine, push your local branch to |the repository service| with::
215
+
216
+ git push -u origin my-feature
217
+
218
+ #. Go to the web page of your fork and click |contribute button|
219
+ to send your changes for review.
220
+
221
+ .. todo:: if you are using GitHub, you can uncomment the following paragraph
222
+
223
+ Find more detailed information in `creating a PR`_. You might also want to open
224
+ the PR as a draft first and mark it as ready for review after the feedbacks
225
+ from the continuous integration (CI) system or any required fixes.
226
+
227
+
228
+ Troubleshooting
229
+ ---------------
230
+
231
+ The following tips can be used when facing problems to build or test the
232
+ package:
233
+
234
+ #. Make sure to fetch all the tags from the upstream repository_.
235
+ The command ``git describe --abbrev=0 --tags`` should return the version you
236
+ are expecting. If you are trying to run CI scripts in a fork repository,
237
+ make sure to push all the tags.
238
+ You can also try to remove all the egg files or the complete egg folder, i.e.,
239
+ ``.eggs``, as well as the ``*.egg-info`` folders in the ``src`` folder or
240
+ potentially in the root of your project.
241
+
242
+ #. Sometimes |tox|_ misses out when new dependencies are added, especially to
243
+ ``setup.cfg`` and ``docs/requirements.txt``. If you find any problems with
244
+ missing dependencies when running a command with |tox|_, try to recreate the
245
+ ``tox`` environment using the ``-r`` flag. For example, instead of::
246
+
247
+ tox -e docs
248
+
249
+ Try running::
250
+
251
+ tox -r -e docs
252
+
253
+ #. Make sure to have a reliable |tox|_ installation that uses the correct
254
+ Python version (e.g., 3.7+). When in doubt you can run::
255
+
256
+ tox --version
257
+ # OR
258
+ which tox
259
+
260
+ If you have trouble and are seeing weird errors upon running |tox|_, you can
261
+ also try to create a dedicated `virtual environment`_ with a |tox|_ binary
262
+ freshly installed. For example::
263
+
264
+ virtualenv .venv
265
+ source .venv/bin/activate
266
+ .venv/bin/pip install tox
267
+ .venv/bin/tox -e all
268
+
269
+ #. `Pytest can drop you`_ in an interactive session in the case an error occurs.
270
+ In order to do that you need to pass a ``--pdb`` option (for example by
271
+ running ``tox -- -k <NAME OF THE FALLING TEST> --pdb``).
272
+ You can also setup breakpoints manually instead of using the ``--pdb`` option.
273
+
274
+
275
+ Maintainer tasks
276
+ ================
277
+
278
+ Releases
279
+ --------
280
+
281
+ .. todo:: This section assumes you are using PyPI to publicly release your package.
282
+
283
+ If instead you are using a different/private package index, please update
284
+ the instructions accordingly.
285
+
286
+ If you are part of the group of maintainers and have correct user permissions
287
+ on PyPI_, the following steps can be used to release a new version for
288
+ ``geometry_api_v2``:
289
+
290
+ #. Make sure all unit tests are successful.
291
+ #. Tag the current commit on the main branch with a release tag, e.g., ``v1.2.3``.
292
+ #. Push the new tag to the upstream repository_, e.g., ``git push upstream v1.2.3``
293
+ #. Clean up the ``dist`` and ``build`` folders with ``tox -e clean``
294
+ (or ``rm -rf dist build``)
295
+ to avoid confusion with old builds and Sphinx docs.
296
+ #. Run ``tox -e build`` and check that the files in ``dist`` have
297
+ the correct version (no ``.dirty`` or git_ hash) according to the git_ tag.
298
+ Also check the sizes of the distributions, if they are too big (e.g., >
299
+ 500KB), unwanted clutter may have been accidentally included.
300
+ #. Run ``tox -e publish -- --repository pypi`` and check that everything was
301
+ uploaded to PyPI_ correctly.
302
+
303
+
304
+
305
+ .. [#contrib1] Even though, these resources focus on open source projects and
306
+ communities, the general ideas behind collaborating with other developers
307
+ to collectively create software are general and can be applied to all sorts
308
+ of environments, including private companies and proprietary code bases.
309
+
310
+
311
+ .. <-- start -->
312
+ .. todo:: Please review and change the following definitions:
313
+
314
+ .. |the repository service| replace:: GitHub
315
+ .. |contribute button| replace:: "Create pull request"
316
+
317
+ .. _repository: https://github.com/<USERNAME>/geometry_api_v2
318
+ .. _issue tracker: https://github.com/<USERNAME>/geometry_api_v2/issues
319
+ .. <-- end -->
320
+
321
+
322
+ .. |virtualenv| replace:: ``virtualenv``
323
+ .. |pre-commit| replace:: ``pre-commit``
324
+ .. |tox| replace:: ``tox``
325
+
326
+
327
+ .. _black: https://pypi.org/project/black/
328
+ .. _CommonMark: https://commonmark.org/
329
+ .. _contribution-guide.org: https://www.contribution-guide.org/
330
+ .. _creating a PR: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request
331
+ .. _descriptive commit message: https://chris.beams.io/posts/git-commit
332
+ .. _docstrings: https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html
333
+ .. _first-contributions tutorial: https://github.com/firstcontributions/first-contributions
334
+ .. _flake8: https://flake8.pycqa.org/en/stable/
335
+ .. _git: https://git-scm.com
336
+ .. _GitHub's fork and pull request workflow: https://guides.github.com/activities/forking/
337
+ .. _guide created by FreeCodeCamp: https://github.com/FreeCodeCamp/how-to-contribute-to-open-source
338
+ .. _Miniconda: https://docs.conda.io/en/latest/miniconda.html
339
+ .. _MyST: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html
340
+ .. _other kinds of contributions: https://opensource.guide/how-to-contribute
341
+ .. _pre-commit: https://pre-commit.com/
342
+ .. _PyPI: https://pypi.org/
343
+ .. _PyScaffold's contributor's guide: https://pyscaffold.org/en/stable/contributing.html
344
+ .. _Pytest can drop you: https://docs.pytest.org/en/stable/how-to/failures.html#using-python-library-pdb-with-pytest
345
+ .. _Python Software Foundation's Code of Conduct: https://www.python.org/psf/conduct/
346
+ .. _reStructuredText: https://www.sphinx-doc.org/en/master/usage/restructuredtext/
347
+ .. _Sphinx: https://www.sphinx-doc.org/en/master/
348
+ .. _tox: https://tox.wiki/en/stable/
349
+ .. _virtual environment: https://realpython.com/python-virtual-environments-a-primer/
350
+ .. _virtualenv: https://virtualenv.pypa.io/en/stable/
351
+
352
+ .. _GitHub web interface: https://docs.github.com/en/repositories/working-with-files/managing-files/editing-files
353
+ .. _GitHub's code editor: https://docs.github.com/en/repositories/working-with-files/managing-files/editing-files
@@ -0,0 +1,7 @@
1
+ Copyright 2023 ShapeDiver GmbH
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.