capo-comprehend 0.1.0__py3-none-any.whl

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 (552) hide show
  1. capo_comprehend/__init__.py +70 -0
  2. capo_comprehend/_async.py +25 -0
  3. capo_comprehend/_auth/_identity.py +16 -0
  4. capo_comprehend/_auth/_providers.py +886 -0
  5. capo_comprehend/_auth/_signers.py +88 -0
  6. capo_comprehend/_auth/_sigv4.py +434 -0
  7. capo_comprehend/_auth/_zapros_handler.py +80 -0
  8. capo_comprehend/_iter.py +113 -0
  9. capo_comprehend/_operations/comprehend_20171127/batch_detect_dominant_language.py +164 -0
  10. capo_comprehend/_operations/comprehend_20171127/batch_detect_entities.py +170 -0
  11. capo_comprehend/_operations/comprehend_20171127/batch_detect_key_phrases.py +170 -0
  12. capo_comprehend/_operations/comprehend_20171127/batch_detect_sentiment.py +170 -0
  13. capo_comprehend/_operations/comprehend_20171127/batch_detect_syntax.py +170 -0
  14. capo_comprehend/_operations/comprehend_20171127/batch_detect_targeted_sentiment.py +170 -0
  15. capo_comprehend/_operations/comprehend_20171127/classify_document.py +171 -0
  16. capo_comprehend/_operations/comprehend_20171127/contains_pii_entities.py +163 -0
  17. capo_comprehend/_operations/comprehend_20171127/create_dataset.py +179 -0
  18. capo_comprehend/_operations/comprehend_20171127/create_document_classifier.py +187 -0
  19. capo_comprehend/_operations/comprehend_20171127/create_endpoint.py +184 -0
  20. capo_comprehend/_operations/comprehend_20171127/create_entity_recognizer.py +185 -0
  21. capo_comprehend/_operations/comprehend_20171127/create_flywheel.py +197 -0
  22. capo_comprehend/_operations/comprehend_20171127/delete_document_classifier.py +167 -0
  23. capo_comprehend/_operations/comprehend_20171127/delete_endpoint.py +160 -0
  24. capo_comprehend/_operations/comprehend_20171127/delete_entity_recognizer.py +167 -0
  25. capo_comprehend/_operations/comprehend_20171127/delete_flywheel.py +165 -0
  26. capo_comprehend/_operations/comprehend_20171127/delete_resource_policy.py +152 -0
  27. capo_comprehend/_operations/comprehend_20171127/describe_dataset.py +164 -0
  28. capo_comprehend/_operations/comprehend_20171127/describe_document_classification_job.py +162 -0
  29. capo_comprehend/_operations/comprehend_20171127/describe_document_classifier.py +162 -0
  30. capo_comprehend/_operations/comprehend_20171127/describe_dominant_language_detection_job.py +162 -0
  31. capo_comprehend/_operations/comprehend_20171127/describe_endpoint.py +164 -0
  32. capo_comprehend/_operations/comprehend_20171127/describe_entities_detection_job.py +162 -0
  33. capo_comprehend/_operations/comprehend_20171127/describe_entity_recognizer.py +162 -0
  34. capo_comprehend/_operations/comprehend_20171127/describe_events_detection_job.py +162 -0
  35. capo_comprehend/_operations/comprehend_20171127/describe_flywheel.py +164 -0
  36. capo_comprehend/_operations/comprehend_20171127/describe_flywheel_iteration.py +162 -0
  37. capo_comprehend/_operations/comprehend_20171127/describe_key_phrases_detection_job.py +162 -0
  38. capo_comprehend/_operations/comprehend_20171127/describe_pii_entities_detection_job.py +162 -0
  39. capo_comprehend/_operations/comprehend_20171127/describe_resource_policy.py +157 -0
  40. capo_comprehend/_operations/comprehend_20171127/describe_sentiment_detection_job.py +162 -0
  41. capo_comprehend/_operations/comprehend_20171127/describe_targeted_sentiment_detection_job.py +164 -0
  42. capo_comprehend/_operations/comprehend_20171127/describe_topics_detection_job.py +162 -0
  43. capo_comprehend/_operations/comprehend_20171127/detect_dominant_language.py +157 -0
  44. capo_comprehend/_operations/comprehend_20171127/detect_entities.py +176 -0
  45. capo_comprehend/_operations/comprehend_20171127/detect_key_phrases.py +165 -0
  46. capo_comprehend/_operations/comprehend_20171127/detect_pii_entities.py +163 -0
  47. capo_comprehend/_operations/comprehend_20171127/detect_sentiment.py +166 -0
  48. capo_comprehend/_operations/comprehend_20171127/detect_syntax.py +163 -0
  49. capo_comprehend/_operations/comprehend_20171127/detect_targeted_sentiment.py +163 -0
  50. capo_comprehend/_operations/comprehend_20171127/detect_toxic_content.py +164 -0
  51. capo_comprehend/_operations/comprehend_20171127/import_model.py +187 -0
  52. capo_comprehend/_operations/comprehend_20171127/list_datasets.py +168 -0
  53. capo_comprehend/_operations/comprehend_20171127/list_document_classification_jobs.py +163 -0
  54. capo_comprehend/_operations/comprehend_20171127/list_document_classifier_summaries.py +157 -0
  55. capo_comprehend/_operations/comprehend_20171127/list_document_classifiers.py +163 -0
  56. capo_comprehend/_operations/comprehend_20171127/list_dominant_language_detection_jobs.py +163 -0
  57. capo_comprehend/_operations/comprehend_20171127/list_endpoints.py +158 -0
  58. capo_comprehend/_operations/comprehend_20171127/list_entities_detection_jobs.py +163 -0
  59. capo_comprehend/_operations/comprehend_20171127/list_entity_recognizer_summaries.py +157 -0
  60. capo_comprehend/_operations/comprehend_20171127/list_entity_recognizers.py +167 -0
  61. capo_comprehend/_operations/comprehend_20171127/list_events_detection_jobs.py +163 -0
  62. capo_comprehend/_operations/comprehend_20171127/list_flywheel_iteration_history.py +168 -0
  63. capo_comprehend/_operations/comprehend_20171127/list_flywheels.py +163 -0
  64. capo_comprehend/_operations/comprehend_20171127/list_key_phrases_detection_jobs.py +163 -0
  65. capo_comprehend/_operations/comprehend_20171127/list_pii_entities_detection_jobs.py +163 -0
  66. capo_comprehend/_operations/comprehend_20171127/list_sentiment_detection_jobs.py +163 -0
  67. capo_comprehend/_operations/comprehend_20171127/list_tags_for_resource.py +157 -0
  68. capo_comprehend/_operations/comprehend_20171127/list_targeted_sentiment_detection_jobs.py +163 -0
  69. capo_comprehend/_operations/comprehend_20171127/list_topics_detection_jobs.py +163 -0
  70. capo_comprehend/_operations/comprehend_20171127/put_resource_policy.py +156 -0
  71. capo_comprehend/_operations/comprehend_20171127/start_document_classification_job.py +186 -0
  72. capo_comprehend/_operations/comprehend_20171127/start_dominant_language_detection_job.py +176 -0
  73. capo_comprehend/_operations/comprehend_20171127/start_entities_detection_job.py +187 -0
  74. capo_comprehend/_operations/comprehend_20171127/start_events_detection_job.py +177 -0
  75. capo_comprehend/_operations/comprehend_20171127/start_flywheel_iteration.py +166 -0
  76. capo_comprehend/_operations/comprehend_20171127/start_key_phrases_detection_job.py +177 -0
  77. capo_comprehend/_operations/comprehend_20171127/start_pii_entities_detection_job.py +178 -0
  78. capo_comprehend/_operations/comprehend_20171127/start_sentiment_detection_job.py +177 -0
  79. capo_comprehend/_operations/comprehend_20171127/start_targeted_sentiment_detection_job.py +177 -0
  80. capo_comprehend/_operations/comprehend_20171127/start_topics_detection_job.py +176 -0
  81. capo_comprehend/_operations/comprehend_20171127/stop_dominant_language_detection_job.py +157 -0
  82. capo_comprehend/_operations/comprehend_20171127/stop_entities_detection_job.py +157 -0
  83. capo_comprehend/_operations/comprehend_20171127/stop_events_detection_job.py +157 -0
  84. capo_comprehend/_operations/comprehend_20171127/stop_key_phrases_detection_job.py +157 -0
  85. capo_comprehend/_operations/comprehend_20171127/stop_pii_entities_detection_job.py +157 -0
  86. capo_comprehend/_operations/comprehend_20171127/stop_sentiment_detection_job.py +157 -0
  87. capo_comprehend/_operations/comprehend_20171127/stop_targeted_sentiment_detection_job.py +157 -0
  88. capo_comprehend/_operations/comprehend_20171127/stop_training_document_classifier.py +157 -0
  89. capo_comprehend/_operations/comprehend_20171127/stop_training_entity_recognizer.py +157 -0
  90. capo_comprehend/_operations/comprehend_20171127/tag_resource.py +159 -0
  91. capo_comprehend/_operations/comprehend_20171127/untag_resource.py +159 -0
  92. capo_comprehend/_operations/comprehend_20171127/update_endpoint.py +178 -0
  93. capo_comprehend/_operations/comprehend_20171127/update_flywheel.py +170 -0
  94. capo_comprehend/_pagination.py +21 -0
  95. capo_comprehend/_protocol/__init__.py +1 -0
  96. capo_comprehend/_protocol/errors.py +93 -0
  97. capo_comprehend/_protocol/eventstream.py +238 -0
  98. capo_comprehend/_protocol/serialize.py +47 -0
  99. capo_comprehend/_protocol/xml.py +33 -0
  100. capo_comprehend/_rule_engine/__init__.py +0 -0
  101. capo_comprehend/_rule_engine/_aws_partition.py +160 -0
  102. capo_comprehend/_rule_engine/_endpoint_rule_set.py +138 -0
  103. capo_comprehend/_rule_engine/_endpoint_runtime.py +389 -0
  104. capo_comprehend/_services/_aws_config.py +160 -0
  105. capo_comprehend/_services/_pipeline.py +198 -0
  106. capo_comprehend/_services/async_comprehend.py +5706 -0
  107. capo_comprehend/_services/comprehend.py +5623 -0
  108. capo_comprehend/errors/__init__.py +63 -0
  109. capo_comprehend/errors/_base.py +94 -0
  110. capo_comprehend/errors/batch_size_limit_exceeded_exception.py +53 -0
  111. capo_comprehend/errors/concurrent_modification_exception.py +53 -0
  112. capo_comprehend/errors/internal_server_exception.py +51 -0
  113. capo_comprehend/errors/invalid_filter_exception.py +51 -0
  114. capo_comprehend/errors/invalid_request_exception.py +91 -0
  115. capo_comprehend/errors/job_not_found_exception.py +51 -0
  116. capo_comprehend/errors/kms_key_validation_exception.py +51 -0
  117. capo_comprehend/errors/resource_in_use_exception.py +51 -0
  118. capo_comprehend/errors/resource_limit_exceeded_exception.py +53 -0
  119. capo_comprehend/errors/resource_not_found_exception.py +51 -0
  120. capo_comprehend/errors/resource_unavailable_exception.py +51 -0
  121. capo_comprehend/errors/text_size_limit_exceeded_exception.py +53 -0
  122. capo_comprehend/errors/too_many_requests_exception.py +51 -0
  123. capo_comprehend/errors/too_many_tag_keys_exception.py +51 -0
  124. capo_comprehend/errors/too_many_tags_exception.py +51 -0
  125. capo_comprehend/errors/unsupported_language_exception.py +51 -0
  126. capo_comprehend/py.typed +0 -0
  127. capo_comprehend/types/_prelude/blob.py +12 -0
  128. capo_comprehend/types/_prelude/timestamp.py +17 -0
  129. capo_comprehend/types/any_length_string.py +5 -0
  130. capo_comprehend/types/attribute_names_list.py +19 -0
  131. capo_comprehend/types/attribute_names_list_item.py +5 -0
  132. capo_comprehend/types/augmented_manifests_document_type_format.py +17 -0
  133. capo_comprehend/types/augmented_manifests_list_item.py +101 -0
  134. capo_comprehend/types/batch_detect_dominant_language_item_result.py +49 -0
  135. capo_comprehend/types/batch_detect_dominant_language_request.py +47 -0
  136. capo_comprehend/types/batch_detect_dominant_language_response.py +67 -0
  137. capo_comprehend/types/batch_detect_entities_item_result.py +45 -0
  138. capo_comprehend/types/batch_detect_entities_request.py +63 -0
  139. capo_comprehend/types/batch_detect_entities_response.py +63 -0
  140. capo_comprehend/types/batch_detect_key_phrases_item_result.py +49 -0
  141. capo_comprehend/types/batch_detect_key_phrases_request.py +65 -0
  142. capo_comprehend/types/batch_detect_key_phrases_response.py +63 -0
  143. capo_comprehend/types/batch_detect_sentiment_item_result.py +64 -0
  144. capo_comprehend/types/batch_detect_sentiment_request.py +63 -0
  145. capo_comprehend/types/batch_detect_sentiment_response.py +63 -0
  146. capo_comprehend/types/batch_detect_syntax_item_result.py +49 -0
  147. capo_comprehend/types/batch_detect_syntax_request.py +65 -0
  148. capo_comprehend/types/batch_detect_syntax_response.py +65 -0
  149. capo_comprehend/types/batch_detect_targeted_sentiment_item_result.py +49 -0
  150. capo_comprehend/types/batch_detect_targeted_sentiment_request.py +67 -0
  151. capo_comprehend/types/batch_detect_targeted_sentiment_response.py +67 -0
  152. capo_comprehend/types/batch_item_error.py +41 -0
  153. capo_comprehend/types/batch_item_error_list.py +33 -0
  154. capo_comprehend/types/block.py +92 -0
  155. capo_comprehend/types/block_reference.py +62 -0
  156. capo_comprehend/types/block_type.py +17 -0
  157. capo_comprehend/types/bounding_box.py +78 -0
  158. capo_comprehend/types/child_block.py +41 -0
  159. capo_comprehend/types/classifier_evaluation_metrics.py +134 -0
  160. capo_comprehend/types/classifier_metadata.py +61 -0
  161. capo_comprehend/types/classify_document_request.py +80 -0
  162. capo_comprehend/types/classify_document_response.py +125 -0
  163. capo_comprehend/types/client_request_token_string.py +5 -0
  164. capo_comprehend/types/comprehend_arn.py +5 -0
  165. capo_comprehend/types/comprehend_arn_name.py +5 -0
  166. capo_comprehend/types/comprehend_dataset_arn.py +5 -0
  167. capo_comprehend/types/comprehend_endpoint_arn.py +5 -0
  168. capo_comprehend/types/comprehend_endpoint_name.py +5 -0
  169. capo_comprehend/types/comprehend_flywheel_arn.py +5 -0
  170. capo_comprehend/types/comprehend_model_arn.py +5 -0
  171. capo_comprehend/types/contains_pii_entities_request.py +49 -0
  172. capo_comprehend/types/contains_pii_entities_response.py +42 -0
  173. capo_comprehend/types/create_dataset_request.py +109 -0
  174. capo_comprehend/types/create_dataset_response.py +30 -0
  175. capo_comprehend/types/create_document_classifier_request.py +195 -0
  176. capo_comprehend/types/create_document_classifier_response.py +30 -0
  177. capo_comprehend/types/create_endpoint_request.py +94 -0
  178. capo_comprehend/types/create_endpoint_response.py +39 -0
  179. capo_comprehend/types/create_entity_recognizer_request.py +151 -0
  180. capo_comprehend/types/create_entity_recognizer_response.py +30 -0
  181. capo_comprehend/types/create_flywheel_request.py +133 -0
  182. capo_comprehend/types/create_flywheel_response.py +39 -0
  183. capo_comprehend/types/customer_input_string.py +5 -0
  184. capo_comprehend/types/customer_input_string_list.py +19 -0
  185. capo_comprehend/types/data_security_config.py +54 -0
  186. capo_comprehend/types/dataset_augmented_manifests_list.py +39 -0
  187. capo_comprehend/types/dataset_augmented_manifests_list_item.py +86 -0
  188. capo_comprehend/types/dataset_data_format.py +17 -0
  189. capo_comprehend/types/dataset_document_classifier_input_data_config.py +40 -0
  190. capo_comprehend/types/dataset_entity_recognizer_annotations.py +31 -0
  191. capo_comprehend/types/dataset_entity_recognizer_documents.py +48 -0
  192. capo_comprehend/types/dataset_entity_recognizer_entity_list.py +31 -0
  193. capo_comprehend/types/dataset_entity_recognizer_input_data_config.py +87 -0
  194. capo_comprehend/types/dataset_filter.py +90 -0
  195. capo_comprehend/types/dataset_input_data_config.py +105 -0
  196. capo_comprehend/types/dataset_properties.py +130 -0
  197. capo_comprehend/types/dataset_properties_list.py +35 -0
  198. capo_comprehend/types/dataset_status.py +18 -0
  199. capo_comprehend/types/dataset_type.py +17 -0
  200. capo_comprehend/types/delete_document_classifier_request.py +35 -0
  201. capo_comprehend/types/delete_document_classifier_response.py +18 -0
  202. capo_comprehend/types/delete_endpoint_request.py +31 -0
  203. capo_comprehend/types/delete_endpoint_response.py +18 -0
  204. capo_comprehend/types/delete_entity_recognizer_request.py +35 -0
  205. capo_comprehend/types/delete_entity_recognizer_response.py +18 -0
  206. capo_comprehend/types/delete_flywheel_request.py +31 -0
  207. capo_comprehend/types/delete_flywheel_response.py +18 -0
  208. capo_comprehend/types/delete_resource_policy_request.py +40 -0
  209. capo_comprehend/types/delete_resource_policy_response.py +18 -0
  210. capo_comprehend/types/describe_dataset_request.py +31 -0
  211. capo_comprehend/types/describe_dataset_response.py +42 -0
  212. capo_comprehend/types/describe_document_classification_job_request.py +33 -0
  213. capo_comprehend/types/describe_document_classification_job_response.py +42 -0
  214. capo_comprehend/types/describe_document_classifier_request.py +35 -0
  215. capo_comprehend/types/describe_document_classifier_response.py +42 -0
  216. capo_comprehend/types/describe_dominant_language_detection_job_request.py +33 -0
  217. capo_comprehend/types/describe_dominant_language_detection_job_response.py +44 -0
  218. capo_comprehend/types/describe_endpoint_request.py +31 -0
  219. capo_comprehend/types/describe_endpoint_response.py +42 -0
  220. capo_comprehend/types/describe_entities_detection_job_request.py +33 -0
  221. capo_comprehend/types/describe_entities_detection_job_response.py +42 -0
  222. capo_comprehend/types/describe_entity_recognizer_request.py +35 -0
  223. capo_comprehend/types/describe_entity_recognizer_response.py +42 -0
  224. capo_comprehend/types/describe_events_detection_job_request.py +31 -0
  225. capo_comprehend/types/describe_events_detection_job_response.py +42 -0
  226. capo_comprehend/types/describe_flywheel_iteration_request.py +45 -0
  227. capo_comprehend/types/describe_flywheel_iteration_response.py +42 -0
  228. capo_comprehend/types/describe_flywheel_request.py +31 -0
  229. capo_comprehend/types/describe_flywheel_response.py +42 -0
  230. capo_comprehend/types/describe_key_phrases_detection_job_request.py +33 -0
  231. capo_comprehend/types/describe_key_phrases_detection_job_response.py +42 -0
  232. capo_comprehend/types/describe_pii_entities_detection_job_request.py +33 -0
  233. capo_comprehend/types/describe_pii_entities_detection_job_response.py +41 -0
  234. capo_comprehend/types/describe_resource_policy_request.py +33 -0
  235. capo_comprehend/types/describe_resource_policy_response.py +70 -0
  236. capo_comprehend/types/describe_sentiment_detection_job_request.py +33 -0
  237. capo_comprehend/types/describe_sentiment_detection_job_response.py +42 -0
  238. capo_comprehend/types/describe_targeted_sentiment_detection_job_request.py +35 -0
  239. capo_comprehend/types/describe_targeted_sentiment_detection_job_response.py +46 -0
  240. capo_comprehend/types/describe_topics_detection_job_request.py +31 -0
  241. capo_comprehend/types/describe_topics_detection_job_response.py +42 -0
  242. capo_comprehend/types/description.py +5 -0
  243. capo_comprehend/types/detect_dominant_language_request.py +31 -0
  244. capo_comprehend/types/detect_dominant_language_response.py +42 -0
  245. capo_comprehend/types/detect_entities_request.py +98 -0
  246. capo_comprehend/types/detect_entities_response.py +110 -0
  247. capo_comprehend/types/detect_key_phrases_request.py +49 -0
  248. capo_comprehend/types/detect_key_phrases_response.py +42 -0
  249. capo_comprehend/types/detect_pii_entities_request.py +49 -0
  250. capo_comprehend/types/detect_pii_entities_response.py +42 -0
  251. capo_comprehend/types/detect_sentiment_request.py +49 -0
  252. capo_comprehend/types/detect_sentiment_response.py +57 -0
  253. capo_comprehend/types/detect_syntax_request.py +51 -0
  254. capo_comprehend/types/detect_syntax_response.py +42 -0
  255. capo_comprehend/types/detect_targeted_sentiment_request.py +51 -0
  256. capo_comprehend/types/detect_targeted_sentiment_response.py +42 -0
  257. capo_comprehend/types/detect_toxic_content_request.py +61 -0
  258. capo_comprehend/types/detect_toxic_content_response.py +42 -0
  259. capo_comprehend/types/document_class.py +50 -0
  260. capo_comprehend/types/document_classification_config.py +56 -0
  261. capo_comprehend/types/document_classification_job_filter.py +78 -0
  262. capo_comprehend/types/document_classification_job_properties.py +182 -0
  263. capo_comprehend/types/document_classification_job_properties_list.py +39 -0
  264. capo_comprehend/types/document_classifier_arn.py +5 -0
  265. capo_comprehend/types/document_classifier_augmented_manifests_list.py +39 -0
  266. capo_comprehend/types/document_classifier_data_format.py +17 -0
  267. capo_comprehend/types/document_classifier_document_type_format.py +17 -0
  268. capo_comprehend/types/document_classifier_documents.py +37 -0
  269. capo_comprehend/types/document_classifier_endpoint_arn.py +5 -0
  270. capo_comprehend/types/document_classifier_filter.py +80 -0
  271. capo_comprehend/types/document_classifier_input_data_config.py +145 -0
  272. capo_comprehend/types/document_classifier_mode.py +17 -0
  273. capo_comprehend/types/document_classifier_output_data_config.py +41 -0
  274. capo_comprehend/types/document_classifier_properties.py +277 -0
  275. capo_comprehend/types/document_classifier_properties_list.py +39 -0
  276. capo_comprehend/types/document_classifier_summaries_list.py +39 -0
  277. capo_comprehend/types/document_classifier_summary.py +82 -0
  278. capo_comprehend/types/document_label.py +50 -0
  279. capo_comprehend/types/document_metadata.py +49 -0
  280. capo_comprehend/types/document_read_action.py +17 -0
  281. capo_comprehend/types/document_read_feature_types.py +18 -0
  282. capo_comprehend/types/document_read_mode.py +17 -0
  283. capo_comprehend/types/document_reader_config.py +87 -0
  284. capo_comprehend/types/document_type.py +22 -0
  285. capo_comprehend/types/document_type_list_item.py +43 -0
  286. capo_comprehend/types/dominant_language.py +43 -0
  287. capo_comprehend/types/dominant_language_detection_job_filter.py +78 -0
  288. capo_comprehend/types/dominant_language_detection_job_properties.py +164 -0
  289. capo_comprehend/types/dominant_language_detection_job_properties_list.py +39 -0
  290. capo_comprehend/types/double.py +5 -0
  291. capo_comprehend/types/endpoint_filter.py +82 -0
  292. capo_comprehend/types/endpoint_properties.py +143 -0
  293. capo_comprehend/types/endpoint_properties_list.py +35 -0
  294. capo_comprehend/types/endpoint_status.py +20 -0
  295. capo_comprehend/types/entities_detection_job_filter.py +78 -0
  296. capo_comprehend/types/entities_detection_job_properties.py +201 -0
  297. capo_comprehend/types/entities_detection_job_properties_list.py +39 -0
  298. capo_comprehend/types/entity.py +92 -0
  299. capo_comprehend/types/entity_label.py +51 -0
  300. capo_comprehend/types/entity_recognition_config.py +41 -0
  301. capo_comprehend/types/entity_recognizer_annotations.py +37 -0
  302. capo_comprehend/types/entity_recognizer_arn.py +5 -0
  303. capo_comprehend/types/entity_recognizer_augmented_manifests_list.py +39 -0
  304. capo_comprehend/types/entity_recognizer_data_format.py +17 -0
  305. capo_comprehend/types/entity_recognizer_documents.py +54 -0
  306. capo_comprehend/types/entity_recognizer_endpoint_arn.py +5 -0
  307. capo_comprehend/types/entity_recognizer_entity_list.py +31 -0
  308. capo_comprehend/types/entity_recognizer_evaluation_metrics.py +64 -0
  309. capo_comprehend/types/entity_recognizer_filter.py +80 -0
  310. capo_comprehend/types/entity_recognizer_input_data_config.py +148 -0
  311. capo_comprehend/types/entity_recognizer_metadata.py +76 -0
  312. capo_comprehend/types/entity_recognizer_metadata_entity_types_list.py +39 -0
  313. capo_comprehend/types/entity_recognizer_metadata_entity_types_list_item.py +56 -0
  314. capo_comprehend/types/entity_recognizer_output_data_config.py +28 -0
  315. capo_comprehend/types/entity_recognizer_properties.py +256 -0
  316. capo_comprehend/types/entity_recognizer_properties_list.py +39 -0
  317. capo_comprehend/types/entity_recognizer_summaries_list.py +37 -0
  318. capo_comprehend/types/entity_recognizer_summary.py +82 -0
  319. capo_comprehend/types/entity_type.py +24 -0
  320. capo_comprehend/types/entity_type_name.py +5 -0
  321. capo_comprehend/types/entity_types_evaluation_metrics.py +64 -0
  322. capo_comprehend/types/entity_types_list.py +35 -0
  323. capo_comprehend/types/entity_types_list_item.py +31 -0
  324. capo_comprehend/types/errors_list_item.py +56 -0
  325. capo_comprehend/types/event_type_string.py +5 -0
  326. capo_comprehend/types/events_detection_job_filter.py +78 -0
  327. capo_comprehend/types/events_detection_job_properties.py +182 -0
  328. capo_comprehend/types/events_detection_job_properties_list.py +39 -0
  329. capo_comprehend/types/extracted_characters_list_item.py +34 -0
  330. capo_comprehend/types/float.py +5 -0
  331. capo_comprehend/types/flywheel_filter.py +73 -0
  332. capo_comprehend/types/flywheel_iteration_filter.py +58 -0
  333. capo_comprehend/types/flywheel_iteration_id.py +5 -0
  334. capo_comprehend/types/flywheel_iteration_properties.py +160 -0
  335. capo_comprehend/types/flywheel_iteration_properties_list.py +39 -0
  336. capo_comprehend/types/flywheel_iteration_status.py +21 -0
  337. capo_comprehend/types/flywheel_model_evaluation_metrics.py +78 -0
  338. capo_comprehend/types/flywheel_properties.py +168 -0
  339. capo_comprehend/types/flywheel_s3_uri.py +5 -0
  340. capo_comprehend/types/flywheel_status.py +20 -0
  341. capo_comprehend/types/flywheel_summary.py +125 -0
  342. capo_comprehend/types/flywheel_summary_list.py +33 -0
  343. capo_comprehend/types/geometry.py +53 -0
  344. capo_comprehend/types/iam_role_arn.py +5 -0
  345. capo_comprehend/types/import_model_request.py +76 -0
  346. capo_comprehend/types/import_model_response.py +30 -0
  347. capo_comprehend/types/inference_units_integer.py +5 -0
  348. capo_comprehend/types/input_data_config.py +69 -0
  349. capo_comprehend/types/input_format.py +17 -0
  350. capo_comprehend/types/integer.py +5 -0
  351. capo_comprehend/types/invalid_request_detail.py +42 -0
  352. capo_comprehend/types/invalid_request_detail_reason.py +19 -0
  353. capo_comprehend/types/invalid_request_reason.py +14 -0
  354. capo_comprehend/types/job_id.py +5 -0
  355. capo_comprehend/types/job_name.py +5 -0
  356. capo_comprehend/types/job_status.py +21 -0
  357. capo_comprehend/types/key_phrase.py +56 -0
  358. capo_comprehend/types/key_phrases_detection_job_filter.py +78 -0
  359. capo_comprehend/types/key_phrases_detection_job_properties.py +183 -0
  360. capo_comprehend/types/key_phrases_detection_job_properties_list.py +39 -0
  361. capo_comprehend/types/kms_key_id.py +5 -0
  362. capo_comprehend/types/label_delimiter.py +5 -0
  363. capo_comprehend/types/label_list_item.py +5 -0
  364. capo_comprehend/types/labels_list.py +17 -0
  365. capo_comprehend/types/language_code.py +27 -0
  366. capo_comprehend/types/list_datasets_request.py +61 -0
  367. capo_comprehend/types/list_datasets_response.py +49 -0
  368. capo_comprehend/types/list_document_classification_jobs_request.py +58 -0
  369. capo_comprehend/types/list_document_classification_jobs_response.py +49 -0
  370. capo_comprehend/types/list_document_classifier_summaries_request.py +37 -0
  371. capo_comprehend/types/list_document_classifier_summaries_response.py +49 -0
  372. capo_comprehend/types/list_document_classifiers_request.py +58 -0
  373. capo_comprehend/types/list_document_classifiers_response.py +49 -0
  374. capo_comprehend/types/list_dominant_language_detection_jobs_request.py +58 -0
  375. capo_comprehend/types/list_dominant_language_detection_jobs_response.py +49 -0
  376. capo_comprehend/types/list_endpoints_request.py +52 -0
  377. capo_comprehend/types/list_endpoints_response.py +49 -0
  378. capo_comprehend/types/list_entities_detection_jobs_request.py +58 -0
  379. capo_comprehend/types/list_entities_detection_jobs_response.py +49 -0
  380. capo_comprehend/types/list_entity_recognizer_summaries_request.py +37 -0
  381. capo_comprehend/types/list_entity_recognizer_summaries_response.py +49 -0
  382. capo_comprehend/types/list_entity_recognizers_request.py +58 -0
  383. capo_comprehend/types/list_entity_recognizers_response.py +49 -0
  384. capo_comprehend/types/list_events_detection_jobs_request.py +58 -0
  385. capo_comprehend/types/list_events_detection_jobs_response.py +49 -0
  386. capo_comprehend/types/list_flywheel_iteration_history_request.py +70 -0
  387. capo_comprehend/types/list_flywheel_iteration_history_response.py +49 -0
  388. capo_comprehend/types/list_flywheels_request.py +52 -0
  389. capo_comprehend/types/list_flywheels_response.py +49 -0
  390. capo_comprehend/types/list_key_phrases_detection_jobs_request.py +58 -0
  391. capo_comprehend/types/list_key_phrases_detection_jobs_response.py +49 -0
  392. capo_comprehend/types/list_of_block_references.py +31 -0
  393. capo_comprehend/types/list_of_blocks.py +29 -0
  394. capo_comprehend/types/list_of_child_blocks.py +29 -0
  395. capo_comprehend/types/list_of_classes.py +29 -0
  396. capo_comprehend/types/list_of_descriptive_mention_indices.py +19 -0
  397. capo_comprehend/types/list_of_detect_dominant_language_result.py +39 -0
  398. capo_comprehend/types/list_of_detect_entities_result.py +39 -0
  399. capo_comprehend/types/list_of_detect_key_phrases_result.py +39 -0
  400. capo_comprehend/types/list_of_detect_sentiment_result.py +39 -0
  401. capo_comprehend/types/list_of_detect_syntax_result.py +39 -0
  402. capo_comprehend/types/list_of_detect_targeted_sentiment_result.py +39 -0
  403. capo_comprehend/types/list_of_document_read_feature_types.py +39 -0
  404. capo_comprehend/types/list_of_document_type.py +35 -0
  405. capo_comprehend/types/list_of_dominant_languages.py +33 -0
  406. capo_comprehend/types/list_of_entities.py +29 -0
  407. capo_comprehend/types/list_of_entity_labels.py +29 -0
  408. capo_comprehend/types/list_of_errors.py +31 -0
  409. capo_comprehend/types/list_of_extracted_characters.py +39 -0
  410. capo_comprehend/types/list_of_key_phrases.py +29 -0
  411. capo_comprehend/types/list_of_labels.py +29 -0
  412. capo_comprehend/types/list_of_mentions.py +39 -0
  413. capo_comprehend/types/list_of_pii_entities.py +29 -0
  414. capo_comprehend/types/list_of_pii_entity_types.py +31 -0
  415. capo_comprehend/types/list_of_relationships.py +35 -0
  416. capo_comprehend/types/list_of_syntax_tokens.py +29 -0
  417. capo_comprehend/types/list_of_targeted_sentiment_entities.py +37 -0
  418. capo_comprehend/types/list_of_text_segments.py +29 -0
  419. capo_comprehend/types/list_of_toxic_content.py +29 -0
  420. capo_comprehend/types/list_of_toxic_labels.py +29 -0
  421. capo_comprehend/types/list_of_warnings.py +35 -0
  422. capo_comprehend/types/list_pii_entities_detection_jobs_request.py +58 -0
  423. capo_comprehend/types/list_pii_entities_detection_jobs_response.py +49 -0
  424. capo_comprehend/types/list_sentiment_detection_jobs_request.py +58 -0
  425. capo_comprehend/types/list_sentiment_detection_jobs_response.py +49 -0
  426. capo_comprehend/types/list_tags_for_resource_request.py +31 -0
  427. capo_comprehend/types/list_tags_for_resource_response.py +43 -0
  428. capo_comprehend/types/list_targeted_sentiment_detection_jobs_request.py +58 -0
  429. capo_comprehend/types/list_targeted_sentiment_detection_jobs_response.py +49 -0
  430. capo_comprehend/types/list_topics_detection_jobs_request.py +58 -0
  431. capo_comprehend/types/list_topics_detection_jobs_response.py +49 -0
  432. capo_comprehend/types/mask_character.py +5 -0
  433. capo_comprehend/types/max_results_integer.py +5 -0
  434. capo_comprehend/types/mention_sentiment.py +56 -0
  435. capo_comprehend/types/model_status.py +23 -0
  436. capo_comprehend/types/model_type.py +17 -0
  437. capo_comprehend/types/number_of_documents.py +5 -0
  438. capo_comprehend/types/number_of_topics_integer.py +5 -0
  439. capo_comprehend/types/output_data_config.py +38 -0
  440. capo_comprehend/types/page_based_error_code.py +20 -0
  441. capo_comprehend/types/page_based_warning_code.py +17 -0
  442. capo_comprehend/types/part_of_speech_tag.py +57 -0
  443. capo_comprehend/types/part_of_speech_tag_type.py +33 -0
  444. capo_comprehend/types/pii_entities_detection_job_filter.py +78 -0
  445. capo_comprehend/types/pii_entities_detection_job_properties.py +203 -0
  446. capo_comprehend/types/pii_entities_detection_job_properties_list.py +39 -0
  447. capo_comprehend/types/pii_entities_detection_mask_mode.py +17 -0
  448. capo_comprehend/types/pii_entities_detection_mode.py +17 -0
  449. capo_comprehend/types/pii_entity.py +64 -0
  450. capo_comprehend/types/pii_entity_type.py +52 -0
  451. capo_comprehend/types/pii_output_data_config.py +38 -0
  452. capo_comprehend/types/point.py +50 -0
  453. capo_comprehend/types/policy.py +5 -0
  454. capo_comprehend/types/policy_revision_id.py +5 -0
  455. capo_comprehend/types/polygon.py +29 -0
  456. capo_comprehend/types/put_resource_policy_request.py +48 -0
  457. capo_comprehend/types/put_resource_policy_response.py +30 -0
  458. capo_comprehend/types/redaction_config.py +70 -0
  459. capo_comprehend/types/relationship_type.py +14 -0
  460. capo_comprehend/types/relationships_list_item.py +51 -0
  461. capo_comprehend/types/s3_uri.py +5 -0
  462. capo_comprehend/types/security_group_id.py +5 -0
  463. capo_comprehend/types/security_group_ids.py +19 -0
  464. capo_comprehend/types/semi_structured_document_blob.py +15 -0
  465. capo_comprehend/types/sentiment_detection_job_filter.py +78 -0
  466. capo_comprehend/types/sentiment_detection_job_properties.py +183 -0
  467. capo_comprehend/types/sentiment_detection_job_properties_list.py +39 -0
  468. capo_comprehend/types/sentiment_score.py +78 -0
  469. capo_comprehend/types/sentiment_type.py +19 -0
  470. capo_comprehend/types/split.py +17 -0
  471. capo_comprehend/types/start_document_classification_job_request.py +148 -0
  472. capo_comprehend/types/start_document_classification_job_response.py +59 -0
  473. capo_comprehend/types/start_dominant_language_detection_job_request.py +130 -0
  474. capo_comprehend/types/start_dominant_language_detection_job_response.py +50 -0
  475. capo_comprehend/types/start_entities_detection_job_request.py +168 -0
  476. capo_comprehend/types/start_entities_detection_job_response.py +59 -0
  477. capo_comprehend/types/start_events_detection_job_request.py +150 -0
  478. capo_comprehend/types/start_events_detection_job_response.py +50 -0
  479. capo_comprehend/types/start_flywheel_iteration_request.py +42 -0
  480. capo_comprehend/types/start_flywheel_iteration_response.py +39 -0
  481. capo_comprehend/types/start_key_phrases_detection_job_request.py +150 -0
  482. capo_comprehend/types/start_key_phrases_detection_job_response.py +50 -0
  483. capo_comprehend/types/start_pii_entities_detection_job_request.py +169 -0
  484. capo_comprehend/types/start_pii_entities_detection_job_response.py +50 -0
  485. capo_comprehend/types/start_sentiment_detection_job_request.py +150 -0
  486. capo_comprehend/types/start_sentiment_detection_job_response.py +50 -0
  487. capo_comprehend/types/start_targeted_sentiment_detection_job_request.py +148 -0
  488. capo_comprehend/types/start_targeted_sentiment_detection_job_response.py +50 -0
  489. capo_comprehend/types/start_topics_detection_job_request.py +139 -0
  490. capo_comprehend/types/start_topics_detection_job_response.py +50 -0
  491. capo_comprehend/types/stop_dominant_language_detection_job_request.py +33 -0
  492. capo_comprehend/types/stop_dominant_language_detection_job_response.py +43 -0
  493. capo_comprehend/types/stop_entities_detection_job_request.py +31 -0
  494. capo_comprehend/types/stop_entities_detection_job_response.py +43 -0
  495. capo_comprehend/types/stop_events_detection_job_request.py +31 -0
  496. capo_comprehend/types/stop_events_detection_job_response.py +43 -0
  497. capo_comprehend/types/stop_key_phrases_detection_job_request.py +31 -0
  498. capo_comprehend/types/stop_key_phrases_detection_job_response.py +43 -0
  499. capo_comprehend/types/stop_pii_entities_detection_job_request.py +31 -0
  500. capo_comprehend/types/stop_pii_entities_detection_job_response.py +43 -0
  501. capo_comprehend/types/stop_sentiment_detection_job_request.py +31 -0
  502. capo_comprehend/types/stop_sentiment_detection_job_response.py +43 -0
  503. capo_comprehend/types/stop_targeted_sentiment_detection_job_request.py +33 -0
  504. capo_comprehend/types/stop_targeted_sentiment_detection_job_response.py +43 -0
  505. capo_comprehend/types/stop_training_document_classifier_request.py +35 -0
  506. capo_comprehend/types/stop_training_document_classifier_response.py +18 -0
  507. capo_comprehend/types/stop_training_entity_recognizer_request.py +35 -0
  508. capo_comprehend/types/stop_training_entity_recognizer_response.py +18 -0
  509. capo_comprehend/types/string.py +5 -0
  510. capo_comprehend/types/string_list.py +17 -0
  511. capo_comprehend/types/subnet_id.py +5 -0
  512. capo_comprehend/types/subnets.py +17 -0
  513. capo_comprehend/types/syntax_language_code.py +21 -0
  514. capo_comprehend/types/syntax_token.py +68 -0
  515. capo_comprehend/types/tag.py +38 -0
  516. capo_comprehend/types/tag_key.py +5 -0
  517. capo_comprehend/types/tag_key_list.py +17 -0
  518. capo_comprehend/types/tag_list.py +29 -0
  519. capo_comprehend/types/tag_resource_request.py +45 -0
  520. capo_comprehend/types/tag_resource_response.py +18 -0
  521. capo_comprehend/types/tag_value.py +5 -0
  522. capo_comprehend/types/target_event_types.py +19 -0
  523. capo_comprehend/types/targeted_sentiment_detection_job_filter.py +78 -0
  524. capo_comprehend/types/targeted_sentiment_detection_job_properties.py +180 -0
  525. capo_comprehend/types/targeted_sentiment_detection_job_properties_list.py +39 -0
  526. capo_comprehend/types/targeted_sentiment_entity.py +59 -0
  527. capo_comprehend/types/targeted_sentiment_entity_type.py +32 -0
  528. capo_comprehend/types/targeted_sentiment_mention.py +112 -0
  529. capo_comprehend/types/task_config.py +83 -0
  530. capo_comprehend/types/text_segment.py +31 -0
  531. capo_comprehend/types/timestamp.py +20 -0
  532. capo_comprehend/types/topics_detection_job_filter.py +78 -0
  533. capo_comprehend/types/topics_detection_job_properties.py +171 -0
  534. capo_comprehend/types/topics_detection_job_properties_list.py +39 -0
  535. capo_comprehend/types/toxic_content.py +51 -0
  536. capo_comprehend/types/toxic_content_type.py +22 -0
  537. capo_comprehend/types/toxic_labels.py +57 -0
  538. capo_comprehend/types/untag_resource_request.py +47 -0
  539. capo_comprehend/types/untag_resource_response.py +18 -0
  540. capo_comprehend/types/update_data_security_config.py +48 -0
  541. capo_comprehend/types/update_endpoint_request.py +67 -0
  542. capo_comprehend/types/update_endpoint_response.py +30 -0
  543. capo_comprehend/types/update_flywheel_request.py +68 -0
  544. capo_comprehend/types/update_flywheel_response.py +42 -0
  545. capo_comprehend/types/version_name.py +5 -0
  546. capo_comprehend/types/vpc_config.py +59 -0
  547. capo_comprehend/types/warnings_list_item.py +56 -0
  548. capo_comprehend-0.1.0.dist-info/METADATA +101 -0
  549. capo_comprehend-0.1.0.dist-info/RECORD +552 -0
  550. capo_comprehend-0.1.0.dist-info/WHEEL +5 -0
  551. capo_comprehend-0.1.0.dist-info/licenses/LICENSE +21 -0
  552. capo_comprehend-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,70 @@
