mypy-boto3-s3tables 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.

Potentially problematic release.


This version of mypy-boto3-s3tables might be problematic. Click here for more details.

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