types-boto3 1.37.29__py3-none-any.whl → 1.42.18__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.
boto3-stubs/compat.pyi CHANGED
@@ -5,9 +5,13 @@ Copyright 2024 Vlad Emelianov
5
5
  """
6
6
 
7
7
  import os
8
+ from typing import Any
8
9
 
9
10
  SOCKET_ERROR: type[ConnectionError]
10
11
 
11
- def filter_python_deprecation_warnings() -> None: ...
12
+ TRANSFER_CONFIG_SUPPORTS_CRT: bool = ...
12
13
 
13
14
  rename_file = os.rename
15
+
16
+ def filter_python_deprecation_warnings() -> None: ...
17
+ def is_append_mode(fileobj: Any) -> bool: ...
boto3-stubs/crt.pyi CHANGED
@@ -4,12 +4,15 @@ Type annotations for boto3.crt module.
4
4
  Copyright 2024 Vlad Emelianov
5
5
  """
6
6
 
7
+ import logging
7
8
  import threading
8
9
  from typing import Any
9
10
 
10
11
  from botocore.client import BaseClient
11
12
  from s3transfer.crt import BotocoreCRTRequestSerializer, CRTTransferManager
12
13
 
14
+ logger: logging.Logger = ...
15
+
13
16
  CRT_S3_CLIENT: CRTS3Client | None = ...
14
17
  BOTOCORE_CRT_SERIALIZER: BotocoreCRTRequestSerializer | None = ...
15
18
 
@@ -44,3 +44,4 @@ class DynamoDBNeedsConditionError(Boto3Error):
44
44
 
45
45
  class DynamoDBNeedsKeyConditionError(Boto3Error): ...
46
46
  class PythonDeprecationWarning(Warning): ...
47
+ class InvalidCrtTransferConfigError(Boto3Error): ...
@@ -6,3 +6,4 @@ Copyright 2024 Vlad Emelianov
6
6
 
7
7
  CLASSIC_TRANSFER_CLIENT: str = ...
8
8
  AUTO_RESOLVE_TRANSFER_CLIENT: str = ...
9
+ CRT_TRANSFER_CLIENT: str = ...
boto3-stubs/s3/inject.pyi CHANGED
@@ -4,6 +4,7 @@ Type annotations for boto3.s3.inject module.
4
4
  Copyright 2024 Vlad Emelianov
5
5
  """
6
6
 
7
+ import logging
7
8
  from typing import IO, Any, Callable
8
9
 
9
10
  from boto3 import utils as utils
@@ -14,6 +15,8 @@ from boto3.s3.transfer import create_transfer_manager as create_transfer_manager
14
15
  from botocore.client import BaseClient
15
16
  from botocore.exceptions import ClientError as ClientError
16
17
 
18
+ logger: logging.Logger = ...
19
+
17
20
  def inject_s3_transfer_methods(class_attributes: dict[str, Any], **kwargs: Any) -> None: ...
18
21
  def inject_bucket_methods(class_attributes: dict[str, Any], **kwargs: Any) -> None: ...
19
22
  def inject_object_methods(class_attributes: dict[str, Any], **kwargs: Any) -> None: ...
@@ -119,6 +122,7 @@ def object_upload_fileobj(
119
122
  Callback: Callable[..., Any] | None = ...,
120
123
  Config: TransferConfig | None = ...,
121
124
  ) -> None: ...
125
+ def disable_threading_if_append_mode(config: TransferConfig, fileobj: IO[Any]) -> None: ...
122
126
  def download_fileobj(
123
127
  self: Any,
124
128
  Bucket: str,
@@ -30,19 +30,20 @@ def create_transfer_manager(
30
30
  def has_minimum_crt_version(minimum_version: str) -> bool: ...
31
31
 
32
32
  class TransferConfig(S3TransferConfig):
33
- ALIAS: dict[str, str]
33
+ ALIAS: dict[str, str] = ...
34
+ DEFAULTS: dict[str, Any] = ...
34
35
 
35
36
  def __init__(
36
37
  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 = ...,
38
+ multipart_threshold: int | None = ...,
39
+ max_concurrency: int | None = ...,
40
+ multipart_chunksize: int | None = ...,
41
+ num_download_attempts: int | None = ...,
42
+ max_io_queue: int | None = ...,
43
+ io_chunksize: int | None = ...,
44
+ use_threads: bool | None = ...,
44
45
  max_bandwidth: int | None = ...,
45
- preferred_transfer_client: str = ...,
46
+ preferred_transfer_client: str | None = ...,
46
47
  ) -> None:
47
48
  self.use_threads: bool
48
49
 
@@ -51,6 +52,7 @@ class TransferConfig(S3TransferConfig):
51
52
  class S3Transfer:
52
53
  ALLOWED_DOWNLOAD_ARGS: list[str]
53
54
  ALLOWED_UPLOAD_ARGS: list[str]
55
+ ALLOWED_COPY_ARGS: list[str]
54
56
  def __init__(
55
57
  self,
56
58
  client: BaseClient | None = ...,