aiomoto 0.0.1__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.
- aiomoto-0.0.1/PKG-INFO +318 -0
- aiomoto-0.0.1/README.md +55 -0
- aiomoto-0.0.1/pyproject.toml +165 -0
- aiomoto-0.0.1/src/aiomoto/__init__.py +6 -0
- aiomoto-0.0.1/src/aiomoto/__version__.py +9 -0
- aiomoto-0.0.1/src/aiomoto/py.typed +0 -0
aiomoto-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: aiomoto
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Moto-style AWS service mocks for aiobotocore/aioboto3
|
|
5
|
+
Author: Owen Lamont
|
|
6
|
+
Author-email: Owen Lamont <owenrlamont@gmail.com>
|
|
7
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
8
|
+
Classifier: Intended Audience :: Developers
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Natural Language :: English
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
20
|
+
Classifier: Topic :: Software Development :: Testing
|
|
21
|
+
Requires-Dist: aiobotocore==2.25.2
|
|
22
|
+
Requires-Dist: moto==5.1.16
|
|
23
|
+
Requires-Dist: moto[acm]==5.1.16 ; extra == 'acm'
|
|
24
|
+
Requires-Dist: moto[acmpca]==5.1.16 ; extra == 'acmpca'
|
|
25
|
+
Requires-Dist: moto[all]==5.1.16 ; extra == 'all'
|
|
26
|
+
Requires-Dist: moto[amp]==5.1.16 ; extra == 'amp'
|
|
27
|
+
Requires-Dist: moto[apigateway]==5.1.16 ; extra == 'apigateway'
|
|
28
|
+
Requires-Dist: moto[apigatewayv2]==5.1.16 ; extra == 'apigatewayv2'
|
|
29
|
+
Requires-Dist: moto[applicationautoscaling]==5.1.16 ; extra == 'applicationautoscaling'
|
|
30
|
+
Requires-Dist: moto[appsync]==5.1.16 ; extra == 'appsync'
|
|
31
|
+
Requires-Dist: moto[athena]==5.1.16 ; extra == 'athena'
|
|
32
|
+
Requires-Dist: moto[autoscaling]==5.1.16 ; extra == 'autoscaling'
|
|
33
|
+
Requires-Dist: moto[awslambda]==5.1.16 ; extra == 'awslambda'
|
|
34
|
+
Requires-Dist: moto[awslambda-simple]==5.1.16 ; extra == 'awslambda-simple'
|
|
35
|
+
Requires-Dist: moto[backup]==5.1.16 ; extra == 'backup'
|
|
36
|
+
Requires-Dist: moto[batch]==5.1.16 ; extra == 'batch'
|
|
37
|
+
Requires-Dist: moto[batch-simple]==5.1.16 ; extra == 'batch-simple'
|
|
38
|
+
Requires-Dist: moto[budgets]==5.1.16 ; extra == 'budgets'
|
|
39
|
+
Requires-Dist: moto[ce]==5.1.16 ; extra == 'ce'
|
|
40
|
+
Requires-Dist: moto[cloudformation]==5.1.16 ; extra == 'cloudformation'
|
|
41
|
+
Requires-Dist: moto[cloudfront]==5.1.16 ; extra == 'cloudfront'
|
|
42
|
+
Requires-Dist: moto[cloudtrail]==5.1.16 ; extra == 'cloudtrail'
|
|
43
|
+
Requires-Dist: moto[cloudwatch]==5.1.16 ; extra == 'cloudwatch'
|
|
44
|
+
Requires-Dist: moto[codebuild]==5.1.16 ; extra == 'codebuild'
|
|
45
|
+
Requires-Dist: moto[codecommit]==5.1.16 ; extra == 'codecommit'
|
|
46
|
+
Requires-Dist: moto[codepipeline]==5.1.16 ; extra == 'codepipeline'
|
|
47
|
+
Requires-Dist: moto[cognitoidentity]==5.1.16 ; extra == 'cognitoidentity'
|
|
48
|
+
Requires-Dist: moto[cognitoidp]==5.1.16 ; extra == 'cognitoidp'
|
|
49
|
+
Requires-Dist: moto[comprehend]==5.1.16 ; extra == 'comprehend'
|
|
50
|
+
Requires-Dist: moto[config]==5.1.16 ; extra == 'config'
|
|
51
|
+
Requires-Dist: moto[databrew]==5.1.16 ; extra == 'databrew'
|
|
52
|
+
Requires-Dist: moto[datapipeline]==5.1.16 ; extra == 'datapipeline'
|
|
53
|
+
Requires-Dist: moto[datasync]==5.1.16 ; extra == 'datasync'
|
|
54
|
+
Requires-Dist: moto[dax]==5.1.16 ; extra == 'dax'
|
|
55
|
+
Requires-Dist: moto[dms]==5.1.16 ; extra == 'dms'
|
|
56
|
+
Requires-Dist: moto[ds]==5.1.16 ; extra == 'ds'
|
|
57
|
+
Requires-Dist: moto[dynamodb]==5.1.16 ; extra == 'dynamodb'
|
|
58
|
+
Requires-Dist: moto[dynamodbstreams]==5.1.16 ; extra == 'dynamodbstreams'
|
|
59
|
+
Requires-Dist: moto[ebs]==5.1.16 ; extra == 'ebs'
|
|
60
|
+
Requires-Dist: moto[ec2]==5.1.16 ; extra == 'ec2'
|
|
61
|
+
Requires-Dist: moto[ec2instanceconnect]==5.1.16 ; extra == 'ec2instanceconnect'
|
|
62
|
+
Requires-Dist: moto[ecr]==5.1.16 ; extra == 'ecr'
|
|
63
|
+
Requires-Dist: moto[ecs]==5.1.16 ; extra == 'ecs'
|
|
64
|
+
Requires-Dist: moto[efs]==5.1.16 ; extra == 'efs'
|
|
65
|
+
Requires-Dist: moto[eks]==5.1.16 ; extra == 'eks'
|
|
66
|
+
Requires-Dist: moto[elasticache]==5.1.16 ; extra == 'elasticache'
|
|
67
|
+
Requires-Dist: moto[elasticbeanstalk]==5.1.16 ; extra == 'elasticbeanstalk'
|
|
68
|
+
Requires-Dist: moto[elastictranscoder]==5.1.16 ; extra == 'elastictranscoder'
|
|
69
|
+
Requires-Dist: moto[elb]==5.1.16 ; extra == 'elb'
|
|
70
|
+
Requires-Dist: moto[elbv2]==5.1.16 ; extra == 'elbv2'
|
|
71
|
+
Requires-Dist: moto[emr]==5.1.16 ; extra == 'emr'
|
|
72
|
+
Requires-Dist: moto[emrcontainers]==5.1.16 ; extra == 'emrcontainers'
|
|
73
|
+
Requires-Dist: moto[emrserverless]==5.1.16 ; extra == 'emrserverless'
|
|
74
|
+
Requires-Dist: moto[es]==5.1.16 ; extra == 'es'
|
|
75
|
+
Requires-Dist: moto[events]==5.1.16 ; extra == 'events'
|
|
76
|
+
Requires-Dist: moto[firehose]==5.1.16 ; extra == 'firehose'
|
|
77
|
+
Requires-Dist: moto[forecast]==5.1.16 ; extra == 'forecast'
|
|
78
|
+
Requires-Dist: moto[glacier]==5.1.16 ; extra == 'glacier'
|
|
79
|
+
Requires-Dist: moto[glue]==5.1.16 ; extra == 'glue'
|
|
80
|
+
Requires-Dist: moto[greengrass]==5.1.16 ; extra == 'greengrass'
|
|
81
|
+
Requires-Dist: moto[guardduty]==5.1.16 ; extra == 'guardduty'
|
|
82
|
+
Requires-Dist: moto[iam]==5.1.16 ; extra == 'iam'
|
|
83
|
+
Requires-Dist: moto[inspector2]==5.1.16 ; extra == 'inspector2'
|
|
84
|
+
Requires-Dist: moto[iot]==5.1.16 ; extra == 'iot'
|
|
85
|
+
Requires-Dist: moto[iotdata]==5.1.16 ; extra == 'iotdata'
|
|
86
|
+
Requires-Dist: moto[ivs]==5.1.16 ; extra == 'ivs'
|
|
87
|
+
Requires-Dist: moto[kinesis]==5.1.16 ; extra == 'kinesis'
|
|
88
|
+
Requires-Dist: moto[kinesisvideo]==5.1.16 ; extra == 'kinesisvideo'
|
|
89
|
+
Requires-Dist: moto[kinesisvideoarchivedmedia]==5.1.16 ; extra == 'kinesisvideoarchivedmedia'
|
|
90
|
+
Requires-Dist: moto[kms]==5.1.16 ; extra == 'kms'
|
|
91
|
+
Requires-Dist: moto[logs]==5.1.16 ; extra == 'logs'
|
|
92
|
+
Requires-Dist: moto[managedblockchain]==5.1.16 ; extra == 'managedblockchain'
|
|
93
|
+
Requires-Dist: moto[mediaconnect]==5.1.16 ; extra == 'mediaconnect'
|
|
94
|
+
Requires-Dist: moto[medialive]==5.1.16 ; extra == 'medialive'
|
|
95
|
+
Requires-Dist: moto[mediapackage]==5.1.16 ; extra == 'mediapackage'
|
|
96
|
+
Requires-Dist: moto[mediastore]==5.1.16 ; extra == 'mediastore'
|
|
97
|
+
Requires-Dist: moto[mediastoredata]==5.1.16 ; extra == 'mediastoredata'
|
|
98
|
+
Requires-Dist: moto[meteringmarketplace]==5.1.16 ; extra == 'meteringmarketplace'
|
|
99
|
+
Requires-Dist: moto[mq]==5.1.16 ; extra == 'mq'
|
|
100
|
+
Requires-Dist: moto[opsworks]==5.1.16 ; extra == 'opsworks'
|
|
101
|
+
Requires-Dist: moto[organizations]==5.1.16 ; extra == 'organizations'
|
|
102
|
+
Requires-Dist: moto[panorama]==5.1.16 ; extra == 'panorama'
|
|
103
|
+
Requires-Dist: moto[personalize]==5.1.16 ; extra == 'personalize'
|
|
104
|
+
Requires-Dist: moto[pinpoint]==5.1.16 ; extra == 'pinpoint'
|
|
105
|
+
Requires-Dist: moto[polly]==5.1.16 ; extra == 'polly'
|
|
106
|
+
Requires-Dist: moto[proxy]==5.1.16 ; extra == 'proxy'
|
|
107
|
+
Requires-Dist: moto[quicksight]==5.1.16 ; extra == 'quicksight'
|
|
108
|
+
Requires-Dist: moto[ram]==5.1.16 ; extra == 'ram'
|
|
109
|
+
Requires-Dist: moto[rds]==5.1.16 ; extra == 'rds'
|
|
110
|
+
Requires-Dist: moto[redshift]==5.1.16 ; extra == 'redshift'
|
|
111
|
+
Requires-Dist: moto[redshiftdata]==5.1.16 ; extra == 'redshiftdata'
|
|
112
|
+
Requires-Dist: moto[rekognition]==5.1.16 ; extra == 'rekognition'
|
|
113
|
+
Requires-Dist: moto[resourcegroups]==5.1.16 ; extra == 'resourcegroups'
|
|
114
|
+
Requires-Dist: moto[resourcegroupstaggingapi]==5.1.16 ; extra == 'resourcegroupstaggingapi'
|
|
115
|
+
Requires-Dist: moto[route53]==5.1.16 ; extra == 'route53'
|
|
116
|
+
Requires-Dist: moto[route53resolver]==5.1.16 ; extra == 'route53resolver'
|
|
117
|
+
Requires-Dist: moto[s3]==5.1.16 ; extra == 's3'
|
|
118
|
+
Requires-Dist: moto[s3control]==5.1.16 ; extra == 's3control'
|
|
119
|
+
Requires-Dist: moto[s3crc32c]==5.1.16 ; extra == 's3crc32c'
|
|
120
|
+
Requires-Dist: moto[sagemaker]==5.1.16 ; extra == 'sagemaker'
|
|
121
|
+
Requires-Dist: moto[scheduler]==5.1.16 ; extra == 'scheduler'
|
|
122
|
+
Requires-Dist: moto[sdb]==5.1.16 ; extra == 'sdb'
|
|
123
|
+
Requires-Dist: moto[secretsmanager]==5.1.16 ; extra == 'secretsmanager'
|
|
124
|
+
Requires-Dist: moto[server]==5.1.16 ; extra == 'server'
|
|
125
|
+
Requires-Dist: moto[servicediscovery]==5.1.16 ; extra == 'servicediscovery'
|
|
126
|
+
Requires-Dist: moto[servicequotas]==5.1.16 ; extra == 'servicequotas'
|
|
127
|
+
Requires-Dist: moto[ses]==5.1.16 ; extra == 'ses'
|
|
128
|
+
Requires-Dist: moto[signer]==5.1.16 ; extra == 'signer'
|
|
129
|
+
Requires-Dist: moto[sns]==5.1.16 ; extra == 'sns'
|
|
130
|
+
Requires-Dist: moto[sqs]==5.1.16 ; extra == 'sqs'
|
|
131
|
+
Requires-Dist: moto[ssm]==5.1.16 ; extra == 'ssm'
|
|
132
|
+
Requires-Dist: moto[ssoadmin]==5.1.16 ; extra == 'ssoadmin'
|
|
133
|
+
Requires-Dist: moto[stepfunctions]==5.1.16 ; extra == 'stepfunctions'
|
|
134
|
+
Requires-Dist: moto[sts]==5.1.16 ; extra == 'sts'
|
|
135
|
+
Requires-Dist: moto[support]==5.1.16 ; extra == 'support'
|
|
136
|
+
Requires-Dist: moto[swf]==5.1.16 ; extra == 'swf'
|
|
137
|
+
Requires-Dist: moto[textract]==5.1.16 ; extra == 'textract'
|
|
138
|
+
Requires-Dist: moto[timestreamwrite]==5.1.16 ; extra == 'timestreamwrite'
|
|
139
|
+
Requires-Dist: moto[transcribe]==5.1.16 ; extra == 'transcribe'
|
|
140
|
+
Requires-Dist: moto[wafv2]==5.1.16 ; extra == 'wafv2'
|
|
141
|
+
Requires-Dist: moto[xray]==5.1.16 ; extra == 'xray'
|
|
142
|
+
Requires-Python: >=3.10
|
|
143
|
+
Provides-Extra: acm
|
|
144
|
+
Provides-Extra: acmpca
|
|
145
|
+
Provides-Extra: all
|
|
146
|
+
Provides-Extra: amp
|
|
147
|
+
Provides-Extra: apigateway
|
|
148
|
+
Provides-Extra: apigatewayv2
|
|
149
|
+
Provides-Extra: applicationautoscaling
|
|
150
|
+
Provides-Extra: appsync
|
|
151
|
+
Provides-Extra: athena
|
|
152
|
+
Provides-Extra: autoscaling
|
|
153
|
+
Provides-Extra: awslambda
|
|
154
|
+
Provides-Extra: awslambda-simple
|
|
155
|
+
Provides-Extra: backup
|
|
156
|
+
Provides-Extra: batch
|
|
157
|
+
Provides-Extra: batch-simple
|
|
158
|
+
Provides-Extra: budgets
|
|
159
|
+
Provides-Extra: ce
|
|
160
|
+
Provides-Extra: cloudformation
|
|
161
|
+
Provides-Extra: cloudfront
|
|
162
|
+
Provides-Extra: cloudtrail
|
|
163
|
+
Provides-Extra: cloudwatch
|
|
164
|
+
Provides-Extra: codebuild
|
|
165
|
+
Provides-Extra: codecommit
|
|
166
|
+
Provides-Extra: codepipeline
|
|
167
|
+
Provides-Extra: cognitoidentity
|
|
168
|
+
Provides-Extra: cognitoidp
|
|
169
|
+
Provides-Extra: comprehend
|
|
170
|
+
Provides-Extra: config
|
|
171
|
+
Provides-Extra: databrew
|
|
172
|
+
Provides-Extra: datapipeline
|
|
173
|
+
Provides-Extra: datasync
|
|
174
|
+
Provides-Extra: dax
|
|
175
|
+
Provides-Extra: dms
|
|
176
|
+
Provides-Extra: ds
|
|
177
|
+
Provides-Extra: dynamodb
|
|
178
|
+
Provides-Extra: dynamodbstreams
|
|
179
|
+
Provides-Extra: ebs
|
|
180
|
+
Provides-Extra: ec2
|
|
181
|
+
Provides-Extra: ec2instanceconnect
|
|
182
|
+
Provides-Extra: ecr
|
|
183
|
+
Provides-Extra: ecs
|
|
184
|
+
Provides-Extra: efs
|
|
185
|
+
Provides-Extra: eks
|
|
186
|
+
Provides-Extra: elasticache
|
|
187
|
+
Provides-Extra: elasticbeanstalk
|
|
188
|
+
Provides-Extra: elastictranscoder
|
|
189
|
+
Provides-Extra: elb
|
|
190
|
+
Provides-Extra: elbv2
|
|
191
|
+
Provides-Extra: emr
|
|
192
|
+
Provides-Extra: emrcontainers
|
|
193
|
+
Provides-Extra: emrserverless
|
|
194
|
+
Provides-Extra: es
|
|
195
|
+
Provides-Extra: events
|
|
196
|
+
Provides-Extra: firehose
|
|
197
|
+
Provides-Extra: forecast
|
|
198
|
+
Provides-Extra: glacier
|
|
199
|
+
Provides-Extra: glue
|
|
200
|
+
Provides-Extra: greengrass
|
|
201
|
+
Provides-Extra: guardduty
|
|
202
|
+
Provides-Extra: iam
|
|
203
|
+
Provides-Extra: inspector2
|
|
204
|
+
Provides-Extra: iot
|
|
205
|
+
Provides-Extra: iotdata
|
|
206
|
+
Provides-Extra: ivs
|
|
207
|
+
Provides-Extra: kinesis
|
|
208
|
+
Provides-Extra: kinesisvideo
|
|
209
|
+
Provides-Extra: kinesisvideoarchivedmedia
|
|
210
|
+
Provides-Extra: kms
|
|
211
|
+
Provides-Extra: logs
|
|
212
|
+
Provides-Extra: managedblockchain
|
|
213
|
+
Provides-Extra: mediaconnect
|
|
214
|
+
Provides-Extra: medialive
|
|
215
|
+
Provides-Extra: mediapackage
|
|
216
|
+
Provides-Extra: mediastore
|
|
217
|
+
Provides-Extra: mediastoredata
|
|
218
|
+
Provides-Extra: meteringmarketplace
|
|
219
|
+
Provides-Extra: mq
|
|
220
|
+
Provides-Extra: opsworks
|
|
221
|
+
Provides-Extra: organizations
|
|
222
|
+
Provides-Extra: panorama
|
|
223
|
+
Provides-Extra: personalize
|
|
224
|
+
Provides-Extra: pinpoint
|
|
225
|
+
Provides-Extra: polly
|
|
226
|
+
Provides-Extra: proxy
|
|
227
|
+
Provides-Extra: quicksight
|
|
228
|
+
Provides-Extra: ram
|
|
229
|
+
Provides-Extra: rds
|
|
230
|
+
Provides-Extra: redshift
|
|
231
|
+
Provides-Extra: redshiftdata
|
|
232
|
+
Provides-Extra: rekognition
|
|
233
|
+
Provides-Extra: resourcegroups
|
|
234
|
+
Provides-Extra: resourcegroupstaggingapi
|
|
235
|
+
Provides-Extra: route53
|
|
236
|
+
Provides-Extra: route53resolver
|
|
237
|
+
Provides-Extra: s3
|
|
238
|
+
Provides-Extra: s3control
|
|
239
|
+
Provides-Extra: s3crc32c
|
|
240
|
+
Provides-Extra: sagemaker
|
|
241
|
+
Provides-Extra: scheduler
|
|
242
|
+
Provides-Extra: sdb
|
|
243
|
+
Provides-Extra: secretsmanager
|
|
244
|
+
Provides-Extra: server
|
|
245
|
+
Provides-Extra: servicediscovery
|
|
246
|
+
Provides-Extra: servicequotas
|
|
247
|
+
Provides-Extra: ses
|
|
248
|
+
Provides-Extra: signer
|
|
249
|
+
Provides-Extra: sns
|
|
250
|
+
Provides-Extra: sqs
|
|
251
|
+
Provides-Extra: ssm
|
|
252
|
+
Provides-Extra: ssoadmin
|
|
253
|
+
Provides-Extra: stepfunctions
|
|
254
|
+
Provides-Extra: sts
|
|
255
|
+
Provides-Extra: support
|
|
256
|
+
Provides-Extra: swf
|
|
257
|
+
Provides-Extra: textract
|
|
258
|
+
Provides-Extra: timestreamwrite
|
|
259
|
+
Provides-Extra: transcribe
|
|
260
|
+
Provides-Extra: wafv2
|
|
261
|
+
Provides-Extra: xray
|
|
262
|
+
Description-Content-Type: text/markdown
|
|
263
|
+
|
|
264
|
+
# aiomoto
|
|
265
|
+
|
|
266
|
+
`aiomoto` aims to be Moto for aiobotocore / aioboto3 (plus synchronous botocore / boto3
|
|
267
|
+
). Specifically it is supposed to adapter for moto to aiobotocore. I aim to be able to
|
|
268
|
+
mock both asynchronous and synchronous service clients with consistent state between
|
|
269
|
+
both, i.e. I want you to be able to synchronously write a file to a mock S3 bucket with
|
|
270
|
+
boto3 and asynchronously read the same file back again using aioboto3 or aiobotocore.
|
|
271
|
+
|
|
272
|
+
## Motivation
|
|
273
|
+
|
|
274
|
+
Like many others I've wanted to use Moto with aiobotocore and aioboto3 but found that
|
|
275
|
+
wasn't supported, see:
|
|
276
|
+
|
|
277
|
+
- <https://github.com/getmoto/moto/issues/2039>
|
|
278
|
+
- <https://github.com/getmoto/moto/issues/8694>
|
|
279
|
+
|
|
280
|
+
The primary motivation for attempting to create an aiomoto repo came from this issue
|
|
281
|
+
<https://github.com/getmoto/moto/issues/8513>
|
|
282
|
+
which states aiobotocore support is out of scope for moto and the current primary moto
|
|
283
|
+
maintainer suggested creating an aiomoto repo.
|
|
284
|
+
|
|
285
|
+
## Related Work
|
|
286
|
+
|
|
287
|
+
<https://github.com/dazza-codes/pytest-aiomoto> was an earlier attempt at this but not
|
|
288
|
+
really maintained now.
|
|
289
|
+
|
|
290
|
+
There is discussion on aiobotocore repo about moto support here
|
|
291
|
+
<https://github.com/aio-libs/aiobotocore/discussions/1300>
|
|
292
|
+
|
|
293
|
+
Both the above approaches as far as I'm aware rely on the Moto's
|
|
294
|
+
[server mode](https://docs.getmoto.org/en/latest/docs/server_mode.html) which I don't
|
|
295
|
+
want to use (mainly as I found server mode was slower than other local AWS services
|
|
296
|
+
like dynamodb-local in-memory and I also wanted to run tests in parallel without
|
|
297
|
+
worrying about port clashes or race conditions). In short I don't want any server and I
|
|
298
|
+
want aiomoto to support the moto like mock contexts in the same thread / process as the
|
|
299
|
+
tests run in.
|
|
300
|
+
|
|
301
|
+
## Roadmap
|
|
302
|
+
|
|
303
|
+
This is early days and nothing in aiomoto is functional yet. I'd like to get services
|
|
304
|
+
I personally use heavily like DynamoDb, S3 and some other more niche services working
|
|
305
|
+
early. If that all goes well I'd welcome contributors to start adding support for other
|
|
306
|
+
AWS services I don't personally use. I hope to be able to re-use much of motos automated
|
|
307
|
+
tests for aiomoto too.
|
|
308
|
+
|
|
309
|
+
## Limitations
|
|
310
|
+
|
|
311
|
+
I don't plan to support mixing both moto and aiomoto contexts in the same tests,
|
|
312
|
+
that'd be really complicated to get to sync... however I want aiomoto to be like a super
|
|
313
|
+
set of moto for the services it does implement. So a aiomoto mock context will patch
|
|
314
|
+
both boto3 / botocore and aiobotocore / aioboto3. Not sure how complicated this patching
|
|
315
|
+
is going to be yet but we'll see.
|
|
316
|
+
|
|
317
|
+
Since aiomoto will be tightly coupled to both aiobotocore and moto for now I intend it
|
|
318
|
+
to pin both of those dependencies exactly.
|
aiomoto-0.0.1/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# aiomoto
|
|
2
|
+
|
|
3
|
+
`aiomoto` aims to be Moto for aiobotocore / aioboto3 (plus synchronous botocore / boto3
|
|
4
|
+
). Specifically it is supposed to adapter for moto to aiobotocore. I aim to be able to
|
|
5
|
+
mock both asynchronous and synchronous service clients with consistent state between
|
|
6
|
+
both, i.e. I want you to be able to synchronously write a file to a mock S3 bucket with
|
|
7
|
+
boto3 and asynchronously read the same file back again using aioboto3 or aiobotocore.
|
|
8
|
+
|
|
9
|
+
## Motivation
|
|
10
|
+
|
|
11
|
+
Like many others I've wanted to use Moto with aiobotocore and aioboto3 but found that
|
|
12
|
+
wasn't supported, see:
|
|
13
|
+
|
|
14
|
+
- <https://github.com/getmoto/moto/issues/2039>
|
|
15
|
+
- <https://github.com/getmoto/moto/issues/8694>
|
|
16
|
+
|
|
17
|
+
The primary motivation for attempting to create an aiomoto repo came from this issue
|
|
18
|
+
<https://github.com/getmoto/moto/issues/8513>
|
|
19
|
+
which states aiobotocore support is out of scope for moto and the current primary moto
|
|
20
|
+
maintainer suggested creating an aiomoto repo.
|
|
21
|
+
|
|
22
|
+
## Related Work
|
|
23
|
+
|
|
24
|
+
<https://github.com/dazza-codes/pytest-aiomoto> was an earlier attempt at this but not
|
|
25
|
+
really maintained now.
|
|
26
|
+
|
|
27
|
+
There is discussion on aiobotocore repo about moto support here
|
|
28
|
+
<https://github.com/aio-libs/aiobotocore/discussions/1300>
|
|
29
|
+
|
|
30
|
+
Both the above approaches as far as I'm aware rely on the Moto's
|
|
31
|
+
[server mode](https://docs.getmoto.org/en/latest/docs/server_mode.html) which I don't
|
|
32
|
+
want to use (mainly as I found server mode was slower than other local AWS services
|
|
33
|
+
like dynamodb-local in-memory and I also wanted to run tests in parallel without
|
|
34
|
+
worrying about port clashes or race conditions). In short I don't want any server and I
|
|
35
|
+
want aiomoto to support the moto like mock contexts in the same thread / process as the
|
|
36
|
+
tests run in.
|
|
37
|
+
|
|
38
|
+
## Roadmap
|
|
39
|
+
|
|
40
|
+
This is early days and nothing in aiomoto is functional yet. I'd like to get services
|
|
41
|
+
I personally use heavily like DynamoDb, S3 and some other more niche services working
|
|
42
|
+
early. If that all goes well I'd welcome contributors to start adding support for other
|
|
43
|
+
AWS services I don't personally use. I hope to be able to re-use much of motos automated
|
|
44
|
+
tests for aiomoto too.
|
|
45
|
+
|
|
46
|
+
## Limitations
|
|
47
|
+
|
|
48
|
+
I don't plan to support mixing both moto and aiomoto contexts in the same tests,
|
|
49
|
+
that'd be really complicated to get to sync... however I want aiomoto to be like a super
|
|
50
|
+
set of moto for the services it does implement. So a aiomoto mock context will patch
|
|
51
|
+
both boto3 / botocore and aiobotocore / aioboto3. Not sure how complicated this patching
|
|
52
|
+
is going to be yet but we'll see.
|
|
53
|
+
|
|
54
|
+
Since aiomoto will be tightly coupled to both aiobotocore and moto for now I intend it
|
|
55
|
+
to pin both of those dependencies exactly.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "aiomoto"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
description = "Moto-style AWS service mocks for aiobotocore/aioboto3"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [
|
|
7
|
+
{ name = "Owen Lamont", email = "owenrlamont@gmail.com" }
|
|
8
|
+
]
|
|
9
|
+
requires-python = ">=3.10"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"aiobotocore==2.25.2",
|
|
12
|
+
"moto==5.1.16",
|
|
13
|
+
]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
"License :: OSI Approved :: MIT License",
|
|
19
|
+
"Natural Language :: English",
|
|
20
|
+
"Programming Language :: Python",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3.10",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Programming Language :: Python :: 3.13",
|
|
26
|
+
"Programming Language :: Python :: 3.14",
|
|
27
|
+
"Topic :: Software Development :: Libraries",
|
|
28
|
+
"Topic :: Software Development :: Testing",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
acm = ["moto[acm]==5.1.16"]
|
|
33
|
+
acmpca = ["moto[acmpca]==5.1.16"]
|
|
34
|
+
all = ["moto[all]==5.1.16"]
|
|
35
|
+
amp = ["moto[amp]==5.1.16"]
|
|
36
|
+
apigateway = ["moto[apigateway]==5.1.16"]
|
|
37
|
+
apigatewayv2 = ["moto[apigatewayv2]==5.1.16"]
|
|
38
|
+
applicationautoscaling = ["moto[applicationautoscaling]==5.1.16"]
|
|
39
|
+
appsync = ["moto[appsync]==5.1.16"]
|
|
40
|
+
athena = ["moto[athena]==5.1.16"]
|
|
41
|
+
autoscaling = ["moto[autoscaling]==5.1.16"]
|
|
42
|
+
awslambda = ["moto[awslambda]==5.1.16"]
|
|
43
|
+
awslambda-simple = ["moto[awslambda-simple]==5.1.16"]
|
|
44
|
+
backup = ["moto[backup]==5.1.16"]
|
|
45
|
+
batch = ["moto[batch]==5.1.16"]
|
|
46
|
+
batch-simple = ["moto[batch-simple]==5.1.16"]
|
|
47
|
+
budgets = ["moto[budgets]==5.1.16"]
|
|
48
|
+
ce = ["moto[ce]==5.1.16"]
|
|
49
|
+
cloudformation = ["moto[cloudformation]==5.1.16"]
|
|
50
|
+
cloudfront = ["moto[cloudfront]==5.1.16"]
|
|
51
|
+
cloudtrail = ["moto[cloudtrail]==5.1.16"]
|
|
52
|
+
cloudwatch = ["moto[cloudwatch]==5.1.16"]
|
|
53
|
+
codebuild = ["moto[codebuild]==5.1.16"]
|
|
54
|
+
codecommit = ["moto[codecommit]==5.1.16"]
|
|
55
|
+
codepipeline = ["moto[codepipeline]==5.1.16"]
|
|
56
|
+
cognitoidentity = ["moto[cognitoidentity]==5.1.16"]
|
|
57
|
+
cognitoidp = ["moto[cognitoidp]==5.1.16"]
|
|
58
|
+
comprehend = ["moto[comprehend]==5.1.16"]
|
|
59
|
+
config = ["moto[config]==5.1.16"]
|
|
60
|
+
databrew = ["moto[databrew]==5.1.16"]
|
|
61
|
+
datapipeline = ["moto[datapipeline]==5.1.16"]
|
|
62
|
+
datasync = ["moto[datasync]==5.1.16"]
|
|
63
|
+
dax = ["moto[dax]==5.1.16"]
|
|
64
|
+
dms = ["moto[dms]==5.1.16"]
|
|
65
|
+
ds = ["moto[ds]==5.1.16"]
|
|
66
|
+
dynamodb = ["moto[dynamodb]==5.1.16"]
|
|
67
|
+
dynamodbstreams = ["moto[dynamodbstreams]==5.1.16"]
|
|
68
|
+
ebs = ["moto[ebs]==5.1.16"]
|
|
69
|
+
ec2 = ["moto[ec2]==5.1.16"]
|
|
70
|
+
ec2instanceconnect = ["moto[ec2instanceconnect]==5.1.16"]
|
|
71
|
+
ecr = ["moto[ecr]==5.1.16"]
|
|
72
|
+
ecs = ["moto[ecs]==5.1.16"]
|
|
73
|
+
efs = ["moto[efs]==5.1.16"]
|
|
74
|
+
eks = ["moto[eks]==5.1.16"]
|
|
75
|
+
elasticache = ["moto[elasticache]==5.1.16"]
|
|
76
|
+
elasticbeanstalk = ["moto[elasticbeanstalk]==5.1.16"]
|
|
77
|
+
elastictranscoder = ["moto[elastictranscoder]==5.1.16"]
|
|
78
|
+
elb = ["moto[elb]==5.1.16"]
|
|
79
|
+
elbv2 = ["moto[elbv2]==5.1.16"]
|
|
80
|
+
emr = ["moto[emr]==5.1.16"]
|
|
81
|
+
emrcontainers = ["moto[emrcontainers]==5.1.16"]
|
|
82
|
+
emrserverless = ["moto[emrserverless]==5.1.16"]
|
|
83
|
+
es = ["moto[es]==5.1.16"]
|
|
84
|
+
events = ["moto[events]==5.1.16"]
|
|
85
|
+
firehose = ["moto[firehose]==5.1.16"]
|
|
86
|
+
forecast = ["moto[forecast]==5.1.16"]
|
|
87
|
+
glacier = ["moto[glacier]==5.1.16"]
|
|
88
|
+
glue = ["moto[glue]==5.1.16"]
|
|
89
|
+
greengrass = ["moto[greengrass]==5.1.16"]
|
|
90
|
+
guardduty = ["moto[guardduty]==5.1.16"]
|
|
91
|
+
iam = ["moto[iam]==5.1.16"]
|
|
92
|
+
inspector2 = ["moto[inspector2]==5.1.16"]
|
|
93
|
+
iot = ["moto[iot]==5.1.16"]
|
|
94
|
+
iotdata = ["moto[iotdata]==5.1.16"]
|
|
95
|
+
ivs = ["moto[ivs]==5.1.16"]
|
|
96
|
+
kinesis = ["moto[kinesis]==5.1.16"]
|
|
97
|
+
kinesisvideo = ["moto[kinesisvideo]==5.1.16"]
|
|
98
|
+
kinesisvideoarchivedmedia = ["moto[kinesisvideoarchivedmedia]==5.1.16"]
|
|
99
|
+
kms = ["moto[kms]==5.1.16"]
|
|
100
|
+
logs = ["moto[logs]==5.1.16"]
|
|
101
|
+
managedblockchain = ["moto[managedblockchain]==5.1.16"]
|
|
102
|
+
mediaconnect = ["moto[mediaconnect]==5.1.16"]
|
|
103
|
+
medialive = ["moto[medialive]==5.1.16"]
|
|
104
|
+
mediapackage = ["moto[mediapackage]==5.1.16"]
|
|
105
|
+
mediastore = ["moto[mediastore]==5.1.16"]
|
|
106
|
+
mediastoredata = ["moto[mediastoredata]==5.1.16"]
|
|
107
|
+
meteringmarketplace = ["moto[meteringmarketplace]==5.1.16"]
|
|
108
|
+
mq = ["moto[mq]==5.1.16"]
|
|
109
|
+
opsworks = ["moto[opsworks]==5.1.16"]
|
|
110
|
+
organizations = ["moto[organizations]==5.1.16"]
|
|
111
|
+
panorama = ["moto[panorama]==5.1.16"]
|
|
112
|
+
personalize = ["moto[personalize]==5.1.16"]
|
|
113
|
+
pinpoint = ["moto[pinpoint]==5.1.16"]
|
|
114
|
+
polly = ["moto[polly]==5.1.16"]
|
|
115
|
+
proxy = ["moto[proxy]==5.1.16"]
|
|
116
|
+
quicksight = ["moto[quicksight]==5.1.16"]
|
|
117
|
+
ram = ["moto[ram]==5.1.16"]
|
|
118
|
+
rds = ["moto[rds]==5.1.16"]
|
|
119
|
+
redshift = ["moto[redshift]==5.1.16"]
|
|
120
|
+
redshiftdata = ["moto[redshiftdata]==5.1.16"]
|
|
121
|
+
rekognition = ["moto[rekognition]==5.1.16"]
|
|
122
|
+
resourcegroups = ["moto[resourcegroups]==5.1.16"]
|
|
123
|
+
resourcegroupstaggingapi = ["moto[resourcegroupstaggingapi]==5.1.16"]
|
|
124
|
+
route53 = ["moto[route53]==5.1.16"]
|
|
125
|
+
route53resolver = ["moto[route53resolver]==5.1.16"]
|
|
126
|
+
s3 = ["moto[s3]==5.1.16"]
|
|
127
|
+
s3control = ["moto[s3control]==5.1.16"]
|
|
128
|
+
s3crc32c = ["moto[s3crc32c]==5.1.16"]
|
|
129
|
+
sagemaker = ["moto[sagemaker]==5.1.16"]
|
|
130
|
+
scheduler = ["moto[scheduler]==5.1.16"]
|
|
131
|
+
sdb = ["moto[sdb]==5.1.16"]
|
|
132
|
+
secretsmanager = ["moto[secretsmanager]==5.1.16"]
|
|
133
|
+
server = ["moto[server]==5.1.16"]
|
|
134
|
+
servicediscovery = ["moto[servicediscovery]==5.1.16"]
|
|
135
|
+
servicequotas = ["moto[servicequotas]==5.1.16"]
|
|
136
|
+
ses = ["moto[ses]==5.1.16"]
|
|
137
|
+
signer = ["moto[signer]==5.1.16"]
|
|
138
|
+
sns = ["moto[sns]==5.1.16"]
|
|
139
|
+
sqs = ["moto[sqs]==5.1.16"]
|
|
140
|
+
ssm = ["moto[ssm]==5.1.16"]
|
|
141
|
+
ssoadmin = ["moto[ssoadmin]==5.1.16"]
|
|
142
|
+
stepfunctions = ["moto[stepfunctions]==5.1.16"]
|
|
143
|
+
sts = ["moto[sts]==5.1.16"]
|
|
144
|
+
support = ["moto[support]==5.1.16"]
|
|
145
|
+
swf = ["moto[swf]==5.1.16"]
|
|
146
|
+
textract = ["moto[textract]==5.1.16"]
|
|
147
|
+
timestreamwrite = ["moto[timestreamwrite]==5.1.16"]
|
|
148
|
+
transcribe = ["moto[transcribe]==5.1.16"]
|
|
149
|
+
wafv2 = ["moto[wafv2]==5.1.16"]
|
|
150
|
+
xray = ["moto[xray]==5.1.16"]
|
|
151
|
+
|
|
152
|
+
[dependency-groups]
|
|
153
|
+
dev = [
|
|
154
|
+
"coverage>=7.6.9",
|
|
155
|
+
"freezegun>=1.5.1",
|
|
156
|
+
"mypy>=1.17.0",
|
|
157
|
+
"pytest>=8.3.4",
|
|
158
|
+
"pytest-asyncio>=0.25.2",
|
|
159
|
+
"pytest-cov>=6.0.0",
|
|
160
|
+
"pytest-mock>=3.14.0",
|
|
161
|
+
]
|
|
162
|
+
|
|
163
|
+
[build-system]
|
|
164
|
+
requires = ["uv_build>=0.9.9,<0.10.0"]
|
|
165
|
+
build-backend = "uv_build"
|
|
File without changes
|