types-boto3-lite 1.35.71.post1__py3-none-any.whl

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 (45) hide show
  1. boto3-stubs/__init__.pyi +60 -0
  2. boto3-stubs/compat.pyi +13 -0
  3. boto3-stubs/crt.pyi +28 -0
  4. boto3-stubs/docs/__init__.pyi +9 -0
  5. boto3-stubs/docs/action.pyi +37 -0
  6. boto3-stubs/docs/attr.pyi +33 -0
  7. boto3-stubs/docs/base.pyi +19 -0
  8. boto3-stubs/docs/client.pyi +9 -0
  9. boto3-stubs/docs/collection.pyi +37 -0
  10. boto3-stubs/docs/docstring.pyi +18 -0
  11. boto3-stubs/docs/method.pyi +27 -0
  12. boto3-stubs/docs/resource.pyi +20 -0
  13. boto3-stubs/docs/service.pyi +17 -0
  14. boto3-stubs/docs/subresource.pyi +22 -0
  15. boto3-stubs/docs/utils.pyi +30 -0
  16. boto3-stubs/docs/waiter.pyi +33 -0
  17. boto3-stubs/dynamodb/__init__.pyi +0 -0
  18. boto3-stubs/dynamodb/conditions.pyi +136 -0
  19. boto3-stubs/dynamodb/table.pyi +39 -0
  20. boto3-stubs/dynamodb/transform.pyi +55 -0
  21. boto3-stubs/dynamodb/types.pyi +48 -0
  22. boto3-stubs/ec2/__init__.pyi +0 -0
  23. boto3-stubs/ec2/createtags.pyi +12 -0
  24. boto3-stubs/ec2/deletetags.pyi +12 -0
  25. boto3-stubs/exceptions.pyi +46 -0
  26. boto3-stubs/py.typed +0 -0
  27. boto3-stubs/resources/__init__.pyi +0 -0
  28. boto3-stubs/resources/action.pyi +53 -0
  29. boto3-stubs/resources/base.pyi +40 -0
  30. boto3-stubs/resources/collection.pyi +54 -0
  31. boto3-stubs/resources/factory.pyi +23 -0
  32. boto3-stubs/resources/model.pyi +123 -0
  33. boto3-stubs/resources/params.pyi +23 -0
  34. boto3-stubs/resources/response.pyi +50 -0
  35. boto3-stubs/s3/__init__.pyi +0 -0
  36. boto3-stubs/s3/constants.pyi +8 -0
  37. boto3-stubs/s3/inject.pyi +145 -0
  38. boto3-stubs/s3/transfer.pyi +90 -0
  39. boto3-stubs/session.pyi +80 -0
  40. boto3-stubs/utils.pyi +28 -0
  41. types_boto3_lite-1.35.71.post1.dist-info/LICENSE +21 -0
  42. types_boto3_lite-1.35.71.post1.dist-info/METADATA +2775 -0
  43. types_boto3_lite-1.35.71.post1.dist-info/RECORD +45 -0
  44. types_boto3_lite-1.35.71.post1.dist-info/WHEEL +5 -0
  45. types_boto3_lite-1.35.71.post1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,90 @@
