types-boto3-lite 1.35.71__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.
- types-boto3/__init__.pyi +60 -0
- types-boto3/compat.pyi +13 -0
- types-boto3/crt.pyi +28 -0
- types-boto3/docs/__init__.pyi +9 -0
- types-boto3/docs/action.pyi +37 -0
- types-boto3/docs/attr.pyi +33 -0
- types-boto3/docs/base.pyi +19 -0
- types-boto3/docs/client.pyi +9 -0
- types-boto3/docs/collection.pyi +37 -0
- types-boto3/docs/docstring.pyi +18 -0
- types-boto3/docs/method.pyi +27 -0
- types-boto3/docs/resource.pyi +20 -0
- types-boto3/docs/service.pyi +17 -0
- types-boto3/docs/subresource.pyi +22 -0
- types-boto3/docs/utils.pyi +30 -0
- types-boto3/docs/waiter.pyi +33 -0
- types-boto3/dynamodb/__init__.pyi +0 -0
- types-boto3/dynamodb/conditions.pyi +136 -0
- types-boto3/dynamodb/table.pyi +39 -0
- types-boto3/dynamodb/transform.pyi +55 -0
- types-boto3/dynamodb/types.pyi +48 -0
- types-boto3/ec2/__init__.pyi +0 -0
- types-boto3/ec2/createtags.pyi +12 -0
- types-boto3/ec2/deletetags.pyi +12 -0
- types-boto3/exceptions.pyi +46 -0
- types-boto3/resources/__init__.pyi +0 -0
- types-boto3/resources/action.pyi +53 -0
- types-boto3/resources/base.pyi +40 -0
- types-boto3/resources/collection.pyi +54 -0
- types-boto3/resources/factory.pyi +23 -0
- types-boto3/resources/model.pyi +123 -0
- types-boto3/resources/params.pyi +23 -0
- types-boto3/resources/response.pyi +50 -0
- types-boto3/s3/__init__.pyi +0 -0
- types-boto3/s3/constants.pyi +8 -0
- types-boto3/s3/inject.pyi +145 -0
- types-boto3/s3/transfer.pyi +90 -0
- types-boto3/session.pyi +80 -0
- types-boto3/utils.pyi +28 -0
- types_boto3_lite-1.35.71.dist-info/LICENSE +21 -0
- types_boto3_lite-1.35.71.dist-info/METADATA +2775 -0
- types_boto3_lite-1.35.71.dist-info/RECORD +44 -0
- types_boto3_lite-1.35.71.dist-info/WHEEL +5 -0
- types_boto3_lite-1.35.71.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: ...
|
types-boto3/session.pyi
ADDED
@@ -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: ...
|
types-boto3/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.
|