1
+ from __future__ import annotations
2
+
3
+ from . import _iter as _iter
4
+ from . import _protocol as _protocol
5
+ from ._auth._identity import Credentials as Credentials
6
+ from ._auth._identity import Identity as Identity
7
+ from ._auth._providers import (
8
+ AssumeRoleCredentialsProvider as AssumeRoleCredentialsProvider,
9
+ )
10
+ from ._auth._providers import (
11
+ AssumeRoleError as AssumeRoleError,
12
+ )
13
+ from ._auth._providers import (
14
+ CachedProvider as CachedProvider,
15
+ )
16
+ from ._auth._providers import (
17
+ ChainedProvider as ChainedProvider,
18
+ )
19
+ from ._auth._providers import (
20
+ CredentialsProvider as CredentialsProvider,
21
+ )
22
+ from ._auth._providers import (
23
+ EnvCredentialsProvider as EnvCredentialsProvider,
24
+ )
25
+ from ._auth._providers import (
26
+ IdentityNotFound as IdentityNotFound,
27
+ )
28
+ from ._auth._providers import (
29
+ IdentityProvider as IdentityProvider,
30
+ )
31
+ from ._auth._providers import (
32
+ MissingDependencyError as MissingDependencyError,
33
+ )
34
+ from ._auth._providers import (
35
+ ProfileCredentialsProvider as ProfileCredentialsProvider,
36
+ )
37
+ from ._auth._providers import (
38
+ SsoCredentialsProvider as SsoCredentialsProvider,
39
+ )
40
+ from ._auth._providers import (
41
+ SSOError as SSOError,
42
+ )
43
+ from ._auth._providers import (
44
+ StaticAwsCredentialsProvider as StaticAwsCredentialsProvider,
45
+ )
46
+ from ._auth._providers import (
47
+ WebIdentityCredentialsProvider as WebIdentityCredentialsProvider,
48
+ )
49
+ from ._auth._signers import Signer as Signer
50
+ from ._auth._signers import SigV4Signer as SigV4Signer
51
+ from ._services._pipeline import (
52
+ AsyncOperationOptions as AsyncOperationOptions,
53
+ )
54
+ from ._services._pipeline import (
55
+ AsyncOperationRequest as AsyncOperationRequest,
56
+ )
57
+ from ._services._pipeline import (
58
+ AsyncOperationResponse as AsyncOperationResponse,
59
+ )
60
+ from ._services._pipeline import (
61
+ OperationOptions as OperationOptions,
62
+ )
63
+ from ._services._pipeline import (
64
+ OperationRequest as OperationRequest,
65
+ )
66
+ from ._services._pipeline import (
67
+ OperationResponse as OperationResponse,
68
+ )
69
+ from ._services.async_comprehend import AsyncComprehendClient as AsyncComprehendClient
70
+ from ._services.comprehend import ComprehendClient as ComprehendClient
@@ -0,0 +1,25 @@
1
+ from __future__ import annotations
2
+
3
+ import asyncio
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ import trio
8
+ else:
9
+ try:
10
+ import trio
11
+ except ImportError:
12
+ trio = None
13
+
14
+
15
+ def in_trio_run() -> bool:
16
+ if trio is None:
17
+ return False
18
+ return trio.lowlevel.in_trio_run()
19
+
20
+
21
+ async def anysleep(delay: float) -> None:
22
+ if in_trio_run():
23
+ await trio.sleep(delay)
24
+ else:
25
+ await asyncio.sleep(delay)
@@ -0,0 +1,16 @@
1
+ from __future__ import annotations
2
+
3
+ from datetime import datetime
4
+ from typing import TypedDict
5
+
6
+ from typing_extensions import NotRequired
7
+
8
+
9
+ class Identity(TypedDict):
10
+ expiration: NotRequired[datetime | None]
11
+
12
+
13
+ class Credentials(Identity):
14
+ access_key: str
15
+ secret_key: str
16
+ session_token: NotRequired[str | None]