capo-codeguru-reviewer 0.1.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 (181) hide show
  1. capo_codeguru_reviewer-0.1.0/LICENSE +21 -0
  2. capo_codeguru_reviewer-0.1.0/PKG-INFO +102 -0
  3. capo_codeguru_reviewer-0.1.0/README.md +75 -0
  4. capo_codeguru_reviewer-0.1.0/pyproject.toml +61 -0
  5. capo_codeguru_reviewer-0.1.0/setup.cfg +4 -0
  6. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/__init__.py +74 -0
  7. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_async.py +25 -0
  8. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_auth/_identity.py +16 -0
  9. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_auth/_providers.py +886 -0
  10. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_auth/_signers.py +88 -0
  11. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_auth/_sigv4.py +434 -0
  12. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_auth/_zapros_handler.py +80 -0
  13. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_iter.py +113 -0
  14. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/associate_repository.py +175 -0
  15. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/create_code_review.py +176 -0
  16. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/describe_code_review.py +168 -0
  17. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/describe_recommendation_feedback.py +172 -0
  18. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/describe_repository_association.py +169 -0
  19. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/disassociate_repository.py +174 -0
  20. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/list_code_reviews.py +193 -0
  21. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/list_recommendation_feedback.py +180 -0
  22. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/list_recommendations.py +172 -0
  23. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/list_repository_associations.py +191 -0
  24. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/list_tags_for_resource.py +158 -0
  25. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/put_recommendation_feedback.py +168 -0
  26. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/tag_resource.py +158 -0
  27. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_operations/aws_guru_frontend_service/untag_resource.py +156 -0
  28. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_pagination.py +21 -0
  29. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_protocol/__init__.py +1 -0
  30. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_protocol/errors.py +93 -0
  31. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_protocol/eventstream.py +238 -0
  32. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_protocol/serialize.py +47 -0
  33. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_protocol/xml.py +33 -0
  34. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_rule_engine/__init__.py +0 -0
  35. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_rule_engine/_aws_partition.py +160 -0
  36. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_rule_engine/_endpoint_rule_set.py +138 -0
  37. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_rule_engine/_endpoint_runtime.py +389 -0
  38. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_services/_aws_config.py +160 -0
  39. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_services/_pipeline.py +198 -0
  40. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_services/async_code_guru_reviewer.py +1118 -0
  41. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/_services/code_guru_reviewer.py +1104 -0
  42. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/errors/__init__.py +34 -0
  43. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/errors/_base.py +94 -0
  44. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/errors/access_denied_exception.py +51 -0
  45. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/errors/conflict_exception.py +49 -0
  46. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/errors/internal_server_exception.py +51 -0
  47. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/errors/not_found_exception.py +49 -0
  48. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/errors/resource_not_found_exception.py +51 -0
  49. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/errors/throttling_exception.py +49 -0
  50. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/errors/validation_exception.py +49 -0
  51. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/py.typed +0 -0
  52. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/_prelude/blob.py +12 -0
  53. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/_prelude/timestamp.py +17 -0
  54. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/analysis_type.py +17 -0
  55. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/analysis_types.py +31 -0
  56. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/arn.py +5 -0
  57. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/associate_repository_request.py +82 -0
  58. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/associate_repository_response.py +55 -0
  59. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/association_arn.py +5 -0
  60. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/association_id.py +5 -0
  61. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/branch_diff_source_code_type.py +42 -0
  62. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/branch_name.py +5 -0
  63. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/build_artifacts_object_key.py +5 -0
  64. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/client_request_token.py +5 -0
  65. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/code_artifacts.py +42 -0
  66. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/code_commit_repository.py +31 -0
  67. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/code_review.py +235 -0
  68. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/code_review_name.py +5 -0
  69. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/code_review_summaries.py +35 -0
  70. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/code_review_summary.py +182 -0
  71. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/code_review_type.py +66 -0
  72. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/commit_diff_source_code_type.py +40 -0
  73. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/commit_id.py +5 -0
  74. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/config_file_state.py +18 -0
  75. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/connection_arn.py +5 -0
  76. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/create_code_review_request.py +68 -0
  77. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/create_code_review_response.py +35 -0
  78. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/describe_code_review_request.py +24 -0
  79. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/describe_code_review_response.py +36 -0
  80. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/describe_recommendation_feedback_request.py +30 -0
  81. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/describe_recommendation_feedback_response.py +42 -0
  82. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/describe_repository_association_request.py +24 -0
  83. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/describe_repository_association_response.py +55 -0
  84. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/disassociate_repository_request.py +24 -0
  85. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/disassociate_repository_response.py +55 -0
  86. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/encryption_option.py +17 -0
  87. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/error_message.py +5 -0
  88. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/event_info.py +35 -0
  89. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/event_name.py +5 -0
  90. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/event_state.py +5 -0
  91. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/file_path.py +5 -0
  92. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/findings_count.py +5 -0
  93. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/job_state.py +19 -0
  94. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/job_states.py +29 -0
  95. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/kms_key_details.py +49 -0
  96. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/kms_key_id.py +5 -0
  97. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/line_number.py +5 -0
  98. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/lines_of_code_count.py +5 -0
  99. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_code_reviews_max_results.py +5 -0
  100. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_code_reviews_request.py +45 -0
  101. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_code_reviews_response.py +49 -0
  102. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_recommendation_feedback_request.py +38 -0
  103. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_recommendation_feedback_response.py +49 -0
  104. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_recommendations_max_results.py +5 -0
  105. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_recommendations_request.py +32 -0
  106. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_recommendations_response.py +49 -0
  107. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_repository_associations_request.py +43 -0
  108. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_repository_associations_response.py +49 -0
  109. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_tags_for_resource_request.py +24 -0
  110. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/list_tags_for_resource_response.py +34 -0
  111. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/long_description.py +5 -0
  112. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/max_results.py +5 -0
  113. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/metrics.py +47 -0
  114. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/metrics_summary.py +47 -0
  115. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/name.py +5 -0
  116. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/names.py +17 -0
  117. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/next_token.py +5 -0
  118. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/owner.py +5 -0
  119. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/owners.py +17 -0
  120. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/provider_type.py +20 -0
  121. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/provider_types.py +31 -0
  122. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/pull_request_id.py +5 -0
  123. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/put_recommendation_feedback_request.py +61 -0
  124. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/put_recommendation_feedback_response.py +18 -0
  125. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/reaction.py +17 -0
  126. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/reactions.py +29 -0
  127. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/recommendation_category.py +26 -0
  128. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/recommendation_feedback.py +98 -0
  129. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/recommendation_feedback_summaries.py +39 -0
  130. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/recommendation_feedback_summary.py +52 -0
  131. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/recommendation_id.py +5 -0
  132. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/recommendation_ids.py +19 -0
  133. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/recommendation_summaries.py +35 -0
  134. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/recommendation_summary.py +112 -0
  135. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/repository.py +97 -0
  136. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/repository_analysis.py +62 -0
  137. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/repository_association.py +187 -0
  138. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/repository_association_state.py +20 -0
  139. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/repository_association_states.py +39 -0
  140. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/repository_association_summaries.py +39 -0
  141. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/repository_association_summary.py +121 -0
  142. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/repository_head_source_code_type.py +31 -0
  143. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/repository_names.py +17 -0
  144. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/request_id.py +5 -0
  145. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/request_metadata.py +65 -0
  146. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/requester.py +5 -0
  147. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/rule_id.py +5 -0
  148. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/rule_metadata.py +68 -0
  149. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/rule_name.py +5 -0
  150. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/rule_tag.py +5 -0
  151. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/rule_tags.py +17 -0
  152. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/s3_bucket_name.py +5 -0
  153. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/s3_bucket_repository.py +52 -0
  154. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/s3_repository.py +39 -0
  155. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/s3_repository_details.py +49 -0
  156. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/severity.py +20 -0
  157. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/short_description.py +5 -0
  158. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/source_code_artifacts_object_key.py +5 -0
  159. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/source_code_type.py +125 -0
  160. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/state_reason.py +5 -0
  161. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/tag_key.py +5 -0
  162. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/tag_key_list.py +17 -0
  163. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/tag_map.py +29 -0
  164. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/tag_resource_request.py +40 -0
  165. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/tag_resource_response.py +18 -0
  166. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/tag_value.py +5 -0
  167. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/text.py +5 -0
  168. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/third_party_source_repository.py +47 -0
  169. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/time_stamp.py +20 -0
  170. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/type.py +17 -0
  171. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/untag_resource_request.py +27 -0
  172. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/untag_resource_response.py +18 -0
  173. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/user_id.py +5 -0
  174. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/user_ids.py +17 -0
  175. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer/types/vendor_name.py +18 -0
  176. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer.egg-info/PKG-INFO +102 -0
  177. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer.egg-info/SOURCES.txt +179 -0
  178. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer.egg-info/dependency_links.txt +1 -0
  179. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer.egg-info/requires.txt +7 -0
  180. capo_codeguru_reviewer-0.1.0/src/capo_codeguru_reviewer.egg-info/top_level.txt +1 -0
  181. capo_codeguru_reviewer-0.1.0/tests/test_sigv4.py +557 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Karen Petrosyan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,102 @@
