grow-aws-secrets-manager 0.2.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 (145) hide show
  1. grow_aws_secrets_manager-0.2.0/.gitignore +17 -0
  2. grow_aws_secrets_manager-0.2.0/LICENSE +202 -0
  3. grow_aws_secrets_manager-0.2.0/NOTICE +115 -0
  4. grow_aws_secrets_manager-0.2.0/PKG-INFO +106 -0
  5. grow_aws_secrets_manager-0.2.0/README.md +57 -0
  6. grow_aws_secrets_manager-0.2.0/pyproject.toml +139 -0
  7. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/AGENTS.md +46 -0
  8. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/__init__.py +129 -0
  9. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/__init__.py +116 -0
  10. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/cancel.py +62 -0
  11. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/config.py +157 -0
  12. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/env.py +146 -0
  13. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/errors.py +204 -0
  14. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/health.py +99 -0
  15. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/hooks.py +147 -0
  16. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/http.py +929 -0
  17. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/redaction.py +216 -0
  18. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/resources.py +53 -0
  19. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/retry.py +91 -0
  20. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_core/useragent.py +19 -0
  21. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_ops.py +319 -0
  22. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_sdk.py +326 -0
  23. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_secrets/__init__.py +47 -0
  24. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_secrets/base.py +448 -0
  25. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_secrets/cache.py +334 -0
  26. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_secrets/load_config.py +190 -0
  27. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_secrets/parse.py +69 -0
  28. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_secrets/provider.py +154 -0
  29. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_secrets/types.py +113 -0
  30. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_secrets/watch.py +184 -0
  31. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/_version.py +3 -0
  32. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/client.py +1092 -0
  33. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/config.py +244 -0
  34. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/errors_map.py +239 -0
  35. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/models.py +460 -0
  36. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/paginator.py +74 -0
  37. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/provider.py +395 -0
  38. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/py.typed +0 -0
  39. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/secret_cache.py +395 -0
  40. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/secrets_connect.py +29 -0
  41. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/testing/__init__.py +18 -0
  42. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/testing/runner.py +703 -0
  43. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/testing/secrets_conformance.py +80 -0
  44. grow_aws_secrets_manager-0.2.0/src/grow_aws_secrets_manager/testing/secrets_memory.py +164 -0
  45. grow_aws_secrets_manager-0.2.0/tests/_support.py +157 -0
  46. grow_aws_secrets_manager-0.2.0/tests/aws_support.py +150 -0
  47. grow_aws_secrets_manager-0.2.0/tests/conftest.py +20 -0
  48. grow_aws_secrets_manager-0.2.0/tests/fake_backend.py +244 -0
  49. grow_aws_secrets_manager-0.2.0/tests/fixtures/batchGetSecretValue.both.json +41 -0
  50. grow_aws_secrets_manager-0.2.0/tests/fixtures/batchGetSecretValue.filters-page2.json +50 -0
  51. grow_aws_secrets_manager-0.2.0/tests/fixtures/batchGetSecretValue.filters.json +59 -0
  52. grow_aws_secrets_manager-0.2.0/tests/fixtures/batchGetSecretValue.ids-partial.json +61 -0
  53. grow_aws_secrets_manager-0.2.0/tests/fixtures/cancelRotateSecret.not-found.json +31 -0
  54. grow_aws_secrets_manager-0.2.0/tests/fixtures/cancelRotateSecret.ok.json +30 -0
  55. grow_aws_secrets_manager-0.2.0/tests/fixtures/createSecret.access-denied.json +28 -0
  56. grow_aws_secrets_manager-0.2.0/tests/fixtures/createSecret.both-values-moto-accepts.json +32 -0
  57. grow_aws_secrets_manager-0.2.0/tests/fixtures/createSecret.exists.json +32 -0
  58. grow_aws_secrets_manager-0.2.0/tests/fixtures/createSecret.idempotent-retry.json +44 -0
  59. grow_aws_secrets_manager-0.2.0/tests/fixtures/createSecret.no-value.json +29 -0
  60. grow_aws_secrets_manager-0.2.0/tests/fixtures/createSecret.ok-binary.json +31 -0
  61. grow_aws_secrets_manager-0.2.0/tests/fixtures/createSecret.ok-string.json +44 -0
  62. grow_aws_secrets_manager-0.2.0/tests/fixtures/createSecret.pending-deletion.json +32 -0
  63. grow_aws_secrets_manager-0.2.0/tests/fixtures/deleteResourcePolicy.ok.json +29 -0
  64. grow_aws_secrets_manager-0.2.0/tests/fixtures/deleteSecret.already-deleted.json +31 -0
  65. grow_aws_secrets_manager-0.2.0/tests/fixtures/deleteSecret.bad-window.json +32 -0
  66. grow_aws_secrets_manager-0.2.0/tests/fixtures/deleteSecret.force-and-window.json +33 -0
  67. grow_aws_secrets_manager-0.2.0/tests/fixtures/deleteSecret.force-missing.json +31 -0
  68. grow_aws_secrets_manager-0.2.0/tests/fixtures/deleteSecret.force.json +31 -0
  69. grow_aws_secrets_manager-0.2.0/tests/fixtures/deleteSecret.not-found.json +31 -0
  70. grow_aws_secrets_manager-0.2.0/tests/fixtures/deleteSecret.recovery-window.json +31 -0
  71. grow_aws_secrets_manager-0.2.0/tests/fixtures/describeSecret.not-found.json +31 -0
  72. grow_aws_secrets_manager-0.2.0/tests/fixtures/describeSecret.ok.json +73 -0
  73. grow_aws_secrets_manager-0.2.0/tests/fixtures/getRandomPassword.exclude-chars.json +31 -0
  74. grow_aws_secrets_manager-0.2.0/tests/fixtures/getRandomPassword.ok.json +30 -0
  75. grow_aws_secrets_manager-0.2.0/tests/fixtures/getRandomPassword.too-short.json +32 -0
  76. grow_aws_secrets_manager-0.2.0/tests/fixtures/getResourcePolicy.none.json +29 -0
  77. grow_aws_secrets_manager-0.2.0/tests/fixtures/getResourcePolicy.ok.json +30 -0
  78. grow_aws_secrets_manager-0.2.0/tests/fixtures/getSecretValue.json-seed.json +35 -0
  79. grow_aws_secrets_manager-0.2.0/tests/fixtures/getSecretValue.marked-deleted.json +31 -0
  80. grow_aws_secrets_manager-0.2.0/tests/fixtures/getSecretValue.no-version.json +31 -0
  81. grow_aws_secrets_manager-0.2.0/tests/fixtures/getSecretValue.not-found.json +31 -0
  82. grow_aws_secrets_manager-0.2.0/tests/fixtures/getSecretValue.ok-binary.json +35 -0
  83. grow_aws_secrets_manager-0.2.0/tests/fixtures/getSecretValue.ok-string.json +35 -0
  84. grow_aws_secrets_manager-0.2.0/tests/fixtures/getSecretValue.ok-version-id.json +36 -0
  85. grow_aws_secrets_manager-0.2.0/tests/fixtures/getSecretValue.ok-version-stage.json +36 -0
  86. grow_aws_secrets_manager-0.2.0/tests/fixtures/getSecretValue.stage-not-found.json +32 -0
  87. grow_aws_secrets_manager-0.2.0/tests/fixtures/getSecretValue.stale-default-moto.json +35 -0
  88. grow_aws_secrets_manager-0.2.0/tests/fixtures/getSecretValue.version-not-found.json +32 -0
  89. grow_aws_secrets_manager-0.2.0/tests/fixtures/listSecretVersionIds.not-found-moto-500.json +25 -0
  90. grow_aws_secrets_manager-0.2.0/tests/fixtures/listSecretVersionIds.ok.json +65 -0
  91. grow_aws_secrets_manager-0.2.0/tests/fixtures/listSecretVersionIds.page.json +65 -0
  92. grow_aws_secrets_manager-0.2.0/tests/fixtures/listSecrets.bad-filter.json +38 -0
  93. grow_aws_secrets_manager-0.2.0/tests/fixtures/listSecrets.filter-name.json +127 -0
  94. grow_aws_secrets_manager-0.2.0/tests/fixtures/listSecrets.filter-tag.json +93 -0
  95. grow_aws_secrets_manager-0.2.0/tests/fixtures/listSecrets.filter-word.json +36 -0
  96. grow_aws_secrets_manager-0.2.0/tests/fixtures/listSecrets.include-planned-deletion.json +146 -0
  97. grow_aws_secrets_manager-0.2.0/tests/fixtures/listSecrets.page1.json +78 -0
  98. grow_aws_secrets_manager-0.2.0/tests/fixtures/listSecrets.page2.json +59 -0
  99. grow_aws_secrets_manager-0.2.0/tests/fixtures/ping.auth-bad-signature.json +27 -0
  100. grow_aws_secrets_manager-0.2.0/tests/fixtures/ping.auth-unknown-key.json +27 -0
  101. grow_aws_secrets_manager-0.2.0/tests/fixtures/ping.ok.json +61 -0
  102. grow_aws_secrets_manager-0.2.0/tests/fixtures/putResourcePolicy.malformed-accepted.json +30 -0
  103. grow_aws_secrets_manager-0.2.0/tests/fixtures/putResourcePolicy.not-found.json +32 -0
  104. grow_aws_secrets_manager-0.2.0/tests/fixtures/putResourcePolicy.ok.json +31 -0
  105. grow_aws_secrets_manager-0.2.0/tests/fixtures/putSecretValue.custom-stage.json +37 -0
  106. grow_aws_secrets_manager-0.2.0/tests/fixtures/putSecretValue.idempotent-same.json +38 -0
  107. grow_aws_secrets_manager-0.2.0/tests/fixtures/putSecretValue.not-found.json +32 -0
  108. grow_aws_secrets_manager-0.2.0/tests/fixtures/putSecretValue.ok.json +34 -0
  109. grow_aws_secrets_manager-0.2.0/tests/fixtures/putSecretValue.token-reuse-different.json +33 -0
  110. grow_aws_secrets_manager-0.2.0/tests/fixtures/restoreSecret.not-deleted.json +29 -0
  111. grow_aws_secrets_manager-0.2.0/tests/fixtures/restoreSecret.not-found.json +31 -0
  112. grow_aws_secrets_manager-0.2.0/tests/fixtures/restoreSecret.ok.json +29 -0
  113. grow_aws_secrets_manager-0.2.0/tests/fixtures/rotateSecret.lambda-not-found.json +35 -0
  114. grow_aws_secrets_manager-0.2.0/tests/fixtures/rotateSecret.rules-only.json +33 -0
  115. grow_aws_secrets_manager-0.2.0/tests/fixtures/tagResource.not-found.json +37 -0
  116. grow_aws_secrets_manager-0.2.0/tests/fixtures/tagResource.ok.json +32 -0
  117. grow_aws_secrets_manager-0.2.0/tests/fixtures/untagResource.not-found.json +34 -0
  118. grow_aws_secrets_manager-0.2.0/tests/fixtures/untagResource.ok.json +29 -0
  119. grow_aws_secrets_manager-0.2.0/tests/fixtures/updateSecret.description.json +31 -0
  120. grow_aws_secrets_manager-0.2.0/tests/fixtures/updateSecret.no-token-moto.json +32 -0
  121. grow_aws_secrets_manager-0.2.0/tests/fixtures/updateSecret.not-found.json +33 -0
  122. grow_aws_secrets_manager-0.2.0/tests/fixtures/updateSecret.value.json +32 -0
  123. grow_aws_secrets_manager-0.2.0/tests/fixtures/updateSecretVersionStage.missing-remove.json +33 -0
  124. grow_aws_secrets_manager-0.2.0/tests/fixtures/updateSecretVersionStage.move.json +32 -0
  125. grow_aws_secrets_manager-0.2.0/tests/fixtures/updateSecretVersionStage.promote-current.json +32 -0
  126. grow_aws_secrets_manager-0.2.0/tests/fixtures/validateResourcePolicy.moto-unsupported.json +25 -0
  127. grow_aws_secrets_manager-0.2.0/tests/test_aws_async.py +298 -0
  128. grow_aws_secrets_manager-0.2.0/tests/test_aws_cache.py +260 -0
  129. grow_aws_secrets_manager-0.2.0/tests/test_aws_client.py +726 -0
  130. grow_aws_secrets_manager-0.2.0/tests/test_aws_config.py +172 -0
  131. grow_aws_secrets_manager-0.2.0/tests/test_aws_errors.py +157 -0
  132. grow_aws_secrets_manager-0.2.0/tests/test_aws_models.py +87 -0
  133. grow_aws_secrets_manager-0.2.0/tests/test_aws_provider.py +245 -0
  134. grow_aws_secrets_manager-0.2.0/tests/test_conformance_core.py +394 -0
  135. grow_aws_secrets_manager-0.2.0/tests/test_core_async.py +243 -0
  136. grow_aws_secrets_manager-0.2.0/tests/test_core_basics.py +419 -0
  137. grow_aws_secrets_manager-0.2.0/tests/test_core_options.py +479 -0
  138. grow_aws_secrets_manager-0.2.0/tests/test_core_transport.py +595 -0
  139. grow_aws_secrets_manager-0.2.0/tests/test_secrets_cache.py +233 -0
  140. grow_aws_secrets_manager-0.2.0/tests/test_secrets_closed.py +241 -0
  141. grow_aws_secrets_manager-0.2.0/tests/test_secrets_conformance.py +59 -0
  142. grow_aws_secrets_manager-0.2.0/tests/test_secrets_connect.py +16 -0
  143. grow_aws_secrets_manager-0.2.0/tests/test_secrets_load_config.py +131 -0
  144. grow_aws_secrets_manager-0.2.0/tests/test_secrets_provider.py +425 -0
  145. grow_aws_secrets_manager-0.2.0/tests/test_tools.py +74 -0
