extend-ai 0.0.23__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 (238) hide show
  1. extend_ai-0.0.23/PKG-INFO +171 -0
  2. extend_ai-0.0.23/README.md +144 -0
  3. extend_ai-0.0.23/pyproject.toml +64 -0
  4. extend_ai-0.0.23/src/extendconfig/__init__.py +434 -0
  5. extend_ai-0.0.23/src/extendconfig/batch_processor_run/__init__.py +5 -0
  6. extend_ai-0.0.23/src/extendconfig/batch_processor_run/client.py +195 -0
  7. extend_ai-0.0.23/src/extendconfig/batch_processor_run/types/__init__.py +5 -0
  8. extend_ai-0.0.23/src/extendconfig/batch_processor_run/types/batch_processor_run_get_response.py +23 -0
  9. extend_ai-0.0.23/src/extendconfig/batch_workflow_run/__init__.py +5 -0
  10. extend_ai-0.0.23/src/extendconfig/batch_workflow_run/client.py +309 -0
  11. extend_ai-0.0.23/src/extendconfig/batch_workflow_run/types/__init__.py +6 -0
  12. extend_ai-0.0.23/src/extendconfig/batch_workflow_run/types/batch_workflow_run_create_request_inputs_item.py +43 -0
  13. extend_ai-0.0.23/src/extendconfig/batch_workflow_run/types/batch_workflow_run_create_response.py +29 -0
  14. extend_ai-0.0.23/src/extendconfig/client.py +938 -0
  15. extend_ai-0.0.23/src/extendconfig/core/__init__.py +47 -0
  16. extend_ai-0.0.23/src/extendconfig/core/api_error.py +15 -0
  17. extend_ai-0.0.23/src/extendconfig/core/client_wrapper.py +83 -0
  18. extend_ai-0.0.23/src/extendconfig/core/datetime_utils.py +28 -0
  19. extend_ai-0.0.23/src/extendconfig/core/file.py +67 -0
  20. extend_ai-0.0.23/src/extendconfig/core/http_client.py +499 -0
  21. extend_ai-0.0.23/src/extendconfig/core/jsonable_encoder.py +101 -0
  22. extend_ai-0.0.23/src/extendconfig/core/pydantic_utilities.py +296 -0
  23. extend_ai-0.0.23/src/extendconfig/core/query_encoder.py +58 -0
  24. extend_ai-0.0.23/src/extendconfig/core/remove_none_from_dict.py +11 -0
  25. extend_ai-0.0.23/src/extendconfig/core/request_options.py +35 -0
  26. extend_ai-0.0.23/src/extendconfig/core/serialization.py +272 -0
  27. extend_ai-0.0.23/src/extendconfig/environment.py +7 -0
  28. extend_ai-0.0.23/src/extendconfig/errors/__init__.py +8 -0
  29. extend_ai-0.0.23/src/extendconfig/errors/bad_request_error.py +9 -0
  30. extend_ai-0.0.23/src/extendconfig/errors/not_found_error.py +9 -0
  31. extend_ai-0.0.23/src/extendconfig/errors/unauthorized_error.py +9 -0
  32. extend_ai-0.0.23/src/extendconfig/errors/unprocessable_entity_error.py +9 -0
  33. extend_ai-0.0.23/src/extendconfig/evaluation_set/__init__.py +5 -0
  34. extend_ai-0.0.23/src/extendconfig/evaluation_set/client.py +224 -0
  35. extend_ai-0.0.23/src/extendconfig/evaluation_set/types/__init__.py +5 -0
  36. extend_ai-0.0.23/src/extendconfig/evaluation_set/types/evaluation_set_create_response.py +23 -0
  37. extend_ai-0.0.23/src/extendconfig/evaluation_set_item/__init__.py +15 -0
  38. extend_ai-0.0.23/src/extendconfig/evaluation_set_item/client.py +693 -0
  39. extend_ai-0.0.23/src/extendconfig/evaluation_set_item/types/__init__.py +13 -0
  40. extend_ai-0.0.23/src/extendconfig/evaluation_set_item/types/evaluation_set_item_create_batch_request_items_item.py +34 -0
  41. extend_ai-0.0.23/src/extendconfig/evaluation_set_item/types/evaluation_set_item_create_batch_response.py +25 -0
  42. extend_ai-0.0.23/src/extendconfig/evaluation_set_item/types/evaluation_set_item_create_response.py +23 -0
  43. extend_ai-0.0.23/src/extendconfig/evaluation_set_item/types/evaluation_set_item_update_response.py +23 -0
  44. extend_ai-0.0.23/src/extendconfig/file/__init__.py +5 -0
  45. extend_ai-0.0.23/src/extendconfig/file/client.py +592 -0
  46. extend_ai-0.0.23/src/extendconfig/file/types/__init__.py +7 -0
  47. extend_ai-0.0.23/src/extendconfig/file/types/file_get_response.py +21 -0
  48. extend_ai-0.0.23/src/extendconfig/file/types/file_list_response.py +27 -0
  49. extend_ai-0.0.23/src/extendconfig/file/types/file_upload_response.py +21 -0
  50. extend_ai-0.0.23/src/extendconfig/file_endpoints/__init__.py +5 -0
  51. extend_ai-0.0.23/src/extendconfig/file_endpoints/client.py +224 -0
  52. extend_ai-0.0.23/src/extendconfig/file_endpoints/types/__init__.py +5 -0
  53. extend_ai-0.0.23/src/extendconfig/file_endpoints/types/post_files_response.py +21 -0
  54. extend_ai-0.0.23/src/extendconfig/processor/__init__.py +27 -0
  55. extend_ai-0.0.23/src/extendconfig/processor/client.py +489 -0
  56. extend_ai-0.0.23/src/extendconfig/processor/types/__init__.py +29 -0
  57. extend_ai-0.0.23/src/extendconfig/processor/types/processor_create_request_config.py +107 -0
  58. extend_ai-0.0.23/src/extendconfig/processor/types/processor_create_response.py +27 -0
  59. extend_ai-0.0.23/src/extendconfig/processor/types/processor_update_request_config.py +116 -0
  60. extend_ai-0.0.23/src/extendconfig/processor/types/processor_update_response.py +27 -0
  61. extend_ai-0.0.23/src/extendconfig/processor_run/__init__.py +5 -0
  62. extend_ai-0.0.23/src/extendconfig/processor_run/client.py +197 -0
  63. extend_ai-0.0.23/src/extendconfig/processor_run/types/__init__.py +5 -0
  64. extend_ai-0.0.23/src/extendconfig/processor_run/types/processor_run_get_response.py +29 -0
  65. extend_ai-0.0.23/src/extendconfig/processor_version/__init__.py +23 -0
  66. extend_ai-0.0.23/src/extendconfig/processor_version/client.py +603 -0
  67. extend_ai-0.0.23/src/extendconfig/processor_version/types/__init__.py +23 -0
  68. extend_ai-0.0.23/src/extendconfig/processor_version/types/processor_version_create_request_config.py +111 -0
  69. extend_ai-0.0.23/src/extendconfig/processor_version/types/processor_version_create_request_release_type.py +5 -0
  70. extend_ai-0.0.23/src/extendconfig/processor_version/types/processor_version_create_response.py +29 -0
  71. extend_ai-0.0.23/src/extendconfig/processor_version/types/processor_version_get_response.py +30 -0
  72. extend_ai-0.0.23/src/extendconfig/processor_version/types/processor_version_list_response.py +30 -0
  73. extend_ai-0.0.23/src/extendconfig/py.typed +0 -0
  74. extend_ai-0.0.23/src/extendconfig/types/__init__.py +327 -0
  75. extend_ai-0.0.23/src/extendconfig/types/api_version_enum.py +7 -0
  76. extend_ai-0.0.23/src/extendconfig/types/bad_request_error_body.py +39 -0
  77. extend_ai-0.0.23/src/extendconfig/types/bad_request_error_body_code.py +8 -0
  78. extend_ai-0.0.23/src/extendconfig/types/base_metrics.py +44 -0
  79. extend_ai-0.0.23/src/extendconfig/types/batch_processor_run.py +107 -0
  80. extend_ai-0.0.23/src/extendconfig/types/batch_processor_run_metrics.py +33 -0
  81. extend_ai-0.0.23/src/extendconfig/types/batch_processor_run_options.py +37 -0
  82. extend_ai-0.0.23/src/extendconfig/types/batch_processor_run_source.py +5 -0
  83. extend_ai-0.0.23/src/extendconfig/types/batch_processor_run_status.py +5 -0
  84. extend_ai-0.0.23/src/extendconfig/types/block.py +71 -0
  85. extend_ai-0.0.23/src/extendconfig/types/block_bounding_box.py +26 -0
  86. extend_ai-0.0.23/src/extendconfig/types/block_details.py +9 -0
  87. extend_ai-0.0.23/src/extendconfig/types/block_metadata.py +27 -0
  88. extend_ai-0.0.23/src/extendconfig/types/block_metadata_page.py +36 -0
  89. extend_ai-0.0.23/src/extendconfig/types/block_polygon_item.py +20 -0
  90. extend_ai-0.0.23/src/extendconfig/types/block_type.py +5 -0
  91. extend_ai-0.0.23/src/extendconfig/types/chunk.py +45 -0
  92. extend_ai-0.0.23/src/extendconfig/types/chunk_metadata.py +29 -0
  93. extend_ai-0.0.23/src/extendconfig/types/chunk_metadata_page_range.py +31 -0
  94. extend_ai-0.0.23/src/extendconfig/types/chunk_type.py +5 -0
  95. extend_ai-0.0.23/src/extendconfig/types/citation.py +37 -0
  96. extend_ai-0.0.23/src/extendconfig/types/classification.py +32 -0
  97. extend_ai-0.0.23/src/extendconfig/types/classification_advanced_options.py +39 -0
  98. extend_ai-0.0.23/src/extendconfig/types/classification_advanced_options_context.py +5 -0
  99. extend_ai-0.0.23/src/extendconfig/types/classification_config.py +55 -0
  100. extend_ai-0.0.23/src/extendconfig/types/classification_config_base_processor.py +7 -0
  101. extend_ai-0.0.23/src/extendconfig/types/classifier_output.py +38 -0
  102. extend_ai-0.0.23/src/extendconfig/types/classify_metrics.py +62 -0
  103. extend_ai-0.0.23/src/extendconfig/types/currency.py +31 -0
  104. extend_ai-0.0.23/src/extendconfig/types/empty_block_details.py +5 -0
  105. extend_ai-0.0.23/src/extendconfig/types/enum.py +27 -0
  106. extend_ai-0.0.23/src/extendconfig/types/enum_option.py +27 -0
  107. extend_ai-0.0.23/src/extendconfig/types/error.py +42 -0
  108. extend_ai-0.0.23/src/extendconfig/types/evaluation_set.py +71 -0
  109. extend_ai-0.0.23/src/extendconfig/types/evaluation_set_item.py +57 -0
  110. extend_ai-0.0.23/src/extendconfig/types/extract_chunking_options.py +49 -0
  111. extend_ai-0.0.23/src/extendconfig/types/extract_chunking_options_chunk_selection_strategy.py +7 -0
  112. extend_ai-0.0.23/src/extendconfig/types/extract_chunking_options_chunking_strategy.py +5 -0
  113. extend_ai-0.0.23/src/extendconfig/types/extract_metrics.py +43 -0
  114. extend_ai-0.0.23/src/extendconfig/types/extract_metrics_field_metrics.py +51 -0
  115. extend_ai-0.0.23/src/extendconfig/types/extraction_advanced_options.py +79 -0
  116. extend_ai-0.0.23/src/extendconfig/types/extraction_config.py +72 -0
  117. extend_ai-0.0.23/src/extendconfig/types/extraction_config_base_processor.py +5 -0
  118. extend_ai-0.0.23/src/extendconfig/types/extraction_field.py +58 -0
  119. extend_ai-0.0.23/src/extendconfig/types/extraction_field_result.py +67 -0
  120. extend_ai-0.0.23/src/extendconfig/types/extraction_field_result_reference.py +42 -0
  121. extend_ai-0.0.23/src/extendconfig/types/extraction_field_result_reference_bounding_boxes_item.py +37 -0
  122. extend_ai-0.0.23/src/extendconfig/types/extraction_field_result_type.py +8 -0
  123. extend_ai-0.0.23/src/extendconfig/types/extraction_field_result_value.py +15 -0
  124. extend_ai-0.0.23/src/extendconfig/types/extraction_field_type.py +8 -0
  125. extend_ai-0.0.23/src/extendconfig/types/extraction_output.py +7 -0
  126. extend_ai-0.0.23/src/extendconfig/types/extraction_output_edits.py +46 -0
  127. extend_ai-0.0.23/src/extendconfig/types/figure_details.py +49 -0
  128. extend_ai-0.0.23/src/extendconfig/types/figure_details_figure_type.py +5 -0
  129. extend_ai-0.0.23/src/extendconfig/types/file.py +77 -0
  130. extend_ai-0.0.23/src/extendconfig/types/file3batch_run.py +42 -0
  131. extend_ai-0.0.23/src/extendconfig/types/file3processor.py +42 -0
  132. extend_ai-0.0.23/src/extendconfig/types/file4.py +52 -0
  133. extend_ai-0.0.23/src/extendconfig/types/file4outputs_item.py +31 -0
  134. extend_ai-0.0.23/src/extendconfig/types/file_contents.py +36 -0
  135. extend_ai-0.0.23/src/extendconfig/types/file_contents_pages_item.py +43 -0
  136. extend_ai-0.0.23/src/extendconfig/types/file_contents_sheets_item.py +31 -0
  137. extend_ai-0.0.23/src/extendconfig/types/file_metadata.py +34 -0
  138. extend_ai-0.0.23/src/extendconfig/types/file_metadata_parent_split.py +48 -0
  139. extend_ai-0.0.23/src/extendconfig/types/file_type.py +5 -0
  140. extend_ai-0.0.23/src/extendconfig/types/insight.py +27 -0
  141. extend_ai-0.0.23/src/extendconfig/types/json_object.py +5 -0
  142. extend_ai-0.0.23/src/extendconfig/types/json_output.py +29 -0
  143. extend_ai-0.0.23/src/extendconfig/types/json_output_metadata_value.py +38 -0
  144. extend_ai-0.0.23/src/extendconfig/types/json_output_metadata_value_citations_item.py +39 -0
  145. extend_ai-0.0.23/src/extendconfig/types/json_output_metadata_value_citations_item_polygon_item.py +27 -0
  146. extend_ai-0.0.23/src/extendconfig/types/json_output_metadata_value_insights_item.py +27 -0
  147. extend_ai-0.0.23/src/extendconfig/types/legacy_output.py +6 -0
  148. extend_ai-0.0.23/src/extendconfig/types/max_page_size.py +3 -0
  149. extend_ai-0.0.23/src/extendconfig/types/next_page_token.py +3 -0
  150. extend_ai-0.0.23/src/extendconfig/types/output_metadata.py +6 -0
  151. extend_ai-0.0.23/src/extendconfig/types/output_metadata_value.py +38 -0
  152. extend_ai-0.0.23/src/extendconfig/types/parse_config.py +53 -0
  153. extend_ai-0.0.23/src/extendconfig/types/parse_config_advanced_options.py +26 -0
  154. extend_ai-0.0.23/src/extendconfig/types/parse_config_block_options.py +39 -0
  155. extend_ai-0.0.23/src/extendconfig/types/parse_config_block_options_figures.py +35 -0
  156. extend_ai-0.0.23/src/extendconfig/types/parse_config_block_options_tables.py +38 -0
  157. extend_ai-0.0.23/src/extendconfig/types/parse_config_block_options_tables_target_format.py +5 -0
  158. extend_ai-0.0.23/src/extendconfig/types/parse_config_block_options_text.py +30 -0
  159. extend_ai-0.0.23/src/extendconfig/types/parse_config_chunking_strategy.py +47 -0
  160. extend_ai-0.0.23/src/extendconfig/types/parse_config_chunking_strategy_type.py +5 -0
  161. extend_ai-0.0.23/src/extendconfig/types/parse_config_target.py +5 -0
  162. extend_ai-0.0.23/src/extendconfig/types/parse_error.py +25 -0
  163. extend_ai-0.0.23/src/extendconfig/types/parse_error_code.py +19 -0
  164. extend_ai-0.0.23/src/extendconfig/types/parse_request_file.py +46 -0
  165. extend_ai-0.0.23/src/extendconfig/types/parse_response.py +69 -0
  166. extend_ai-0.0.23/src/extendconfig/types/parse_response_metrics.py +33 -0
  167. extend_ai-0.0.23/src/extendconfig/types/parse_response_status.py +5 -0
  168. extend_ai-0.0.23/src/extendconfig/types/polygon.py +27 -0
  169. extend_ai-0.0.23/src/extendconfig/types/processor.py +64 -0
  170. extend_ai-0.0.23/src/extendconfig/types/processor_id.py +3 -0
  171. extend_ai-0.0.23/src/extendconfig/types/processor_output.py +8 -0
  172. extend_ai-0.0.23/src/extendconfig/types/processor_run.py +157 -0
  173. extend_ai-0.0.23/src/extendconfig/types/processor_run_config.py +105 -0
  174. extend_ai-0.0.23/src/extendconfig/types/processor_run_merged_processors_item.py +38 -0
  175. extend_ai-0.0.23/src/extendconfig/types/processor_run_status.py +5 -0
  176. extend_ai-0.0.23/src/extendconfig/types/processor_run_type.py +5 -0
  177. extend_ai-0.0.23/src/extendconfig/types/processor_type.py +5 -0
  178. extend_ai-0.0.23/src/extendconfig/types/processor_version.py +92 -0
  179. extend_ai-0.0.23/src/extendconfig/types/processor_version_config.py +113 -0
  180. extend_ai-0.0.23/src/extendconfig/types/provided_classifier_output.py +32 -0
  181. extend_ai-0.0.23/src/extendconfig/types/provided_extraction_output.py +7 -0
  182. extend_ai-0.0.23/src/extendconfig/types/provided_json_output.py +23 -0
  183. extend_ai-0.0.23/src/extendconfig/types/provided_legacy_output.py +6 -0
  184. extend_ai-0.0.23/src/extendconfig/types/provided_legacy_output_value.py +38 -0
  185. extend_ai-0.0.23/src/extendconfig/types/provided_processor_output.py +8 -0
  186. extend_ai-0.0.23/src/extendconfig/types/provided_splitter_output.py +54 -0
  187. extend_ai-0.0.23/src/extendconfig/types/run_processor_request_config.py +107 -0
  188. extend_ai-0.0.23/src/extendconfig/types/run_processor_response.py +29 -0
  189. extend_ai-0.0.23/src/extendconfig/types/run_workflow_response.py +34 -0
  190. extend_ai-0.0.23/src/extendconfig/types/signature.py +37 -0
  191. extend_ai-0.0.23/src/extendconfig/types/sort_by_enum.py +5 -0
  192. extend_ai-0.0.23/src/extendconfig/types/sort_dir_enum.py +5 -0
  193. extend_ai-0.0.23/src/extendconfig/types/splitter_advanced_options.py +48 -0
  194. extend_ai-0.0.23/src/extendconfig/types/splitter_advanced_options_split_method.py +5 -0
  195. extend_ai-0.0.23/src/extendconfig/types/splitter_config.py +56 -0
  196. extend_ai-0.0.23/src/extendconfig/types/splitter_metrics.py +63 -0
  197. extend_ai-0.0.23/src/extendconfig/types/splitter_output.py +23 -0
  198. extend_ai-0.0.23/src/extendconfig/types/splitter_output_splits_item.py +64 -0
  199. extend_ai-0.0.23/src/extendconfig/types/step_run.py +49 -0
  200. extend_ai-0.0.23/src/extendconfig/types/step_run_output.py +26 -0
  201. extend_ai-0.0.23/src/extendconfig/types/step_run_output_rules_item.py +52 -0
  202. extend_ai-0.0.23/src/extendconfig/types/step_run_output_rules_item_failure_reason.py +7 -0
  203. extend_ai-0.0.23/src/extendconfig/types/step_run_status.py +5 -0
  204. extend_ai-0.0.23/src/extendconfig/types/step_run_step.py +44 -0
  205. extend_ai-0.0.23/src/extendconfig/types/step_run_step_type.py +5 -0
  206. extend_ai-0.0.23/src/extendconfig/types/table_cell_details.py +31 -0
  207. extend_ai-0.0.23/src/extendconfig/types/table_details.py +38 -0
  208. extend_ai-0.0.23/src/extendconfig/types/webhook_event.py +42 -0
  209. extend_ai-0.0.23/src/extendconfig/types/webhook_event_event_type.py +24 -0
  210. extend_ai-0.0.23/src/extendconfig/types/webhook_event_payload.py +10 -0
  211. extend_ai-0.0.23/src/extendconfig/types/webhook_event_processor.py +40 -0
  212. extend_ai-0.0.23/src/extendconfig/types/webhook_event_processor_event_type.py +7 -0
  213. extend_ai-0.0.23/src/extendconfig/types/webhook_event_processor_run.py +40 -0
  214. extend_ai-0.0.23/src/extendconfig/types/webhook_event_processor_run_event_type.py +7 -0
  215. extend_ai-0.0.23/src/extendconfig/types/webhook_event_processor_version.py +39 -0
  216. extend_ai-0.0.23/src/extendconfig/types/webhook_event_workflow.py +34 -0
  217. extend_ai-0.0.23/src/extendconfig/types/webhook_event_workflow_event_type.py +7 -0
  218. extend_ai-0.0.23/src/extendconfig/types/webhook_event_workflow_run.py +40 -0
  219. extend_ai-0.0.23/src/extendconfig/types/webhook_event_workflow_run_event_type.py +14 -0
  220. extend_ai-0.0.23/src/extendconfig/types/workflow.py +43 -0
  221. extend_ai-0.0.23/src/extendconfig/types/workflow_run.py +155 -0
  222. extend_ai-0.0.23/src/extendconfig/types/workflow_run_summary.py +125 -0
  223. extend_ai-0.0.23/src/extendconfig/types/workflow_status.py +7 -0
  224. extend_ai-0.0.23/src/extendconfig/version.py +3 -0
  225. extend_ai-0.0.23/src/extendconfig/workflow/__init__.py +5 -0
  226. extend_ai-0.0.23/src/extendconfig/workflow/client.py +190 -0
  227. extend_ai-0.0.23/src/extendconfig/workflow/types/__init__.py +5 -0
  228. extend_ai-0.0.23/src/extendconfig/workflow/types/workflow_create_response.py +21 -0
  229. extend_ai-0.0.23/src/extendconfig/workflow_run/__init__.py +5 -0
  230. extend_ai-0.0.23/src/extendconfig/workflow_run/client.py +666 -0
  231. extend_ai-0.0.23/src/extendconfig/workflow_run/types/__init__.py +7 -0
  232. extend_ai-0.0.23/src/extendconfig/workflow_run/types/workflow_run_get_response.py +29 -0
  233. extend_ai-0.0.23/src/extendconfig/workflow_run/types/workflow_run_list_response.py +27 -0
  234. extend_ai-0.0.23/src/extendconfig/workflow_run/types/workflow_run_update_response.py +29 -0
  235. extend_ai-0.0.23/src/extendconfig/workflow_run_output/__init__.py +5 -0
  236. extend_ai-0.0.23/src/extendconfig/workflow_run_output/client.py +258 -0
  237. extend_ai-0.0.23/src/extendconfig/workflow_run_output/types/__init__.py +5 -0
  238. extend_ai-0.0.23/src/extendconfig/workflow_run_output/types/workflow_run_output_update_response.py +29 -0
