mypy-boto3-s3tables 1.42.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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Vlad Emelianov
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,476 @@
1
+ Metadata-Version: 2.4
2
+ Name: mypy-boto3-s3tables
3
+ Version: 1.42.1
4
+ Summary: Type annotations for boto3 S3Tables 1.42.1 service generated with mypy-boto3-builder 8.12.0
5
+ Author-email: Vlad Emelianov <vlad.emelianov.nz@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/youtype/mypy_boto3_builder
8
+ Project-URL: Documentation, https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3tables/
9
+ Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
10
+ Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
11
+ Keywords: boto3,s3tables,boto3-stubs,type-annotations,mypy,typeshed,autocomplete
12
+ Platform: any
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Environment :: Console
16
+ Classifier: Natural Language :: English
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.9
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: Programming Language :: Python :: 3 :: Only
26
+ Classifier: Programming Language :: Python :: Implementation :: CPython
27
+ Classifier: Typing :: Stubs Only
28
+ Requires-Python: >=3.9
29
+ Description-Content-Type: text/markdown
30
+ License-File: LICENSE
31
+ Requires-Dist: typing-extensions; python_version < "3.12"
32
+ Dynamic: license-file
33
+
34
+ <a id="mypy-boto3-s3tables"></a>
35
+
36
+ # mypy-boto3-s3tables
37
+
38
+ [![PyPI - mypy-boto3-s3tables](https://img.shields.io/pypi/v/mypy-boto3-s3tables.svg?color=blue)](https://pypi.org/project/mypy-boto3-s3tables/)
39
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mypy-boto3-s3tables.svg?color=blue)](https://pypi.org/project/mypy-boto3-s3tables/)
40
+ [![Docs](https://img.shields.io/readthedocs/boto3-stubs.svg?color=blue)](https://youtype.github.io/boto3_stubs_docs/)
41
+ [![PyPI - Downloads](https://static.pepy.tech/badge/mypy-boto3-s3tables)](https://pypistats.org/packages/mypy-boto3-s3tables)
42
+
43
+ ![boto3.typed](https://github.com/youtype/mypy_boto3_builder/raw/main/logo.png)
44
+
45
+ Type annotations for [boto3 S3Tables 1.42.1](https://pypi.org/project/boto3/)
46
+ compatible with [VSCode](https://code.visualstudio.com/),
47
+ [PyCharm](https://www.jetbrains.com/pycharm/),
48
+ [Emacs](https://www.gnu.org/software/emacs/),
49
+ [Sublime Text](https://www.sublimetext.com/),
50
+ [mypy](https://github.com/python/mypy),
51
+ [pyright](https://github.com/microsoft/pyright) and other tools.
52
+
53
+ Generated with
54
+ [mypy-boto3-builder 8.12.0](https://github.com/youtype/mypy_boto3_builder).
55
+
56
+ More information can be found on
57
+ [boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
58
+ [mypy-boto3-s3tables docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3tables/).
59
+
60
+ See how it helps you find and fix potential bugs:
61
+
62
+ ![types-boto3 demo](https://github.com/youtype/mypy_boto3_builder/raw/main/demo.gif)
63
+
64
+ - [mypy-boto3-s3tables](#mypy-boto3-s3tables)
65
+ - [How to install](#how-to-install)
66
+ - [Generate locally (recommended)](<#generate-locally-(recommended)>)
67
+ - [VSCode extension](#vscode-extension)
68
+ - [From PyPI with pip](#from-pypi-with-pip)
69
+ - [How to uninstall](#how-to-uninstall)
70
+ - [Usage](#usage)
71
+ - [VSCode](#vscode)
72
+ - [PyCharm](#pycharm)
73
+ - [Emacs](#emacs)
74
+ - [Sublime Text](#sublime-text)
75
+ - [Other IDEs](#other-ides)
76
+ - [mypy](#mypy)
77
+ - [pyright](#pyright)
78
+ - [Pylint compatibility](#pylint-compatibility)
79
+ - [Explicit type annotations](#explicit-type-annotations)
80
+ - [Client annotations](#client-annotations)
81
+ - [Paginators annotations](#paginators-annotations)
82
+ - [Literals](#literals)
83
+ - [Type definitions](#type-definitions)
84
+ - [How it works](#how-it-works)
85
+ - [What's new](#what's-new)
86
+ - [Implemented features](#implemented-features)
87
+ - [Latest changes](#latest-changes)
88
+ - [Versioning](#versioning)
89
+ - [Thank you](#thank-you)
90
+ - [Documentation](#documentation)
91
+ - [Support and contributing](#support-and-contributing)
92
+
93
+ <a id="how-to-install"></a>
94
+
95
+ ## How to install
96
+
97
+ <a id="generate-locally-(recommended)"></a>
98
+
99
+ ### Generate locally (recommended)
100
+
101
+ You can generate type annotations for `boto3` package locally with
102
+ `mypy-boto3-builder`. Use
103
+ [uv](https://docs.astral.sh/uv/getting-started/installation/) for build
104
+ isolation.
105
+
106
+ 1. Run mypy-boto3-builder in your package root directory:
107
+ `uvx --with 'boto3==1.42.1' mypy-boto3-builder`
108
+ 2. Select `boto3-stubs` AWS SDK.
109
+ 3. Add `S3Tables` service.
110
+ 4. Use provided commands to install generated packages.
111
+
112
+ <a id="vscode-extension"></a>
113
+
114
+ ### VSCode extension
115
+
116
+ Add
117
+ [AWS Boto3](https://marketplace.visualstudio.com/items?itemName=Boto3typed.boto3-ide)
118
+ extension to your VSCode and run `AWS boto3: Quick Start` command.
119
+
120
+ Click `Modify` and select `boto3 common` and `S3Tables`.
121
+
122
+ <a id="from-pypi-with-pip"></a>
123
+
124
+ ### From PyPI with pip
125
+
126
+ Install `boto3-stubs` for `S3Tables` service.
127
+
128
+ ```bash
129
+ # install with boto3 type annotations
130
+ python -m pip install 'boto3-stubs[s3tables]'
131
+
132
+ # Lite version does not provide session.client/resource overloads
133
+ # it is more RAM-friendly, but requires explicit type annotations
134
+ python -m pip install 'boto3-stubs-lite[s3tables]'
135
+
136
+ # standalone installation
137
+ python -m pip install mypy-boto3-s3tables
138
+ ```
139
+
140
+ <a id="how-to-uninstall"></a>
141
+
142
+ ## How to uninstall
143
+
144
+ ```bash
145
+ python -m pip uninstall -y mypy-boto3-s3tables
146
+ ```
147
+
148
+ <a id="usage"></a>
149
+
150
+ ## Usage
151
+
152
+ <a id="vscode"></a>
153
+
154
+ ### VSCode
155
+
156
+ - Install
157
+ [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
158
+ - Install
159
+ [Pylance extension](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)
160
+ - Set `Pylance` as your Python Language Server
161
+ - Install `boto3-stubs[s3tables]` in your environment:
162
+
163
+ ```bash
164
+ python -m pip install 'boto3-stubs[s3tables]'
165
+ ```
166
+
167
+ Both type checking and code completion should now work. No explicit type
168
+ annotations required, write your `boto3` code as usual.
169
+
170
+ <a id="pycharm"></a>
171
+
172
+ ### PyCharm
173
+
174
+ > ⚠️ Due to slow PyCharm performance on `Literal` overloads (issue
175
+ > [PY-40997](https://youtrack.jetbrains.com/issue/PY-40997)), it is recommended
176
+ > to use [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/) until
177
+ > the issue is resolved.
178
+
179
+ > ⚠️ If you experience slow performance and high CPU usage, try to disable
180
+ > `PyCharm` type checker and use [mypy](https://github.com/python/mypy) or
181
+ > [pyright](https://github.com/microsoft/pyright) instead.
182
+
183
+ > ⚠️ To continue using `PyCharm` type checker, you can try to replace
184
+ > `boto3-stubs` with
185
+ > [boto3-stubs-lite](https://pypi.org/project/boto3-stubs-lite/):
186
+
187
+ ```bash
188
+ pip uninstall boto3-stubs
189
+ pip install boto3-stubs-lite
190
+ ```
191
+
192
+ Install `boto3-stubs[s3tables]` in your environment:
193
+
194
+ ```bash
195
+ python -m pip install 'boto3-stubs[s3tables]'
196
+ ```
197
+
198
+ Both type checking and code completion should now work.
199
+
200
+ <a id="emacs"></a>
201
+
202
+ ### Emacs
203
+
204
+ - Install `boto3-stubs` with services you use in your environment:
205
+
206
+ ```bash
207
+ python -m pip install 'boto3-stubs[s3tables]'
208
+ ```
209
+
210
+ - Install [use-package](https://github.com/jwiegley/use-package),
211
+ [lsp](https://github.com/emacs-lsp/lsp-mode/),
212
+ [company](https://github.com/company-mode/company-mode) and
213
+ [flycheck](https://github.com/flycheck/flycheck) packages
214
+ - Install [lsp-pyright](https://github.com/emacs-lsp/lsp-pyright) package
215
+
216
+ ```elisp
217
+ (use-package lsp-pyright
218
+ :ensure t
219
+ :hook (python-mode . (lambda ()
220
+ (require 'lsp-pyright)
221
+ (lsp))) ; or lsp-deferred
222
+ :init (when (executable-find "python3")
223
+ (setq lsp-pyright-python-executable-cmd "python3"))
224
+ )
225
+ ```
226
+
227
+ - Make sure emacs uses the environment where you have installed `boto3-stubs`
228
+
229
+ Type checking should now work. No explicit type annotations required, write
230
+ your `boto3` code as usual.
231
+
232
+ <a id="sublime-text"></a>
233
+
234
+ ### Sublime Text
235
+
236
+ - Install `boto3-stubs[s3tables]` with services you use in your environment:
237
+
238
+ ```bash
239
+ python -m pip install 'boto3-stubs[s3tables]'
240
+ ```
241
+
242
+ - Install [LSP-pyright](https://github.com/sublimelsp/LSP-pyright) package
243
+
244
+ Type checking should now work. No explicit type annotations required, write
245
+ your `boto3` code as usual.
246
+
247
+ <a id="other-ides"></a>
248
+
249
+ ### Other IDEs
250
+
251
+ Not tested, but as long as your IDE supports `mypy` or `pyright`, everything
252
+ should work.
253
+
254
+ <a id="mypy"></a>
255
+
256
+ ### mypy
257
+
258
+ - Install `mypy`: `python -m pip install mypy`
259
+ - Install `boto3-stubs[s3tables]` in your environment:
260
+
261
+ ```bash
262
+ python -m pip install 'boto3-stubs[s3tables]'
263
+ ```
264
+
265
+ Type checking should now work. No explicit type annotations required, write
266
+ your `boto3` code as usual.
267
+
268
+ <a id="pyright"></a>
269
+
270
+ ### pyright
271
+
272
+ - Install `pyright`: `npm i -g pyright`
273
+ - Install `boto3-stubs[s3tables]` in your environment:
274
+
275
+ ```bash
276
+ python -m pip install 'boto3-stubs[s3tables]'
277
+ ```
278
+
279
+ Optionally, you can install `boto3-stubs` to `typings` directory.
280
+
281
+ Type checking should now work. No explicit type annotations required, write
282
+ your `boto3` code as usual.
283
+
284
+ <a id="pylint-compatibility"></a>
285
+
286
+ ### Pylint compatibility
287
+
288
+ It is totally safe to use `TYPE_CHECKING` flag in order to avoid
289
+ `mypy-boto3-s3tables` dependency in production. However, there is an issue in
290
+ `pylint` that it complains about undefined variables. To fix it, set all types
291
+ to `object` in non-`TYPE_CHECKING` mode.
292
+
293
+ ```python
294
+ from typing import TYPE_CHECKING
295
+
296
+ if TYPE_CHECKING:
297
+ from mypy_boto3_ec2 import EC2Client, EC2ServiceResource
298
+ from mypy_boto3_ec2.waiters import BundleTaskCompleteWaiter
299
+ from mypy_boto3_ec2.paginators import DescribeVolumesPaginator
300
+ else:
301
+ EC2Client = object
302
+ EC2ServiceResource = object
303
+ BundleTaskCompleteWaiter = object
304
+ DescribeVolumesPaginator = object
305
+
306
+ ...
307
+ ```
308
+
309
+ <a id="explicit-type-annotations"></a>
310
+
311
+ ## Explicit type annotations
312
+
313
+ <a id="client-annotations"></a>
314
+
315
+ ### Client annotations
316
+
317
+ `S3TablesClient` provides annotations for `boto3.client("s3tables")`.
318
+
319
+ ```python
320
+ from boto3.session import Session
321
+
322
+ from mypy_boto3_s3tables import S3TablesClient
323
+
324
+ client: S3TablesClient = Session().client("s3tables")
325
+
326
+ # now client usage is checked by mypy and IDE should provide code completion
327
+ ```
328
+
329
+ <a id="paginators-annotations"></a>
330
+
331
+ ### Paginators annotations
332
+
333
+ `mypy_boto3_s3tables.paginator` module contains type annotations for all
334
+ paginators.
335
+
336
+ ```python
337
+ from boto3.session import Session
338
+
339
+ from mypy_boto3_s3tables import S3TablesClient
340
+ from mypy_boto3_s3tables.paginator import (
341
+ ListNamespacesPaginator,
342
+ ListTableBucketsPaginator,
343
+ ListTablesPaginator,
344
+ )
345
+
346
+ client: S3TablesClient = Session().client("s3tables")
347
+
348
+ # Explicit type annotations are optional here
349
+ # Types should be correctly discovered by mypy and IDEs
350
+ list_namespaces_paginator: ListNamespacesPaginator = client.get_paginator("list_namespaces")
351
+ list_table_buckets_paginator: ListTableBucketsPaginator = client.get_paginator("list_table_buckets")
352
+ list_tables_paginator: ListTablesPaginator = client.get_paginator("list_tables")
353
+ ```
354
+
355
+ <a id="literals"></a>
356
+
357
+ ### Literals
358
+
359
+ `mypy_boto3_s3tables.literals` module contains literals extracted from shapes
360
+ that can be used in user code for type checking.
361
+
362
+ Full list of `S3Tables` Literals can be found in
363
+ [docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3tables/literals/).
364
+
365
+ ```python
366
+ from mypy_boto3_s3tables.literals import IcebergCompactionStrategyType
367
+
368
+
369
+ def check_value(value: IcebergCompactionStrategyType) -> bool: ...
370
+ ```
371
+
372
+ <a id="type-definitions"></a>
373
+
374
+ ### Type definitions
375
+
376
+ `mypy_boto3_s3tables.type_defs` module contains structures and shapes assembled
377
+ to typed dictionaries and unions for additional type checking.
378
+
379
+ Full list of `S3Tables` TypeDefs can be found in
380
+ [docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3tables/type_defs/).
381
+
382
+ ```python
383
+ # TypedDict usage example
384
+ from mypy_boto3_s3tables.type_defs import CreateNamespaceRequestTypeDef
385
+
386
+
387
+ def get_value() -> CreateNamespaceRequestTypeDef:
388
+ return {
389
+ "tableBucketARN": ...,
390
+ }
391
+ ```
392
+
393
+ <a id="how-it-works"></a>
394
+
395
+ ## How it works
396
+
397
+ Fully automated
398
+ [mypy-boto3-builder](https://github.com/youtype/mypy_boto3_builder) carefully
399
+ generates type annotations for each service, patiently waiting for `boto3`
400
+ updates. It delivers drop-in type annotations for you and makes sure that:
401
+
402
+ - All available `boto3` services are covered.
403
+ - Each public class and method of every `boto3` service gets valid type
404
+ annotations extracted from `botocore` schemas.
405
+ - Type annotations include up-to-date documentation.
406
+ - Link to documentation is provided for every method.
407
+ - Code is processed by [ruff](https://docs.astral.sh/ruff/) for readability.
408
+
409
+ <a id="what's-new"></a>
410
+
411
+ ## What's new
412
+
413
+ <a id="implemented-features"></a>
414
+
415
+ ### Implemented features
416
+
417
+ - Fully type annotated `boto3`, `botocore`, `aiobotocore` and `aioboto3`
418
+ libraries
419
+ - `mypy`, `pyright`, `VSCode`, `PyCharm`, `Sublime Text` and `Emacs`
420
+ compatibility
421
+ - `Client`, `ServiceResource`, `Resource`, `Waiter` `Paginator` type
422
+ annotations for each service
423
+ - Generated `TypeDefs` for each service
424
+ - Generated `Literals` for each service
425
+ - Auto discovery of types for `boto3.client` and `boto3.resource` calls
426
+ - Auto discovery of types for `session.client` and `session.resource` calls
427
+ - Auto discovery of types for `client.get_waiter` and `client.get_paginator`
428
+ calls
429
+ - Auto discovery of types for `ServiceResource` and `Resource` collections
430
+ - Auto discovery of types for `aiobotocore.Session.create_client` calls
431
+
432
+ <a id="latest-changes"></a>
433
+
434
+ ### Latest changes
435
+
436
+ Builder changelog can be found in
437
+ [Releases](https://github.com/youtype/mypy_boto3_builder/releases).
438
+
439
+ <a id="versioning"></a>
440
+
441
+ ## Versioning
442
+
443
+ `mypy-boto3-s3tables` version is the same as related `boto3` version and
444
+ follows
445
+ [Python Packaging version specifiers](https://packaging.python.org/en/latest/specifications/version-specifiers/).
446
+
447
+ <a id="thank-you"></a>
448
+
449
+ ## Thank you
450
+
451
+ - [Allie Fitter](https://github.com/alliefitter) for
452
+ [boto3-type-annotations](https://pypi.org/project/boto3-type-annotations/),
453
+ this package is based on top of his work
454
+ - [black](https://github.com/psf/black) developers for an awesome formatting
455
+ tool
456
+ - [Timothy Edmund Crosley](https://github.com/timothycrosley) for
457
+ [isort](https://github.com/PyCQA/isort) and how flexible it is
458
+ - [mypy](https://github.com/python/mypy) developers for doing all dirty work
459
+ for us
460
+ - [pyright](https://github.com/microsoft/pyright) team for the new era of typed
461
+ Python
462
+
463
+ <a id="documentation"></a>
464
+
465
+ ## Documentation
466
+
467
+ All services type annotations can be found in
468
+ [boto3 docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_s3tables/)
469
+
470
+ <a id="support-and-contributing"></a>
471
+
472
+ ## Support and contributing
473
+
474
+ This package is auto-generated. Please reports any bugs or request new features
475
+ in [mypy-boto3-builder](https://github.com/youtype/mypy_boto3_builder/issues/)
476
+ repository.