@@ -0,0 +1,17 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ build/
6
+ dist/
7
+ site/
8
+ coverage/
9
+ .coverage
10
+ .coverage.*
11
+ .pytest_cache/
12
+ .mypy_cache/
13
+ .ruff_cache/
14
+ # copied from the repo root by `make pack`
15
+ /LICENSE
16
+ /NOTICE
17
+ integration/.venv/
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Grow Codes
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,115 @@
1
+ Grow Codes SDK for AWS Secrets Manager (aws-secrets-manager)
2
+ Copyright 2026 Grow Codes <opensource@grow.codes>
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+ Source: https://github.com/grow-codes-packages/aws-secrets-manager
6
+ Documentation: https://grow-codes-packages.github.io/aws-secrets-manager/
7
+
8
+ -------------------------------------------------------------------------------
9
+ No responsibility / disclaimer
10
+ -------------------------------------------------------------------------------
11
+
12
+ This software is provided "AS IS", WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13
+ either express or implied, including, without limitation, any warranties or
14
+ conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
15
+ PARTICULAR PURPOSE. You are solely responsible for determining whether it is
16
+ appropriate to use this software and you assume all risks of doing so.
17
+
18
+ To the maximum extent permitted by applicable law, Grow Codes is not
19
+ responsible for any damage, data loss, security incident, outage or cost
20
+ (including service, cloud, licence or usage charges) that results from using,
21
+ misusing or being unable to use this software, the services it connects to, or
22
+ any configuration, credential or data handled through it, whether in contract,
23
+ tort or otherwise, even if Grow Codes has been advised of the possibility of
24
+ such damage. See sections 7 and 8 of the Apache License, Version 2.0.
25
+
26
+ -------------------------------------------------------------------------------
27
+ Trademarks
28
+ -------------------------------------------------------------------------------
29
+
30
+ This project is an independent, community-maintained client library. It is not
31
+ affiliated with, endorsed or sponsored by Amazon.com, Inc. or its affiliates.
32
+ Amazon Web Services, AWS and AWS Secrets Manager are trademarks of Amazon.com,
33
+ Inc. or its affiliates. This project is not affiliated with or endorsed by AWS.
34
+ All other product names, logos and brands are the property of their respective
35
+ owners and are used for identification purposes only.
36
+
37
+ AWS Secrets Manager is a proprietary managed service of Amazon Web Services.
38
+ This SDK contains no AWS service code; it calls the service's public API only
39
+ through the official AWS SDKs listed below (Apache-2.0).
40
+
41
+ -------------------------------------------------------------------------------
42
+ Third-party attributions
43
+ -------------------------------------------------------------------------------
44
+
45
+ The packages in this repository depend on third-party open-source libraries,
46
+ each under its own licence (all on the allowlist in AGENTS.md: Apache-2.0, MIT,
47
+ BSD-2-Clause, BSD-3-Clause, ISC, Zlib, Unicode-3.0, Unicode-DFS-2016, 0BSD,
48
+ CC0-1.0, MPL-2.0). The full dependency lists and their licences are produced by
49
+ "make license" in each language folder:
50
+
51
+ typescript/ npm dependencies (license-checker-rseidelsohn)
52
+ rust/ crates.io dependencies (cargo-deny, rust/deny.toml)
53
+ go/ Go modules (go-licenses)
54
+ python/ PyPI dependencies (pip-licenses)
55
+ java/ Maven dependencies (license-maven-plugin)
56
+
57
+ The Java package additionally depends on org.reactivestreams:reactive-streams
58
+ (MIT-0, MIT No Attribution), a dependency of the AWS SDK for Java v2 core; MIT-0
59
+ is on the allowlist of the Java licence check for this reason.
60
+
61
+ AWS SDKs used at runtime (Apache License, Version 2.0; not modified, used as
62
+ dependencies):
63
+
64
+ AWS SDK for JavaScript v3 (@aws-sdk/client-secrets-manager,
65
+ @aws-sdk/credential-providers and their @aws-sdk/* and @smithy/* packages)
66
+ -- TypeScript package
67
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
68
+ https://github.com/aws/aws-sdk-js-v3
69
+
70
+ AWS SDK for Rust (aws-sdk-secretsmanager, aws-config, aws-credential-types,
71
+ aws-smithy-* and related crates) -- Rust package
72
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
73
+ https://github.com/awslabs/aws-sdk-rust
74
+
75
+ AWS SDK for Go v2 (github.com/aws/aws-sdk-go-v2 incl. service/secretsmanager,
76
+ config, credentials; github.com/aws/smithy-go) -- Go package
77
+ AWS SDK for Go
78
+ Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
79
+ Copyright 2014-2015 Stripe, Inc.
80
+ https://github.com/aws/aws-sdk-go-v2
81
+
82
+ boto3 and botocore -- Python package
83
+ boto3
84
+ Copyright 2013-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
85
+ Botocore
86
+ Copyright 2012-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
87
+ (Botocore includes vendorized parts of requests, Copyright 2013 Kenneth
88
+ Reitz, Apache-2.0, and urllib3, MIT.)
89
+ https://github.com/boto/boto3 https://github.com/boto/botocore
90
+
91
+ aioboto3 and aiobotocore -- Python package, optional extra [async]
92
+ aioboto3: Terri Cain and contributors, https://github.com/terricain/aioboto3
93
+ aiobotocore: Nikolay Novik and contributors, https://github.com/aio-libs/aiobotocore
94
+
95
+ AWS SDK for Java 2.0 (software.amazon.awssdk: secretsmanager, sts and the SDK
96
+ core modules) -- Java package
97
+ AWS SDK for Java 2.0
98
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
99
+ This product includes software developed by
100
+ Amazon Technologies, Inc (http://www.amazon.com/).
101
+ https://github.com/aws/aws-sdk-java-v2
102
+
103
+ Test-only tools (not distributed with any package):
104
+
105
+ Moto (motoserver/moto Docker image), the AWS service emulator used by the
106
+ Docker integration tests -- Apache License, Version 2.0,
107
+ author Steve Pulec and the Moto contributors (AUTHORS.md),
108
+ https://github.com/getmoto/moto. Moto is pulled as an image at test time; no
109
+ Moto code is copied into this repository.
110
+
111
+ Code copied or adapted from other projects is listed below with its source,
112
+ copyright and licence.
113
+
114
+ CODE_OF_CONDUCT.md is adapted from the Contributor Covenant, version 2.1,
115
+ https://www.contributor-covenant.org, licensed under CC BY 4.0.
@@ -0,0 +1,106 @@
1
+ Metadata-Version: 2.5
2
+ Name: grow-aws-secrets-manager
3
+ Version: 0.2.0
4
+ Summary: Grow Codes SDK for AWS Secrets Manager (unofficial, community maintained)
5
+ Project-URL: Homepage, https://grow-codes-packages.github.io/aws-secrets-manager/
6
+ Project-URL: Documentation, https://grow-codes-packages.github.io/aws-secrets-manager/
7
+ Project-URL: Repository, https://github.com/grow-codes-packages/aws-secrets-manager
8
+ Project-URL: Issues, https://github.com/grow-codes-packages/aws-secrets-manager/issues
9
+ Author-email: Grow Codes <opensource@grow.codes>
10
+ Maintainer-email: Grow Codes <opensource@grow.codes>
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ License-File: NOTICE
14
+ Keywords: aws,aws-secrets-manager,boto3,grow-codes,sdk,secrets,secrets-manager
15
+ Classifier: Development Status :: 3 - Alpha
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Programming Language :: Python :: 3.14
25
+ Classifier: Typing :: Typed
26
+ Requires-Python: >=3.10
27
+ Requires-Dist: boto3<2,>=1.35
28
+ Requires-Dist: httpx<1,>=0.27
29
+ Provides-Extra: all
30
+ Requires-Dist: aioboto3<16,>=15.5; extra == 'all'
31
+ Requires-Dist: boto3<1.44.2,>=1.40.46; extra == 'all'
32
+ Provides-Extra: async
33
+ Requires-Dist: aioboto3<16,>=15.5; extra == 'async'
34
+ Requires-Dist: boto3<1.44.2,>=1.40.46; extra == 'async'
35
+ Provides-Extra: dev
36
+ Requires-Dist: build>=1.2; extra == 'dev'
37
+ Requires-Dist: hatchling>=1.25; extra == 'dev'
38
+ Requires-Dist: mkdocs>=1.6; extra == 'dev'
39
+ Requires-Dist: mkdocstrings[python]>=0.27; extra == 'dev'
40
+ Requires-Dist: mypy>=1.13; extra == 'dev'
41
+ Requires-Dist: pip-licenses>=5.0; extra == 'dev'
42
+ Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
43
+ Requires-Dist: pytest-cov>=5.0; extra == 'dev'
44
+ Requires-Dist: pytest>=8.3; extra == 'dev'
45
+ Requires-Dist: respx>=0.22; extra == 'dev'
46
+ Requires-Dist: ruff>=0.8; extra == 'dev'
47
+ Requires-Dist: twine>=6.1; extra == 'dev'
48
+ Description-Content-Type: text/markdown
49
+
50
+ # grow-aws-secrets-manager (Python)
51
+
52
+ Python SDK for [AWS Secrets Manager](https://grow-codes-packages.github.io/aws-secrets-manager/) by
53
+ Grow Codes, built on the official AWS SDK for Python (boto3; aioboto3 for the async client).
54
+ Unofficial and community maintained; not affiliated with or endorsed by AWS. Amazon Web Services,
55
+ AWS and AWS Secrets Manager are trademarks of Amazon.com, Inc. or its affiliates.
56
+
57
+ ```bash
58
+ pip install grow-aws-secrets-manager # sync client (boto3)
59
+ pip install "grow-aws-secrets-manager[async]" # + AsyncAwsSecretsManagerClient (aioboto3)
60
+ ```
61
+
62
+ ```python
63
+ from grow_aws_secrets_manager import AWSPREVIOUS, AwsSecretsManagerClient
64
+
65
+ # GROW_AWS_SECRETS_MANAGER_* first, then the standard AWS variables and credential chain.
66
+ with AwsSecretsManagerClient.from_env() as client:
67
+ client.create_secret("app/db", {"user": "app", "password": "s3cr3t"}, tags={"team": "a"})
68
+ print(client.get_json_field("app/db", "user"))
69
+ client.put_secret_value("app/db", {"user": "app", "password": "rotated"})
70
+ print(client.get_secret_value("app/db", version_stage=AWSPREVIOUS).value) # [REDACTED]
71
+
72
+ secrets = client.secrets() # SecretsProvider (Grow category API)
73
+ print(secrets.get_string("app/db"))
74
+ cache = client.secret_cache() # AWS caching-client semantics (TTL 1 h)
75
+ print(cache.get_secret_string("app/db"))
76
+ ```
77
+
78
+ The async client has the same methods:
79
+
80
+ ```python
81
+ import asyncio
82
+ from grow_aws_secrets_manager import AsyncAwsSecretsManagerClient
83
+
84
+ async def main() -> None:
85
+ async with AsyncAwsSecretsManagerClient.from_env() as client:
86
+ print((await client.get_secret_value("app/db")).value.json())
87
+
88
+ asyncio.run(main())
89
+ ```
90
+
91
+ - Python 3.10 or newer, typed (`py.typed`). The Grow config maps onto the boto3 client: `url` →
92
+ endpoint override, timeouts → botocore timeouts, `retry.max_retries` → standard retry mode
93
+ (`max_attempts = max_retries + 1`), TLS CA bundle / client certificate / `insecure_skip_verify`,
94
+ proxy (environment proxies are ignored unless configured), User-Agent
95
+ `grow-codes-aws-secrets-manager/<version> (python)`; or pass an existing boto3 client
96
+ (`AwsSecretsManagerClient.with_sdk_client(boto3.client("secretsmanager"))`).
97
+ - Credentials: explicit keys, `profile`, a botocore credentials object, the default chain, and an
98
+ STS assume-role helper (`role_arn`, `role_session_name`, `external_id`, `role_duration_s`).
99
+ - Errors are mapped by AWS error code (`ResourceNotFoundException` → `NotFoundError`, …); the
100
+ code stays available with `aws_error_code(err)`.
101
+ - Hooks (`on_request` / `on_response` / `on_error`) fire from botocore events; credentials are
102
+ wrapped in `Secret` and never appear in `repr()`, logs or error messages.
103
+ - `grow_aws_secrets_manager.testing` ships in-memory fakes and the conformance runner.
104
+
105
+ Documentation: https://grow-codes-packages.github.io/aws-secrets-manager/ ·
106
+ Source: https://github.com/grow-codes-packages/aws-secrets-manager · Licence: Apache-2.0
@@ -0,0 +1,57 @@
1
+ # grow-aws-secrets-manager (Python)
2
+
3
+ Python SDK for [AWS Secrets Manager](https://grow-codes-packages.github.io/aws-secrets-manager/) by
4
+ Grow Codes, built on the official AWS SDK for Python (boto3; aioboto3 for the async client).
5
+ Unofficial and community maintained; not affiliated with or endorsed by AWS. Amazon Web Services,
6
+ AWS and AWS Secrets Manager are trademarks of Amazon.com, Inc. or its affiliates.
7
+
8
+ ```bash
9
+ pip install grow-aws-secrets-manager # sync client (boto3)
10
+ pip install "grow-aws-secrets-manager[async]" # + AsyncAwsSecretsManagerClient (aioboto3)
11
+ ```
12
+
13
+ ```python
14
+ from grow_aws_secrets_manager import AWSPREVIOUS, AwsSecretsManagerClient
15
+
16
+ # GROW_AWS_SECRETS_MANAGER_* first, then the standard AWS variables and credential chain.
17
+ with AwsSecretsManagerClient.from_env() as client:
18
+ client.create_secret("app/db", {"user": "app", "password": "s3cr3t"}, tags={"team": "a"})
19
+ print(client.get_json_field("app/db", "user"))
20
+ client.put_secret_value("app/db", {"user": "app", "password": "rotated"})
21
+ print(client.get_secret_value("app/db", version_stage=AWSPREVIOUS).value) # [REDACTED]
22
+
23
+ secrets = client.secrets() # SecretsProvider (Grow category API)
24
+ print(secrets.get_string("app/db"))
25
+ cache = client.secret_cache() # AWS caching-client semantics (TTL 1 h)
26
+ print(cache.get_secret_string("app/db"))
27
+ ```
28
+
29
+ The async client has the same methods:
30
+
31
+ ```python
32
+ import asyncio
33
+ from grow_aws_secrets_manager import AsyncAwsSecretsManagerClient
34
+
35
+ async def main() -> None:
36
+ async with AsyncAwsSecretsManagerClient.from_env() as client:
37
+ print((await client.get_secret_value("app/db")).value.json())
38
+
39
+ asyncio.run(main())
40
+ ```
41
+
42
+ - Python 3.10 or newer, typed (`py.typed`). The Grow config maps onto the boto3 client: `url` →
43
+ endpoint override, timeouts → botocore timeouts, `retry.max_retries` → standard retry mode
44
+ (`max_attempts = max_retries + 1`), TLS CA bundle / client certificate / `insecure_skip_verify`,
45
+ proxy (environment proxies are ignored unless configured), User-Agent
46
+ `grow-codes-aws-secrets-manager/<version> (python)`; or pass an existing boto3 client
47
+ (`AwsSecretsManagerClient.with_sdk_client(boto3.client("secretsmanager"))`).
48
+ - Credentials: explicit keys, `profile`, a botocore credentials object, the default chain, and an
49
+ STS assume-role helper (`role_arn`, `role_session_name`, `external_id`, `role_duration_s`).
50
+ - Errors are mapped by AWS error code (`ResourceNotFoundException` → `NotFoundError`, …); the
51
+ code stays available with `aws_error_code(err)`.
52
+ - Hooks (`on_request` / `on_response` / `on_error`) fire from botocore events; credentials are
53
+ wrapped in `Secret` and never appear in `repr()`, logs or error messages.
54
+ - `grow_aws_secrets_manager.testing` ships in-memory fakes and the conformance runner.
55
+
56
+ Documentation: https://grow-codes-packages.github.io/aws-secrets-manager/ ·
57
+ Source: https://github.com/grow-codes-packages/aws-secrets-manager · Licence: Apache-2.0
@@ -0,0 +1,139 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.25"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "grow-aws-secrets-manager"
7
+ dynamic = ["version"]
8
+ description = "Grow Codes SDK for AWS Secrets Manager (unofficial, community maintained)"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "Apache-2.0"
12
+ authors = [{ name = "Grow Codes", email = "opensource@grow.codes" }]
13
+ maintainers = [{ name = "Grow Codes", email = "opensource@grow.codes" }]
14
+ keywords = ["grow-codes", "sdk", "aws-secrets-manager", "aws", "secrets-manager", "boto3", "secrets"]
15
+ classifiers = [
16
+ "Development Status :: 3 - Alpha",
17
+ "Intended Audience :: Developers",
18
+ "Operating System :: OS Independent",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3 :: Only",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: 3.13",
25
+ "Programming Language :: Python :: 3.14",
26
+ "Typing :: Typed",
27
+ ]
28
+ dependencies = [
29
+ "httpx>=0.27,<1",
30
+ "boto3>=1.35,<2",
31
+ ]
32
+
33
+ [project.optional-dependencies]
34
+ # Async client (AsyncAwsSecretsManagerClient) on aioboto3. aioboto3 (via aiobotocore) pins boto3 /
35
+ # botocore to a narrow window, so it is optional (sync-only users keep an unpinned boto3) and the
36
+ # window is spelled out here so pip resolves it directly instead of backtracking through every
37
+ # boto3 release. Move both lines together when aioboto3 moves.
38
+ async = [
39
+ "aioboto3>=15.5,<16",
40
+ "boto3>=1.40.46,<1.44.2",
41
+ ]
42
+ # Every optional runtime extra (used by `make license`).
43
+ all = [
44
+ "aioboto3>=15.5,<16",
45
+ "boto3>=1.40.46,<1.44.2",
46
+ ]
47
+ dev = [
48
+ "build>=1.2",
49
+ "hatchling>=1.25",
50
+ "pytest>=8.3",
51
+ "pytest-asyncio>=0.24",
52
+ "pytest-cov>=5.0",
53
+ "respx>=0.22",
54
+ "ruff>=0.8",
55
+ "mypy>=1.13",
56
+ "pip-licenses>=5.0",
57
+ "twine>=6.1",
58
+ "mkdocs>=1.6",
59
+ "mkdocstrings[python]>=0.27",
60
+ ]
61
+
62
+ [project.urls]
63
+ Homepage = "https://grow-codes-packages.github.io/aws-secrets-manager/"
64
+ Documentation = "https://grow-codes-packages.github.io/aws-secrets-manager/"
65
+ Repository = "https://github.com/grow-codes-packages/aws-secrets-manager"
66
+ Issues = "https://github.com/grow-codes-packages/aws-secrets-manager/issues"
67
+
68
+ [tool.hatch.version]
69
+ path = "src/grow_aws_secrets_manager/_version.py"
70
+
71
+ [tool.hatch.build.targets.wheel]
72
+ packages = ["src/grow_aws_secrets_manager"]
73
+
74
+ [tool.hatch.build.targets.sdist]
75
+ include = ["src/", "tests/", "README.md", "LICENSE", "NOTICE", "pyproject.toml"]
76
+
77
+ # --------------------------------------------------------------------------- ruff
78
+ [tool.ruff]
79
+ target-version = "py310"
80
+ line-length = 100
81
+ src = ["src", "tests", "tools"]
82
+ extend-exclude = ["integration/.venv", "build", "dist", "site"]
83
+
84
+ [tool.ruff.lint]
85
+ select = ["E", "W", "F", "I", "B", "BLE", "UP", "S", "A", "C4", "SIM", "RET", "PT", "RUF", "N", "PL"]
86
+ ignore = [
87
+ "PLR0911", "PLR0912", "PLR0913", "PLR0915", "PLR2004", "PLW0603",
88
+ "S101", # assert is fine in tests and type narrowing
89
+ "S311", # random is used for jitter, not crypto
90
+ "RUF022", # __all__ grouped by topic, not sorted
91
+ "A004", # the SDK's TimeoutError intentionally shadows the builtin (SPEC 2.1)
92
+ "PLE1205", # SdkLogger.debug(msg, fields) is not a stdlib logging call
93
+ "PLR0917",
94
+ ]
95
+
96
+ [tool.ruff.lint.per-file-ignores]
97
+ "tests/**" = ["S", "PLC0415", "N802", "B017", "PT011", "PT018", "N815", "RUF001", "RUF012", "SIM117"]
98
+ "tools/**" = ["S"]
99
+ "integration/**" = ["S", "PLC0415", "N802", "B017", "PT011", "PT018", "N815", "RUF001", "RUF012", "SIM117"]
100
+
101
+ [tool.ruff.format]
102
+ quote-style = "double"
103
+
104
+ # --------------------------------------------------------------------------- mypy
105
+ [tool.mypy]
106
+ python_version = "3.10"
107
+ strict = true
108
+ warn_unreachable = true
109
+ mypy_path = "src"
110
+ files = ["src/grow_aws_secrets_manager", "tools"]
111
+
112
+ [[tool.mypy.overrides]]
113
+ module = ["respx.*", "boto3.*", "botocore.*", "aioboto3.*", "aiobotocore.*"]
114
+ ignore_missing_imports = true
115
+
116
+ # --------------------------------------------------------------------------- pytest
117
+ [tool.pytest.ini_options]
118
+ minversion = "8.0"
119
+ testpaths = ["tests"]
120
+ asyncio_mode = "auto"
121
+ asyncio_default_fixture_loop_scope = "function"
122
+ addopts = "-ra --strict-markers"
123
+ filterwarnings = ["error::pytest.PytestUnraisableExceptionWarning"]
124
+
125
+ # --------------------------------------------------------------------------- coverage
126
+ [tool.coverage.run]
127
+ source = ["grow_aws_secrets_manager"]
128
+ branch = true
129
+ parallel = false
130
+
131
+ [tool.coverage.report]
132
+ show_missing = true
133
+ skip_covered = true
134
+ exclude_also = [
135
+ "if TYPE_CHECKING:",
136
+ "@overload",
137
+ "raise NotImplementedError",
138
+ "\\.\\.\\.$",
139
+ ]