1
+ """
2
+ Type annotations for boto3.s3.transfer module.
3
+
4
+ Copyright 2024 Vlad Emelianov
5
+ """
6
+
7
+ import logging
8
+ from types import TracebackType
9
+ from typing import Any, Callable, Mapping, TypeVar
10
+
11
+ from botocore.client import BaseClient
12
+ from botocore.config import Config
13
+ from s3transfer.manager import TransferConfig as S3TransferConfig
14
+ from s3transfer.manager import TransferManager
15
+ from s3transfer.subscribers import BaseSubscriber
16
+ from s3transfer.utils import OSUtils
17
+
18
+ _R = TypeVar("_R")
19
+
20
+ KB: int
21
+ MB: int
22
+
23
+ logger: logging.Logger = ...
24
+
25
+ def create_transfer_manager(
26
+ client: BaseClient,
27
+ config: TransferConfig,
28
+ osutil: OSUtils | None = ...,
29
+ ) -> TransferManager: ...
30
+ def has_minimum_crt_version(minimum_version: str) -> bool: ...
31
+
32
+ class TransferConfig(S3TransferConfig):
33
+ ALIAS: dict[str, str]
34
+
35
+ def __init__(
36
+ self,
37
+ multipart_threshold: int = ...,
38
+ max_concurrency: int = ...,
39
+ multipart_chunksize: int = ...,
40
+ num_download_attempts: int = ...,
41
+ max_io_queue: int = ...,
42
+ io_chunksize: int = ...,
43
+ use_threads: bool = ...,
44
+ max_bandwidth: int | None = ...,
45
+ preferred_transfer_client: str = ...,
46
+ ) -> None:
47
+ self.use_threads: bool
48
+
49
+ def __setattr__(self, name: str, value: int) -> None: ...
50
+
51
+ class S3Transfer:
52
+ ALLOWED_DOWNLOAD_ARGS: list[str]
53
+ ALLOWED_UPLOAD_ARGS: list[str]
54
+ def __init__(
55
+ self,
56
+ client: BaseClient | None = ...,
57
+ config: Config | None = ...,
58
+ osutil: OSUtils | None = ...,
59
+ manager: TransferManager | None = ...,
60
+ ) -> None: ...
61
+ def upload_file(
62
+ self,
63
+ filename: str,
64
+ bucket: str,
65
+ key: str,
66
+ callback: Callable[[int], Any] | None = ...,
67
+ extra_args: Mapping[str, Any] | None = ...,
68
+ ) -> None: ...
69
+ def download_file(
70
+ self,
71
+ bucket: str,
72
+ key: str,
73
+ filename: str,
74
+ extra_args: Mapping[str, Any] | None = ...,
75
+ callback: Callable[[int], Any] | None = ...,
76
+ ) -> None: ...
77
+ def __enter__(self: _R) -> _R: ...
78
+ def __exit__(
79
+ self,
80
+ exc_type: type[BaseException] | None,
81
+ exc_value: BaseException | None,
82
+ tb: TracebackType | None,
83
+ ) -> None: ...
84
+
85
+ class ProgressCallbackInvoker(BaseSubscriber):
86
+ def __init__(self, callback: Callable[[int], Any]) -> None: ...
87
+ # FIXME: signature incompatible with BaseSubscriber
88
+ def on_progress( # type: ignore [override]
89
+ self, bytes_transferred: int, **kwargs: Any
90
+ ) -> None: ...
@@ -0,0 +1,80 @@
1
+ """
2
+ Type annotations for boto3.session module.
3
+
4
+ Copyright 2024 Vlad Emelianov
5
+ """
6
+
7
+ from typing import Any
8
+
9
+ from boto3.exceptions import ResourceNotExistsError as ResourceNotExistsError
10
+ from boto3.exceptions import UnknownAPIVersionError as UnknownAPIVersionError
11
+ from boto3.resources.factory import ResourceFactory
12
+ from botocore.config import Config
13
+ from botocore.credentials import Credentials
14
+ from botocore.exceptions import DataNotFoundError as DataNotFoundError
15
+ from botocore.exceptions import UnknownServiceError as UnknownServiceError
16
+ from botocore.hooks import BaseEventHooks
17
+ from botocore.loaders import Loader
18
+ from botocore.session import Session as BotocoreSession
19
+
20
+ class Session:
21
+ def __init__(
22
+ self,
23
+ aws_access_key_id: str | None = ...,
24
+ aws_secret_access_key: str | None = ...,
25
+ aws_session_token: str | None = ...,
26
+ region_name: str | None = ...,
27
+ botocore_session: BotocoreSession | None = ...,
28
+ profile_name: str | None = ...,
29
+ ) -> None:
30
+ self._session: BotocoreSession
31
+ self.resource_factory: ResourceFactory
32
+ self._loader: Loader
33
+
34
+ @property
35
+ def profile_name(self) -> str: ...
36
+ @property
37
+ def region_name(self) -> str: ...
38
+ @property
39
+ def events(self) -> BaseEventHooks: ...
40
+ @property
41
+ def available_profiles(self) -> list[str]: ...
42
+ def _setup_loader(self) -> None: ...
43
+ def get_available_services(self) -> list[str]: ...
44
+ def get_available_resources(self) -> list[str]: ...
45
+ def get_available_partitions(self) -> list[str]: ...
46
+ def get_available_regions(
47
+ self,
48
+ service_name: str,
49
+ partition_name: str = ...,
50
+ allow_non_regional: bool = ...,
51
+ ) -> list[str]: ...
52
+ def get_credentials(self) -> Credentials | None: ...
53
+ def get_partition_for_region(self, region_name: str) -> str: ...
54
+ def _register_default_handlers(self) -> None: ...
55
+ def client(
56
+ self,
57
+ service_name: str,
58
+ region_name: str | None = ...,
59
+ api_version: str | None = ...,
60
+ use_ssl: bool | None = ...,
61
+ verify: bool | str | None = ...,
62
+ endpoint_url: str | None = ...,
63
+ aws_access_key_id: str | None = ...,
64
+ aws_secret_access_key: str | None = ...,
65
+ aws_session_token: str | None = ...,
66
+ config: Config | None = ...,
67
+ ) -> Any: ...
68
+ def resource(
69
+ self,
70
+ service_name: str,
71
+ region_name: str | None = ...,
72
+ api_version: str | None = ...,
73
+ use_ssl: bool | None = ...,
74
+ verify: bool | str | None = ...,
75
+ endpoint_url: str | None = ...,
76
+ aws_access_key_id: str | None = ...,
77
+ aws_secret_access_key: str | None = ...,
78
+ aws_session_token: str | None = ...,
79
+ config: Config | None = ...,
80
+ ) -> Any: ...
boto3-stubs/utils.pyi ADDED
@@ -0,0 +1,28 @@
1
+ """
2
+ Type annotations for boto3.utils module.
3
+
4
+ Copyright 2024 Vlad Emelianov
5
+ """
6
+
7
+ from typing import Any
8
+
9
+ from botocore.model import ServiceModel
10
+ from botocore.session import Session
11
+ from botocore.waiter import Waiter, WaiterModel
12
+
13
+ class ServiceContext:
14
+ def __init__(
15
+ self,
16
+ service_name: str,
17
+ service_model: ServiceModel,
18
+ service_waiter_model: WaiterModel | None,
19
+ resource_json_definitions: dict[str, Any],
20
+ ) -> None: ...
21
+
22
+ def import_module(name: str) -> Any: ...
23
+ def lazy_call(full_name: str, **kwargs: Any) -> Any: ...
24
+ def inject_attribute(class_attributes: dict[str, Any], name: str, value: Any) -> None: ...
25
+
26
+ class LazyLoadedWaiterModel:
27
+ def __init__(self, bc_session: Session, service_name: str, api_version: str) -> None: ...
28
+ def get_waiter(self, waiter_name: str) -> Waiter: ...
@@ -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.