1
+ Metadata-Version: 2.4
2
+ Name: capo-codeguru-reviewer
3
+ Version: 0.1.0
4
+ Summary: Python SDK for Codeguru Reviewer.
5
+ Classifier: Development Status :: 4 - Beta
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Python :: 3.14
15
+ Classifier: Topic :: Software Development :: Code Generators
16
+ Classifier: Typing :: Typed
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: jmespath>=1.0
21
+ Requires-Dist: zapros>=0.13.0
22
+ Provides-Extra: sso
23
+ Requires-Dist: capo-sso>=0.2.0; extra == "sso"
24
+ Requires-Dist: capo-sso-oidc>=0.2.0; extra == "sso"
25
+ Requires-Dist: capo-sts>=0.3.0; extra == "sso"
26
+ Dynamic: license-file
27
+
28
+ # Getting Started
29
+
30
+ ## Installation
31
+
32
+ ```
33
+ pip install capo-codeguru-reviewer
34
+ ```
35
+
36
+ ## Usage
37
+
38
+ ```python
39
+ from capo_codeguru_reviewer import AsyncCodeGuruReviewerClient
40
+
41
+
42
+ async def main():
43
+ async with AsyncCodeGuruReviewerClient() as code_guru_reviewer:
44
+ # Example: call the associate_repository operation
45
+ response = await code_guru_reviewer.associate_repository()
46
+ print(response["repository_association"])
47
+ ```
48
+
49
+ ## Pagination
50
+
51
+ Some operations in this SDK support pagination. If the operation supports pagination it will have an `iter_` prefixed method that returns an async iterator.
52
+
53
+ ```python
54
+ from capo_codeguru_reviewer import AsyncCodeGuruReviewerClient
55
+
56
+
57
+ async def main():
58
+ async with AsyncCodeGuruReviewerClient() as code_guru_reviewer:
59
+ # Example: paginate over list_code_reviews
60
+ async for item in code_guru_reviewer.iter_list_code_reviews():
61
+ print(item)
62
+ ```
63
+
64
+ ## Error Handling
65
+
66
+ The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
67
+
68
+ ```python
69
+ from capo_codeguru_reviewer import AsyncCodeGuruReviewerClient
70
+ from capo_codeguru_reviewer.error import AccessDeniedException
71
+
72
+
73
+ async def main():
74
+ async with AsyncCodeGuruReviewerClient() as code_guru_reviewer:
75
+ try:
76
+ await code_guru_reviewer.associate_repository()
77
+ except AccessDeniedException as e:
78
+ print(f"Error: {e}")
79
+ print(e.data) # additional error data
80
+ ```
81
+
82
+ ## Retrying
83
+
84
+ The SDK retries failed operations automatically. Retry behaviour follows the Smithy specification: errors are retried based on their `is_retryable` and `is_throttling_error` attributes. Throttling errors use a longer base delay. Network-level failures (connection errors and timeouts) are also retried. Non-retryable errors, such as client errors without the `@retryable` trait, are raised immediately without further attempts.
85
+
86
+ The number of attempts defaults to 3 and can be changed at the client level via `retry_max_attempts`, or per call via `config_overrides`.
87
+
88
+ ```python
89
+ from capo_codeguru_reviewer import AsyncCodeGuruReviewerClient
90
+
91
+
92
+ async def main():
93
+ async with AsyncCodeGuruReviewerClient() as code_guru_reviewer:
94
+ # Default: 3 attempts for every operation
95
+ response = await code_guru_reviewer.associate_repository()
96
+
97
+ # Override per operation
98
+ response = await code_guru_reviewer.associate_repository(config_overrides={"retry_max_attempts": 5})
99
+
100
+ # Disable retries for this call
101
+ response = await code_guru_reviewer.associate_repository(config_overrides={"retry_max_attempts": 1})
102
+ ```
@@ -0,0 +1,75 @@
1
+ # Getting Started
2
+
3
+ ## Installation
4
+
5
+ ```
6
+ pip install capo-codeguru-reviewer
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```python
12
+ from capo_codeguru_reviewer import AsyncCodeGuruReviewerClient
13
+
14
+
15
+ async def main():
16
+ async with AsyncCodeGuruReviewerClient() as code_guru_reviewer:
17
+ # Example: call the associate_repository operation
18
+ response = await code_guru_reviewer.associate_repository()
19
+ print(response["repository_association"])
20
+ ```
21
+
22
+ ## Pagination
23
+
24
+ Some operations in this SDK support pagination. If the operation supports pagination it will have an `iter_` prefixed method that returns an async iterator.
25
+
26
+ ```python
27
+ from capo_codeguru_reviewer import AsyncCodeGuruReviewerClient
28
+
29
+
30
+ async def main():
31
+ async with AsyncCodeGuruReviewerClient() as code_guru_reviewer:
32
+ # Example: paginate over list_code_reviews
33
+ async for item in code_guru_reviewer.iter_list_code_reviews():
34
+ print(item)
35
+ ```
36
+
37
+ ## Error Handling
38
+
39
+ The SDK raises exceptions for errors returned by the API. Catch them to handle failures gracefully.
40
+
41
+ ```python
42
+ from capo_codeguru_reviewer import AsyncCodeGuruReviewerClient
43
+ from capo_codeguru_reviewer.error import AccessDeniedException
44
+
45
+
46
+ async def main():
47
+ async with AsyncCodeGuruReviewerClient() as code_guru_reviewer:
48
+ try:
49
+ await code_guru_reviewer.associate_repository()
50
+ except AccessDeniedException as e:
51
+ print(f"Error: {e}")
52
+ print(e.data) # additional error data
53
+ ```
54
+
55
+ ## Retrying
56
+
57
+ The SDK retries failed operations automatically. Retry behaviour follows the Smithy specification: errors are retried based on their `is_retryable` and `is_throttling_error` attributes. Throttling errors use a longer base delay. Network-level failures (connection errors and timeouts) are also retried. Non-retryable errors, such as client errors without the `@retryable` trait, are raised immediately without further attempts.
58
+
59
+ The number of attempts defaults to 3 and can be changed at the client level via `retry_max_attempts`, or per call via `config_overrides`.
60
+
61
+ ```python
62
+ from capo_codeguru_reviewer import AsyncCodeGuruReviewerClient
63
+
64
+
65
+ async def main():
66
+ async with AsyncCodeGuruReviewerClient() as code_guru_reviewer:
67
+ # Default: 3 attempts for every operation
68
+ response = await code_guru_reviewer.associate_repository()
69
+
70
+ # Override per operation
71
+ response = await code_guru_reviewer.associate_repository(config_overrides={"retry_max_attempts": 5})
72
+
73
+ # Disable retries for this call
74
+ response = await code_guru_reviewer.associate_repository(config_overrides={"retry_max_attempts": 1})
75
+ ```
@@ -0,0 +1,61 @@
1
+ [project]
2
+ name = "capo-codeguru-reviewer"
3
+ version = "0.1.0"
4
+ description = "Python SDK for Codeguru Reviewer."
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
7
+ classifiers = [
8
+ "Development Status :: 4 - Beta",
9
+ "Intended Audience :: Developers",
10
+ "License :: OSI Approved :: MIT License",
11
+ "Operating System :: OS Independent",
12
+ "Programming Language :: Python :: 3",
13
+ "Programming Language :: Python :: 3.10",
14
+ "Programming Language :: Python :: 3.11",
15
+ "Programming Language :: Python :: 3.12",
16
+ "Programming Language :: Python :: 3.13",
17
+ "Programming Language :: Python :: 3.14",
18
+ "Topic :: Software Development :: Code Generators",
19
+ "Typing :: Typed",
20
+ ]
21
+ dependencies = [
22
+ "jmespath>=1.0",
23
+ "zapros>=0.13.0",
24
+ ]
25
+
26
+ [project.optional-dependencies]
27
+ # IAM Identity Center (SSO), assume-role and web-identity credentials providers
28
+ sso = [
29
+ "capo-sso>=0.2.0",
30
+ "capo-sso-oidc>=0.2.0",
31
+ "capo-sts>=0.3.0",
32
+ ]
33
+
34
+ [tool.pytest.ini_options]
35
+ pythonpath = ["src"]
36
+ testpaths = ["tests"]
37
+
38
+ [tool.ty.environment]
39
+ python-version = "3.14"
40
+ root = ["./src"]
41
+
42
+ [tool.ty.src]
43
+ include = ["src", "tests"]
44
+
45
+ [tool.ty.rules]
46
+ missing-typed-dict-key = "ignore"
47
+ unused-type-ignore-comment = "ignore"
48
+
49
+ [tool.ruff.lint]
50
+ select = ["E", "F", "I"]
51
+ ignore = ["E501", "E741"]
52
+
53
+ [dependency-groups]
54
+ dev = [
55
+ "inline-snapshot>=0.33.0",
56
+ # TODO: fix for 0.0.69
57
+ "ty==0.0.68",
58
+ "pytest>=9.0.3",
59
+ "ruff>=0.15.14",
60
+ "trio",
61
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,74 @@
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_code_guru_reviewer import (
70
+ AsyncCodeGuruReviewerClient as AsyncCodeGuruReviewerClient,
71
+ )
72
+ from ._services.code_guru_reviewer import (
73
+ CodeGuruReviewerClient as CodeGuruReviewerClient,
74
+ )
@@ -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]