mypy-boto3-dynamodb 1.35.54__tar.gz → 1.35.74__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.
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/PKG-INFO +58 -18
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/README.md +55 -15
- mypy_boto3_dynamodb-1.35.54/mypy_boto3_dynamodb/__init__.pyi → mypy_boto3_dynamodb-1.35.74/mypy_boto3_dynamodb/__init__.py +4 -0
- mypy_boto3_dynamodb-1.35.54/mypy_boto3_dynamodb/__init__.py → mypy_boto3_dynamodb-1.35.74/mypy_boto3_dynamodb/__init__.pyi +2 -2
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb/__main__.py +7 -5
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb/client.py +143 -155
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb/client.pyi +143 -155
- mypy_boto3_dynamodb-1.35.54/mypy_boto3_dynamodb/literals.pyi → mypy_boto3_dynamodb-1.35.74/mypy_boto3_dynamodb/literals.py +18 -0
- mypy_boto3_dynamodb-1.35.54/mypy_boto3_dynamodb/literals.py → mypy_boto3_dynamodb-1.35.74/mypy_boto3_dynamodb/literals.pyi +16 -2
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb/paginator.py +12 -10
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb/paginator.pyi +12 -10
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb/service_resource.py +81 -87
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb/service_resource.pyi +81 -87
- mypy_boto3_dynamodb-1.35.54/mypy_boto3_dynamodb/type_defs.pyi → mypy_boto3_dynamodb-1.35.74/mypy_boto3_dynamodb/type_defs.py +337 -23
- mypy_boto3_dynamodb-1.35.54/mypy_boto3_dynamodb/type_defs.py → mypy_boto3_dynamodb-1.35.74/mypy_boto3_dynamodb/type_defs.pyi +55 -293
- mypy_boto3_dynamodb-1.35.74/mypy_boto3_dynamodb/version.py +7 -0
- mypy_boto3_dynamodb-1.35.54/mypy_boto3_dynamodb/waiter.pyi → mypy_boto3_dynamodb-1.35.74/mypy_boto3_dynamodb/waiter.py +11 -4
- mypy_boto3_dynamodb-1.35.54/mypy_boto3_dynamodb/waiter.py → mypy_boto3_dynamodb-1.35.74/mypy_boto3_dynamodb/waiter.pyi +6 -9
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb.egg-info/PKG-INFO +58 -18
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/setup.py +5 -3
- mypy_boto3_dynamodb-1.35.54/mypy_boto3_dynamodb/version.py +0 -5
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/LICENSE +0 -0
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb/py.typed +0 -0
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb.egg-info/SOURCES.txt +0 -0
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb.egg-info/dependency_links.txt +0 -0
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb.egg-info/not-zip-safe +0 -0
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb.egg-info/requires.txt +0 -0
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/mypy_boto3_dynamodb.egg-info/top_level.txt +0 -0
- {mypy_boto3_dynamodb-1.35.54 → mypy_boto3_dynamodb-1.35.74}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mypy-boto3-dynamodb
|
|
3
|
-
Version: 1.35.
|
|
4
|
-
Summary: Type annotations for boto3
|
|
3
|
+
Version: 1.35.74
|
|
4
|
+
Summary: Type annotations for boto3 DynamoDB 1.35.74 service generated with mypy-boto3-builder 8.5.0
|
|
5
5
|
Home-page: https://github.com/youtype/mypy_boto3_builder
|
|
6
6
|
Author: Vlad Emelianov
|
|
7
7
|
Author-email: vlad.emelianov.nz@gmail.com
|
|
@@ -9,7 +9,7 @@ License: MIT License
|
|
|
9
9
|
Project-URL: Documentation, https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/
|
|
10
10
|
Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
|
|
11
11
|
Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
|
|
12
|
-
Keywords: boto3 dynamodb type-annotations
|
|
12
|
+
Keywords: boto3 dynamodb boto3-stubs type-annotations mypy typeshed autocomplete
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
15
|
Classifier: Environment :: Console
|
|
@@ -36,16 +36,15 @@ Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
|
|
|
36
36
|
|
|
37
37
|
# mypy-boto3-dynamodb
|
|
38
38
|
|
|
39
|
-
[](https://pypi.org/project/mypy-boto3-dynamodb)
|
|
40
|
-
[](https://pypi.org/project/mypy-boto3-dynamodb)
|
|
41
|
-
[](https://youtype.github.io/boto3_stubs_docs/
|
|
42
|
-
[](https://
|
|
39
|
+
[](https://pypi.org/project/mypy-boto3-dynamodb/)
|
|
40
|
+
[](https://pypi.org/project/mypy-boto3-dynamodb/)
|
|
41
|
+
[](https://youtype.github.io/boto3_stubs_docs/)
|
|
42
|
+
[](https://pypistats.org/packages/mypy-boto3-dynamodb)
|
|
43
43
|
|
|
44
44
|

|
|
45
45
|
|
|
46
|
-
Type annotations for
|
|
47
|
-
[
|
|
48
|
-
service compatible with [VSCode](https://code.visualstudio.com/),
|
|
46
|
+
Type annotations for [boto3 DynamoDB 1.35.74](https://pypi.org/project/boto3/)
|
|
47
|
+
compatible with [VSCode](https://code.visualstudio.com/),
|
|
49
48
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
50
49
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
51
50
|
[Sublime Text](https://www.sublimetext.com/),
|
|
@@ -53,15 +52,15 @@ service compatible with [VSCode](https://code.visualstudio.com/),
|
|
|
53
52
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
54
53
|
|
|
55
54
|
Generated by
|
|
56
|
-
[mypy-boto3-builder 8.
|
|
55
|
+
[mypy-boto3-builder 8.5.0](https://github.com/youtype/mypy_boto3_builder).
|
|
57
56
|
|
|
58
57
|
More information can be found on
|
|
59
58
|
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
|
|
60
59
|
[mypy-boto3-dynamodb docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/).
|
|
61
60
|
|
|
62
|
-
See how it helps
|
|
61
|
+
See how it helps you find and fix potential bugs:
|
|
63
62
|
|
|
64
|
-

|
|
65
64
|
|
|
66
65
|
- [mypy-boto3-dynamodb](#mypy-boto3-dynamodb)
|
|
67
66
|
- [How to install](#how-to-install)
|
|
@@ -77,6 +76,7 @@ See how it helps to find and fix potential bugs:
|
|
|
77
76
|
- [Other IDEs](#other-ides)
|
|
78
77
|
- [mypy](#mypy)
|
|
79
78
|
- [pyright](#pyright)
|
|
79
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
80
80
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
81
81
|
- [Client annotations](#client-annotations)
|
|
82
82
|
- [Paginators annotations](#paginators-annotations)
|
|
@@ -189,16 +189,31 @@ annotations required, write your `boto3` code as usual.
|
|
|
189
189
|
|
|
190
190
|
### PyCharm
|
|
191
191
|
|
|
192
|
-
|
|
192
|
+
> ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
|
|
193
|
+
> [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
|
|
194
|
+
> to use [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/) until
|
|
195
|
+
> the issue is resolved.
|
|
196
|
+
|
|
197
|
+
> ⚠️ If you experience slow performance and high CPU usage, try to disable
|
|
198
|
+
> `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
|
|
199
|
+
> [pyright](https://github.com/microsoft/pyright) instead.
|
|
200
|
+
|
|
201
|
+
> ⚠️ To continue using `PyCharm` type checker, you can try to replace
|
|
202
|
+
> `boto3-stubs` with
|
|
203
|
+
> [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/):
|
|
193
204
|
|
|
194
205
|
```bash
|
|
195
|
-
|
|
206
|
+
pip uninstall boto3-stubs
|
|
207
|
+
pip install boto3-stubs-lite
|
|
196
208
|
```
|
|
197
209
|
|
|
198
|
-
|
|
199
|
-
|
|
210
|
+
Install `boto3-stubs[dynamodb]` in your environment:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
python -m pip install 'boto3-stubs[dynamodb]'
|
|
214
|
+
```
|
|
200
215
|
|
|
201
|
-
|
|
216
|
+
Both type checking and code completion should now work.
|
|
202
217
|
|
|
203
218
|
<a id="emacs"></a>
|
|
204
219
|
|
|
@@ -284,6 +299,31 @@ Optionally, you can install `boto3-stubs` to `typings` directory.
|
|
|
284
299
|
Type checking should now work. No explicit type annotations required, write
|
|
285
300
|
your `boto3` code as usual.
|
|
286
301
|
|
|
302
|
+
<a id="pylint-compatibility"></a>
|
|
303
|
+
|
|
304
|
+
### Pylint compatibility
|
|
305
|
+
|
|
306
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid
|
|
307
|
+
`mypy-boto3-dynamodb` dependency in production. However, there is an issue in
|
|
308
|
+
`pylint` that it complains about undefined variables. To fix it, set all types
|
|
309
|
+
to `object` in non-`TYPE_CHECKING` mode.
|
|
310
|
+
|
|
311
|
+
```python
|
|
312
|
+
from typing import TYPE_CHECKING
|
|
313
|
+
|
|
314
|
+
if TYPE_CHECKING:
|
|
315
|
+
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
316
|
+
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
317
|
+
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
318
|
+
else:
|
|
319
|
+
EC2Client = object
|
|
320
|
+
EC2ServiceResource = object
|
|
321
|
+
BundleTaskCompleteWaiter = object
|
|
322
|
+
DescribeVolumesPaginator = object
|
|
323
|
+
|
|
324
|
+
...
|
|
325
|
+
```
|
|
326
|
+
|
|
287
327
|
<a id="explicit-type-annotations"></a>
|
|
288
328
|
|
|
289
329
|
## Explicit type annotations
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
# mypy-boto3-dynamodb
|
|
4
4
|
|
|
5
|
-
[](https://pypi.org/project/mypy-boto3-dynamodb)
|
|
6
|
-
[](https://pypi.org/project/mypy-boto3-dynamodb)
|
|
7
|
-
[](https://youtype.github.io/boto3_stubs_docs/
|
|
8
|
-
[](https://
|
|
5
|
+
[](https://pypi.org/project/mypy-boto3-dynamodb/)
|
|
6
|
+
[](https://pypi.org/project/mypy-boto3-dynamodb/)
|
|
7
|
+
[](https://youtype.github.io/boto3_stubs_docs/)
|
|
8
|
+
[](https://pypistats.org/packages/mypy-boto3-dynamodb)
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
12
|
-
Type annotations for
|
|
13
|
-
[
|
|
14
|
-
service compatible with [VSCode](https://code.visualstudio.com/),
|
|
12
|
+
Type annotations for [boto3 DynamoDB 1.35.74](https://pypi.org/project/boto3/)
|
|
13
|
+
compatible with [VSCode](https://code.visualstudio.com/),
|
|
15
14
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
16
15
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
17
16
|
[Sublime Text](https://www.sublimetext.com/),
|
|
@@ -19,15 +18,15 @@ service compatible with [VSCode](https://code.visualstudio.com/),
|
|
|
19
18
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
20
19
|
|
|
21
20
|
Generated by
|
|
22
|
-
[mypy-boto3-builder 8.
|
|
21
|
+
[mypy-boto3-builder 8.5.0](https://github.com/youtype/mypy_boto3_builder).
|
|
23
22
|
|
|
24
23
|
More information can be found on
|
|
25
24
|
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
|
|
26
25
|
[mypy-boto3-dynamodb docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb/).
|
|
27
26
|
|
|
28
|
-
See how it helps
|
|
27
|
+
See how it helps you find and fix potential bugs:
|
|
29
28
|
|
|
30
|
-

|
|
31
30
|
|
|
32
31
|
- [mypy-boto3-dynamodb](#mypy-boto3-dynamodb)
|
|
33
32
|
- [How to install](#how-to-install)
|
|
@@ -43,6 +42,7 @@ See how it helps to find and fix potential bugs:
|
|
|
43
42
|
- [Other IDEs](#other-ides)
|
|
44
43
|
- [mypy](#mypy)
|
|
45
44
|
- [pyright](#pyright)
|
|
45
|
+
- [Pylint compatibility](#pylint-compatibility)
|
|
46
46
|
- [Explicit type annotations](#explicit-type-annotations)
|
|
47
47
|
- [Client annotations](#client-annotations)
|
|
48
48
|
- [Paginators annotations](#paginators-annotations)
|
|
@@ -155,16 +155,31 @@ annotations required, write your `boto3` code as usual.
|
|
|
155
155
|
|
|
156
156
|
### PyCharm
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
> ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
|
|
159
|
+
> [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
|
|
160
|
+
> to use [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/) until
|
|
161
|
+
> the issue is resolved.
|
|
162
|
+
|
|
163
|
+
> ⚠️ If you experience slow performance and high CPU usage, try to disable
|
|
164
|
+
> `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
|
|
165
|
+
> [pyright](https://github.com/microsoft/pyright) instead.
|
|
166
|
+
|
|
167
|
+
> ⚠️ To continue using `PyCharm` type checker, you can try to replace
|
|
168
|
+
> `boto3-stubs` with
|
|
169
|
+
> [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/):
|
|
159
170
|
|
|
160
171
|
```bash
|
|
161
|
-
|
|
172
|
+
pip uninstall boto3-stubs
|
|
173
|
+
pip install boto3-stubs-lite
|
|
162
174
|
```
|
|
163
175
|
|
|
164
|
-
|
|
165
|
-
|
|
176
|
+
Install `boto3-stubs[dynamodb]` in your environment:
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
python -m pip install 'boto3-stubs[dynamodb]'
|
|
180
|
+
```
|
|
166
181
|
|
|
167
|
-
|
|
182
|
+
Both type checking and code completion should now work.
|
|
168
183
|
|
|
169
184
|
<a id="emacs"></a>
|
|
170
185
|
|
|
@@ -250,6 +265,31 @@ Optionally, you can install `boto3-stubs` to `typings` directory.
|
|
|
250
265
|
Type checking should now work. No explicit type annotations required, write
|
|
251
266
|
your `boto3` code as usual.
|
|
252
267
|
|
|
268
|
+
<a id="pylint-compatibility"></a>
|
|
269
|
+
|
|
270
|
+
### Pylint compatibility
|
|
271
|
+
|
|
272
|
+
It is totally safe to use `TYPE_CHECKING` flag in order to avoid
|
|
273
|
+
`mypy-boto3-dynamodb` dependency in production. However, there is an issue in
|
|
274
|
+
`pylint` that it complains about undefined variables. To fix it, set all types
|
|
275
|
+
to `object` in non-`TYPE_CHECKING` mode.
|
|
276
|
+
|
|
277
|
+
```python
|
|
278
|
+
from typing import TYPE_CHECKING
|
|
279
|
+
|
|
280
|
+
if TYPE_CHECKING:
|
|
281
|
+
from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
|
|
282
|
+
from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
|
|
283
|
+
from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
|
|
284
|
+
else:
|
|
285
|
+
EC2Client = object
|
|
286
|
+
EC2ServiceResource = object
|
|
287
|
+
BundleTaskCompleteWaiter = object
|
|
288
|
+
DescribeVolumesPaginator = object
|
|
289
|
+
|
|
290
|
+
...
|
|
291
|
+
```
|
|
292
|
+
|
|
253
293
|
<a id="explicit-type-annotations"></a>
|
|
254
294
|
|
|
255
295
|
## Explicit type annotations
|
|
@@ -33,6 +33,8 @@ Usage::
|
|
|
33
33
|
query_paginator: QueryPaginator = client.get_paginator("query")
|
|
34
34
|
scan_paginator: ScanPaginator = client.get_paginator("scan")
|
|
35
35
|
```
|
|
36
|
+
|
|
37
|
+
Copyright 2024 Vlad Emelianov
|
|
36
38
|
"""
|
|
37
39
|
|
|
38
40
|
from .client import DynamoDBClient
|
|
@@ -48,8 +50,10 @@ from .waiter import TableExistsWaiter, TableNotExistsWaiter
|
|
|
48
50
|
|
|
49
51
|
Client = DynamoDBClient
|
|
50
52
|
|
|
53
|
+
|
|
51
54
|
ServiceResource = DynamoDBServiceResource
|
|
52
55
|
|
|
56
|
+
|
|
53
57
|
__all__ = (
|
|
54
58
|
"Client",
|
|
55
59
|
"DynamoDBClient",
|
|
@@ -33,6 +33,8 @@ Usage::
|
|
|
33
33
|
query_paginator: QueryPaginator = client.get_paginator("query")
|
|
34
34
|
scan_paginator: ScanPaginator = client.get_paginator("scan")
|
|
35
35
|
```
|
|
36
|
+
|
|
37
|
+
Copyright 2024 Vlad Emelianov
|
|
36
38
|
"""
|
|
37
39
|
|
|
38
40
|
from .client import DynamoDBClient
|
|
@@ -48,10 +50,8 @@ from .waiter import TableExistsWaiter, TableNotExistsWaiter
|
|
|
48
50
|
|
|
49
51
|
Client = DynamoDBClient
|
|
50
52
|
|
|
51
|
-
|
|
52
53
|
ServiceResource = DynamoDBServiceResource
|
|
53
54
|
|
|
54
|
-
|
|
55
55
|
__all__ = (
|
|
56
56
|
"Client",
|
|
57
57
|
"DynamoDBClient",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Main CLI entrypoint.
|
|
3
|
+
|
|
4
|
+
Copyright 2024 Vlad Emelianov
|
|
3
5
|
"""
|
|
4
6
|
|
|
5
7
|
import sys
|
|
@@ -10,11 +12,11 @@ def print_info() -> None:
|
|
|
10
12
|
Print package info to stdout.
|
|
11
13
|
"""
|
|
12
14
|
print(
|
|
13
|
-
"Type annotations for boto3
|
|
14
|
-
"Version: 1.35.
|
|
15
|
-
"Builder version: 8.
|
|
15
|
+
"Type annotations for boto3 DynamoDB 1.35.74\n"
|
|
16
|
+
"Version: 1.35.74\n"
|
|
17
|
+
"Builder version: 8.5.0\n"
|
|
16
18
|
"Docs: https://youtype.github.io/boto3_stubs_docs/mypy_boto3_dynamodb//\n"
|
|
17
|
-
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#
|
|
19
|
+
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#dynamodb\n"
|
|
18
20
|
"Other services: https://pypi.org/project/boto3-stubs/\n"
|
|
19
21
|
"Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
|
|
20
22
|
)
|
|
@@ -24,7 +26,7 @@ def print_version() -> None:
|
|
|
24
26
|
"""
|
|
25
27
|
Print package version to stdout.
|
|
26
28
|
"""
|
|
27
|
-
print("1.35.
|
|
29
|
+
print("1.35.74")
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
def main() -> None:
|