@@ -0,0 +1,171 @@
1
+ Metadata-Version: 2.1
2
+ Name: extend-ai
3
+ Version: 0.0.23
4
+ Summary:
5
+ Requires-Python: >=3.8,<4.0
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: Operating System :: MacOS
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Operating System :: POSIX
11
+ Classifier: Operating System :: POSIX :: Linux
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Classifier: Typing :: Typed
21
+ Requires-Dist: httpx (>=0.21.2)
22
+ Requires-Dist: pydantic (>=1.9.2)
23
+ Requires-Dist: pydantic-core (>=2.18.2,<3.0.0)
24
+ Requires-Dist: typing_extensions (>=4.0.0)
25
+ Description-Content-Type: text/markdown
26
+
27
+ # Extendconfig Python Library
28
+
29
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fextend-hq%2Fextend-python-sdk)
30
+ [![pypi](https://img.shields.io/pypi/v/extend_ai)](https://pypi.python.org/pypi/extend_ai)
31
+
32
+ The Extendconfig Python library provides convenient access to the Extendconfig API from Python.
33
+
34
+ ## Documentation
35
+
36
+ API reference documentation is available [here](https://docs.extend.ai/2025-04-21/developers/authentication).
37
+
38
+ ## Installation
39
+
40
+ ```sh
41
+ pip install extend_ai
42
+ ```
43
+
44
+ ## Reference
45
+
46
+ A full reference for this library is available [here](./reference.md).
47
+
48
+ ## Usage
49
+
50
+ Instantiate and use the client with the following:
51
+
52
+ ```python
53
+ from extendconfig import Extend
54
+
55
+ client = Extend(
56
+ extend_api_version="YOUR_EXTEND_API_VERSION",
57
+ token="YOUR_TOKEN",
58
+ )
59
+ client.run_workflow(
60
+ workflow_id="workflow_id_here",
61
+ )
62
+ ```
63
+
64
+ ## Async Client
65
+
66
+ The SDK also exports an `async` client so that you can make non-blocking calls to our API.
67
+
68
+ ```python
69
+ import asyncio
70
+
71
+ from extendconfig import AsyncExtend
72
+
73
+ client = AsyncExtend(
74
+ extend_api_version="YOUR_EXTEND_API_VERSION",
75
+ token="YOUR_TOKEN",
76
+ )
77
+
78
+
79
+ async def main() -> None:
80
+ await client.run_workflow(
81
+ workflow_id="workflow_id_here",
82
+ )
83
+
84
+
85
+ asyncio.run(main())
86
+ ```
87
+
88
+ ## Exception Handling
89
+
90
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
91
+ will be thrown.
92
+
93
+ ```python
94
+ from extendconfig.core.api_error import ApiError
95
+
96
+ try:
97
+ client.run_workflow(...)
98
+ except ApiError as e:
99
+ print(e.status_code)
100
+ print(e.body)
101
+ ```
102
+
103
+ ## Advanced
104
+
105
+ ### Retries
106
+
107
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
108
+ as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
109
+ retry limit (default: 2).
110
+
111
+ A request is deemed retriable when any of the following HTTP status codes is returned:
112
+
113
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
114
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
115
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
116
+
117
+ Use the `max_retries` request option to configure this behavior.
118
+
119
+ ```python
120
+ client.run_workflow(..., request_options={
121
+ "max_retries": 1
122
+ })
123
+ ```
124
+
125
+ ### Timeouts
126
+
127
+ The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
128
+
129
+ ```python
130
+
131
+ from extendconfig import Extend
132
+
133
+ client = Extend(
134
+ ...,
135
+ timeout=20.0,
136
+ )
137
+
138
+
139
+ # Override timeout for a specific method
140
+ client.run_workflow(..., request_options={
141
+ "timeout_in_seconds": 1
142
+ })
143
+ ```
144
+
145
+ ### Custom Client
146
+
147
+ You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
148
+ and transports.
149
+ ```python
150
+ import httpx
151
+ from extendconfig import Extend
152
+
153
+ client = Extend(
154
+ ...,
155
+ httpx_client=httpx.Client(
156
+ proxies="http://my.test.proxy.example.com",
157
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
158
+ ),
159
+ )
160
+ ```
161
+
162
+ ## Contributing
163
+
164
+ While we value open-source contributions to this SDK, this library is generated programmatically.
165
+ Additions made directly to this library would have to be moved over to our generation code,
166
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
167
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
168
+ an issue first to discuss with us!
169
+
170
+ On the other hand, contributions to the README are always very welcome!
171
+
@@ -0,0 +1,144 @@
1
+ # Extendconfig Python Library
2
+
3
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fextend-hq%2Fextend-python-sdk)
4
+ [![pypi](https://img.shields.io/pypi/v/extend_ai)](https://pypi.python.org/pypi/extend_ai)
5
+
6
+ The Extendconfig Python library provides convenient access to the Extendconfig API from Python.
7
+
8
+ ## Documentation
9
+
10
+ API reference documentation is available [here](https://docs.extend.ai/2025-04-21/developers/authentication).
11
+
12
+ ## Installation
13
+
14
+ ```sh
15
+ pip install extend_ai
16
+ ```
17
+
18
+ ## Reference
19
+
20
+ A full reference for this library is available [here](./reference.md).
21
+
22
+ ## Usage
23
+
24
+ Instantiate and use the client with the following:
25
+
26
+ ```python
27
+ from extendconfig import Extend
28
+
29
+ client = Extend(
30
+ extend_api_version="YOUR_EXTEND_API_VERSION",
31
+ token="YOUR_TOKEN",
32
+ )
33
+ client.run_workflow(
34
+ workflow_id="workflow_id_here",
35
+ )
36
+ ```
37
+
38
+ ## Async Client
39
+
40
+ The SDK also exports an `async` client so that you can make non-blocking calls to our API.
41
+
42
+ ```python
43
+ import asyncio
44
+
45
+ from extendconfig import AsyncExtend
46
+
47
+ client = AsyncExtend(
48
+ extend_api_version="YOUR_EXTEND_API_VERSION",
49
+ token="YOUR_TOKEN",
50
+ )
51
+
52
+
53
+ async def main() -> None:
54
+ await client.run_workflow(
55
+ workflow_id="workflow_id_here",
56
+ )
57
+
58
+
59
+ asyncio.run(main())
60
+ ```
61
+
62
+ ## Exception Handling
63
+
64
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
65
+ will be thrown.
66
+
67
+ ```python
68
+ from extendconfig.core.api_error import ApiError
69
+
70
+ try:
71
+ client.run_workflow(...)
72
+ except ApiError as e:
73
+ print(e.status_code)
74
+ print(e.body)
75
+ ```
76
+
77
+ ## Advanced
78
+
79
+ ### Retries
80
+
81
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
82
+ as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
83
+ retry limit (default: 2).
84
+
85
+ A request is deemed retriable when any of the following HTTP status codes is returned:
86
+
87
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
88
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
89
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
90
+
91
+ Use the `max_retries` request option to configure this behavior.
92
+
93
+ ```python
94
+ client.run_workflow(..., request_options={
95
+ "max_retries": 1
96
+ })
97
+ ```
98
+
99
+ ### Timeouts
100
+
101
+ The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
102
+
103
+ ```python
104
+
105
+ from extendconfig import Extend
106
+
107
+ client = Extend(
108
+ ...,
109
+ timeout=20.0,
110
+ )
111
+
112
+
113
+ # Override timeout for a specific method
114
+ client.run_workflow(..., request_options={
115
+ "timeout_in_seconds": 1
116
+ })
117
+ ```
118
+
119
+ ### Custom Client
120
+
121
+ You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
122
+ and transports.
123
+ ```python
124
+ import httpx
125
+ from extendconfig import Extend
126
+
127
+ client = Extend(
128
+ ...,
129
+ httpx_client=httpx.Client(
130
+ proxies="http://my.test.proxy.example.com",
131
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
132
+ ),
133
+ )
134
+ ```
135
+
136
+ ## Contributing
137
+
138
+ While we value open-source contributions to this SDK, this library is generated programmatically.
139
+ Additions made directly to this library would have to be moved over to our generation code,
140
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
141
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
142
+ an issue first to discuss with us!
143
+
144
+ On the other hand, contributions to the README are always very welcome!
@@ -0,0 +1,64 @@
1
+ [project]
2
+ name = "extend_ai"
3
+
4
+ [tool.poetry]
5
+ name = "extend_ai"
6
+ version = "0.0.23"
7
+ description = ""
8
+ readme = "README.md"
9
+ authors = []
10
+ keywords = []
11
+
12
+ classifiers = [
13
+ "Intended Audience :: Developers",
14
+ "Programming Language :: Python",
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.8",
17
+ "Programming Language :: Python :: 3.9",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Operating System :: OS Independent",
22
+ "Operating System :: POSIX",
23
+ "Operating System :: MacOS",
24
+ "Operating System :: POSIX :: Linux",
25
+ "Operating System :: Microsoft :: Windows",
26
+ "Topic :: Software Development :: Libraries :: Python Modules",
27
+ "Typing :: Typed"
28
+ ]
29
+ packages = [
30
+ { include = "extendconfig", from = "src"}
31
+ ]
32
+
33
+ [project.urls]
34
+ Repository = 'https://github.com/extend-hq/extend-python-sdk'
35
+
36
+ [tool.poetry.dependencies]
37
+ python = "^3.8"
38
+ httpx = ">=0.21.2"
39
+ pydantic = ">= 1.9.2"
40
+ pydantic-core = "^2.18.2"
41
+ typing_extensions = ">= 4.0.0"
42
+
43
+ [tool.poetry.dev-dependencies]
44
+ mypy = "1.0.1"
45
+ pytest = "^7.4.0"
46
+ pytest-asyncio = "^0.23.5"
47
+ python-dateutil = "^2.9.0"
48
+ types-python-dateutil = "^2.9.0.20240316"
49
+ ruff = "^0.5.6"
50
+
51
+ [tool.pytest.ini_options]
52
+ testpaths = [ "tests" ]
53
+ asyncio_mode = "auto"
54
+
55
+ [tool.mypy]
56
+ plugins = ["pydantic.mypy"]
57
+
58
+ [tool.ruff]
59
+ line-length = 120
60
+
61
+
62
+ [build-system]
63
+ requires = ["poetry-core"]
64
+ build-backend = "poetry.core.masonry.api"