botocore-stubs 1.37.1__py3-none-any.whl → 1.37.6__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.

Potentially problematic release.


This version of botocore-stubs might be problematic. Click here for more details.

botocore-stubs/config.pyi CHANGED
@@ -58,3 +58,7 @@ class Config:
58
58
  tcp_keepalive: bool | None = False,
59
59
  ) -> None: ...
60
60
  def merge(self: _Config, other_config: _Config) -> _Config: ...
61
+ @property
62
+ def inject_host_prefix(self) -> bool: ...
63
+ @inject_host_prefix.setter
64
+ def inject_host_prefix(self, value: bool) -> None: ...
@@ -0,0 +1,33 @@
1
+ """
2
+ Type annotations for botocore.context module.
3
+
4
+ Copyright 2025 Vlad Emelianov
5
+ """
6
+
7
+ from collections.abc import Callable, Iterator
8
+ from contextlib import contextmanager
9
+ from contextvars import ContextVar, Token
10
+ from dataclasses import dataclass
11
+ from typing import TypeVar
12
+
13
+ from typing_extensions import ParamSpec
14
+
15
+ _Param = ParamSpec("_Param")
16
+ _R = TypeVar("_R")
17
+
18
+ @dataclass
19
+ class ClientContext:
20
+ features: set[str] = ...
21
+
22
+ _context: ContextVar[ClientContext] = ...
23
+
24
+ def get_context() -> ClientContext | None:
25
+ return _context.get(None)
26
+
27
+ def set_context(ctx: ClientContext) -> Token[ClientContext]: ...
28
+ def reset_context(token: Token[ClientContext]) -> None: ...
29
+ @contextmanager
30
+ def start_as_current_context(ctx: ClientContext | None = ...) -> Iterator[None]: ...
31
+ def with_current_context(
32
+ hook: Callable[[], None] | None = ...,
33
+ ) -> Callable[[Callable[_Param, _R]], Callable[_Param, _R]]: ...
@@ -57,7 +57,7 @@ class ProfileProviderBuilder:
57
57
  self, profile_name: str, disable_env_vars: bool = ...
58
58
  ) -> list[CredentialProvider]: ...
59
59
 
60
- def get_credentials(session: Session) -> Any: ...
60
+ def get_credentials(session: Session) -> Credentials: ...
61
61
  def create_assume_role_refresher(client: BaseClient, params: Any) -> Any: ...
62
62
  def create_mfa_serial_refresher(actual_refresh: Any) -> Any: ...
63
63
 
@@ -4,7 +4,8 @@ Type annotations for botocore.crt.auth module.
4
4
  Copyright 2025 Vlad Emelianov
5
5
  """
6
6
 
7
- from awscrt.auth import AwsCredentials
7
+ from typing import Protocol
8
+
8
9
  from botocore.auth import SIGNED_HEADERS_BLACKLIST as SIGNED_HEADERS_BLACKLIST
9
10
  from botocore.auth import STREAMING_UNSIGNED_PAYLOAD_TRAILER as STREAMING_UNSIGNED_PAYLOAD_TRAILER
10
11
  from botocore.auth import UNSIGNED_PAYLOAD as UNSIGNED_PAYLOAD
@@ -17,16 +18,21 @@ from botocore.compat import urlunsplit as urlunsplit
17
18
  from botocore.exceptions import NoCredentialsError as NoCredentialsError
18
19
  from botocore.utils import percent_encode_sequence as percent_encode_sequence
19
20
 
21
+ class _Credentials(Protocol):
22
+ access_key: str
23
+ secret_key: str
24
+ token: str | None
25
+
20
26
  class CrtSigV4Auth(BaseSigner):
21
27
  REQUIRES_REGION: bool = ...
22
28
 
23
29
  def __init__(
24
30
  self,
25
- credentials: AwsCredentials,
31
+ credentials: _Credentials,
26
32
  service_name: str,
27
33
  region_name: str,
28
34
  ) -> None:
29
- self.credentials: AwsCredentials = ...
35
+ self.credentials: _Credentials = ...
30
36
 
31
37
  def add_auth(self, request: AWSRequest) -> None: ...
32
38
 
@@ -37,11 +43,11 @@ class CrtSigV4AsymAuth(BaseSigner):
37
43
 
38
44
  def __init__(
39
45
  self,
40
- credentials: AwsCredentials,
46
+ credentials: _Credentials,
41
47
  service_name: str,
42
48
  region_name: str,
43
49
  ) -> None:
44
- self.credentials: AwsCredentials = ...
50
+ self.credentials: _Credentials = ...
45
51
 
46
52
  def add_auth(self, request: AWSRequest) -> None: ...
47
53
 
@@ -52,7 +58,7 @@ class CrtSigV4AsymQueryAuth(CrtSigV4AsymAuth):
52
58
 
53
59
  def __init__(
54
60
  self,
55
- credentials: AwsCredentials,
61
+ credentials: _Credentials,
56
62
  service_name: str,
57
63
  region_name: str,
58
64
  expires: int = ...,
@@ -64,7 +70,7 @@ class CrtSigV4QueryAuth(CrtSigV4Auth):
64
70
  DEFAULT_EXPIRES: int = ...
65
71
  def __init__(
66
72
  self,
67
- credentials: AwsCredentials,
73
+ credentials: _Credentials,
68
74
  service_name: str,
69
75
  region_name: str,
70
76
  expires: int = ...,
@@ -4,13 +4,15 @@ Type annotations for botocore.parsers module.
4
4
  Copyright 2025 Vlad Emelianov
5
5
  """
6
6
 
7
+ from io import BufferedReader
7
8
  from logging import Logger
8
- from typing import Any, Callable, Mapping
9
+ from typing import IO, Any, Callable, Mapping
9
10
 
10
11
  from botocore.compat import XMLParseError as XMLParseError
11
12
  from botocore.eventstream import EventStream as EventStream
12
13
  from botocore.eventstream import NoInitialResponseError as NoInitialResponseError
13
14
  from botocore.model import Shape
15
+ from botocore.utils import CachedProperty
14
16
  from botocore.utils import is_json_value_header as is_json_value_header
15
17
  from botocore.utils import lowercase_dict as lowercase_dict
16
18
  from botocore.utils import merge_dicts as merge_dicts
@@ -48,12 +50,24 @@ class BaseXMLResponseParser(ResponseParser):
48
50
  class QueryParser(BaseXMLResponseParser): ...
49
51
  class EC2QueryParser(QueryParser): ...
50
52
  class BaseJSONParser(ResponseParser): ...
53
+
54
+ class BaseCBORParser(ResponseParser):
55
+ INDEFINITE_ITEM_ADDITIONAL_INFO: int = ...
56
+ BREAK_CODE: int = ...
57
+ @CachedProperty
58
+ def major_type_to_parsing_method_map(self) -> dict[int, Callable[[IO[bytes], int], Any]]: ...
59
+ def get_peekable_stream_from_bytes(self, bytes: bytes) -> BufferedReader: ...
60
+ def parse_data_item(self, stream: IO[bytes]) -> Any: ...
61
+
51
62
  class BaseEventStreamParser(ResponseParser): ...
52
63
  class EventStreamJSONParser(BaseEventStreamParser, BaseJSONParser): ...
53
64
  class EventStreamXMLParser(BaseEventStreamParser, BaseXMLResponseParser): ...
65
+ class EventStreamCBORParser(BaseEventStreamParser, BaseCBORParser): ...
54
66
  class JSONParser(BaseJSONParser): ...
55
67
  class BaseRestParser(ResponseParser): ...
68
+ class BaseRpcV2Parser(ResponseParser): ...
56
69
  class RestJSONParser(BaseRestParser, BaseJSONParser): ...
70
+ class RpcV2CBORParser(BaseRpcV2Parser, BaseCBORParser): ...
57
71
  class RestXMLParser(BaseRestParser, BaseXMLResponseParser): ...
58
72
 
59
73
  PROTOCOL_PARSERS: dict[str, ResponseParser]
@@ -41,6 +41,16 @@ class JSONSerializer(Serializer):
41
41
  self, parameters: Mapping[str, Any], operation_model: OperationModel
42
42
  ) -> dict[str, Any]: ...
43
43
 
44
+ class CBORSerializer(Serializer):
45
+ UNSIGNED_INT_MAJOR_TYPE: int = ...
46
+ NEGATIVE_INT_MAJOR_TYPE: int = ...
47
+ BLOB_MAJOR_TYPE: int = ...
48
+ STRING_MAJOR_TYPE: int = ...
49
+ LIST_MAJOR_TYPE: int = ...
50
+ MAP_MAJOR_TYPE: int = ...
51
+ TAG_MAJOR_TYPE: int = ...
52
+ FLOAT_AND_SIMPLE_MAJOR_TYPE: int = ...
53
+
44
54
  class BaseRestSerializer(Serializer):
45
55
  QUERY_STRING_TIMESTAMP_FORMAT: str = ...
46
56
  HEADER_TIMESTAMP_FORMAT: str = ...
@@ -49,9 +59,13 @@ class BaseRestSerializer(Serializer):
49
59
  self, parameters: Mapping[str, Any], operation_model: OperationModel
50
60
  ) -> dict[str, Any]: ...
51
61
 
62
+ class BaseRpcV2Serializer(Serializer): ...
52
63
  class RestJSONSerializer(BaseRestSerializer, JSONSerializer): ...
53
64
 
54
65
  class RestXMLSerializer(BaseRestSerializer):
55
66
  TIMESTAMP_FORMAT: str = ...
56
67
 
68
+ class RpcV2CBORSerializer(BaseRpcV2Serializer, CBORSerializer):
69
+ TIMESTAMP_FORMAT: str = ...
70
+
57
71
  SERIALIZERS: dict[str, Serializer]
@@ -4,18 +4,27 @@ Type annotations for botocore.useragent module.
4
4
  Copyright 2025 Vlad Emelianov
5
5
  """
6
6
 
7
+ import logging
7
8
  from typing import Any, NamedTuple, TypeVar
8
9
 
10
+ from botocore.awsrequest import AWSRequest
9
11
  from botocore.config import Config
10
12
 
11
13
  _R = TypeVar("_R")
12
14
 
15
+ logger: logging.Logger = ...
16
+
17
+ def register_feature_id(feature_id: str) -> None: ...
13
18
  def sanitize_user_agent_string_component(raw_str: str, allow_hash: bool) -> str: ...
14
19
 
20
+ class UserAgentComponentSizeConfig:
21
+ def __init__(self, max_size_in_bytes: int, delimiter: str) -> None: ...
22
+
15
23
  class UserAgentComponent(NamedTuple):
16
24
  prefix: str
17
25
  name: str
18
26
  value: str | None = ...
27
+ size_config: UserAgentComponentSizeConfig | None = ...
19
28
 
20
29
  def to_string(self) -> str: ...
21
30
 
@@ -44,5 +53,9 @@ class UserAgentString:
44
53
  session_user_agent_version: str,
45
54
  session_user_agent_extra: str,
46
55
  ) -> _R: ...
56
+ def set_client_features(self, features: set[str]) -> None: ...
47
57
  def with_client_config(self: _R, client_config: Config) -> _R: ...
48
58
  def to_string(self) -> str: ...
59
+ def rebuild_and_replace_user_agent_handler(
60
+ self, operation_name: str, request: AWSRequest, **kwargs: Any
61
+ ) -> None: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: botocore-stubs
3
- Version: 1.37.1
3
+ Version: 1.37.6
4
4
  Summary: Type annotations and code completion for botocore
5
5
  Author-email: Vlad Emelianov <vlad.emelianov.nz@gmail.com>
6
6
  License: MIT License
@@ -5,10 +5,11 @@ botocore-stubs/awsrequest.pyi,sha256=FK47c-6DyEde-1bS6Yw7TO5A6chLr4IJitQKtnQQSAM
5
5
  botocore-stubs/client.pyi,sha256=0gx6AVs03z0zChrqJrH5hRz1I8OvZ2WrVbDtDqhDLX4,6400
6
6
  botocore-stubs/compat.pyi,sha256=UOEfXGqOqJS0KWLtl6W0zjNDHERqZ5ECSAvxjZqOGDA,2582
7
7
  botocore-stubs/compress.pyi,sha256=UVTu6kMbNgEvkoMxQOh5Evvs02chZRWEUIRf9yiX4-8,638
8
- botocore-stubs/config.pyi,sha256=rFj078PwNbDSfGVX_4h39GzA-MSVE7L4WJ9Vn8_eKaY,2392
8
+ botocore-stubs/config.pyi,sha256=MAOD7eUcWI1OGXd4J31-3gXte2Q8KRcq9qzYUub3Bys,2542
9
9
  botocore-stubs/configloader.pyi,sha256=5sUsnqeN2TDL22KSMSCZOfzircr9xHGQxSB9-lFghDk,420
10
10
  botocore-stubs/configprovider.pyi,sha256=EBOOazu-XW8L2va5jQgtU0p4ka7WZysBOKHGYr-bVV4,4098
11
- botocore-stubs/credentials.pyi,sha256=tG_N7e9ZpeDbvluYt2CWIL21OZQxMY6Zyty3AFhToGI,12384
11
+ botocore-stubs/context.pyi,sha256=Qo3WqgcasKya9xhUbQ6D9e0nSMaLYoNzxu_DXc6YIl0,904
12
+ botocore-stubs/credentials.pyi,sha256=4OcHot3ruTBtlddLJIDo3TBHbSFyH8Fd4zUSi1wJdZk,12392
12
13
  botocore-stubs/discovery.pyi,sha256=DX-fiohqycVU0N_d7D3uj3dkrvQfMDt50-ebS_49HsY,2599
13
14
  botocore-stubs/endpoint.pyi,sha256=tNCOVKobczeE01fSxVDQGJ15IhS1BYPNycXXGu7dULE,2491
14
15
  botocore-stubs/endpoint_provider.pyi,sha256=YSY3zNAhhiG2ZJP6UmCr9lSkM1hsqmg6CUquHICcgWg,6204
@@ -24,23 +25,23 @@ botocore-stubs/loaders.pyi,sha256=Z19fMqnT3XQKZCJI2NVeqL-ZrGwfwqxT9gGS0x8bHWI,20
24
25
  botocore-stubs/model.pyi,sha256=T7D5yua2xdT3_yoAdckipQSeahKb2HHvO_yF0hCuefU,6840
25
26
  botocore-stubs/monitoring.pyi,sha256=7habxP-7VxtHG74-a9lAHQHNq6nyHClwJXhtclNmblQ,2893
26
27
  botocore-stubs/paginate.pyi,sha256=211X3_j_Q-FYXWSVyv53fkPxh8rAX1i7iYFCMRNO5TY,2287
27
- botocore-stubs/parsers.pyi,sha256=xVQgCS3VZ7fZA-aDMMYTmKEwVcPMgHr3dNJkIbUVXg8,2148
28
+ botocore-stubs/parsers.pyi,sha256=WYk3daPxhBMCrNx6xc5dCb3qyViCBtrH0ebzI9GAhyo,2773
28
29
  botocore-stubs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
30
  botocore-stubs/regions.pyi,sha256=NK4SXXHcLXHyXCxfS4hPltzczgp4r04CBX3M-Ub26Pk,3732
30
31
  botocore-stubs/response.pyi,sha256=_c3q3au_j8qS5U8IhWoUBij1GN9MTHaO5ruVFyh-aKI,1094
31
32
  botocore-stubs/retryhandler.pyi,sha256=Cs-o_YAClhO5OjjXdnFIkdSJ0e1QEj_eV3Un14E5uJg,2573
32
- botocore-stubs/serialize.pyi,sha256=sPC8LZsOIcvgkDQ4D93h338osp94nDKrgLlaCyxCUa8,1799
33
+ botocore-stubs/serialize.pyi,sha256=ztSd1imWTCbuE-yHnXnNJQj0sCMQJwoMn-C5CPwXtK4,2250
33
34
  botocore-stubs/session.pyi,sha256=45eCtM3IglBH6VNwVMgMNb2BnNC0naoh29cEJJ0Tyx0,7005
34
35
  botocore-stubs/signers.pyi,sha256=VYVOFRUgawzQMNsIgH5qS326ij4ME0gd8k2Sm83tglM,4101
35
36
  botocore-stubs/stub.pyi,sha256=Hfqwm-GVB9B5EjVN6rOF32JL853o-VgQmZAJ4u_4B4M,1864
36
37
  botocore-stubs/tokens.pyi,sha256=ZAThKjVxhzUcDWGgoFextnmIlEWSO9Y27h8XpUjHNr8,1255
37
38
  botocore-stubs/translate.pyi,sha256=H-HiVmWZZEPdD9xc49sS-QLhXoPeOGWhASwJbuxcUhU,491
38
- botocore-stubs/useragent.pyi,sha256=NqpGsyViu2EoadoyMQRnajcZ_qA8KC1hm2eXeRAx1FM,1245
39
+ botocore-stubs/useragent.pyi,sha256=jaeTQfWy9nmUERrQjXCRmRAH90WOViDdYeLCvg8JGL8,1763
39
40
  botocore-stubs/utils.pyi,sha256=3GZyq-4FAXWvg7ETJKg3AN4CiTDWjJkM9XQ24hFlFho,14274
40
41
  botocore-stubs/validate.pyi,sha256=JWCI0vMGnwGNmtu77xgqtURrydBgSVrCcMOHObDgha4,1257
41
42
  botocore-stubs/waiter.pyi,sha256=WFU70JRI9it4_n0NNvzliJsArsirimybUoW9pN1FoJo,1660
42
43
  botocore-stubs/crt/__init__.pyi,sha256=37HBtXm11YTFxQAu5exKmHiq1t0WHC3fmC2O9DgIFD0,130
43
- botocore-stubs/crt/auth.pyi,sha256=7BkjXw4vG4xMKR5svWqqT5YgcpIc9ozRxtwyExiib4A,2182
44
+ botocore-stubs/crt/auth.pyi,sha256=hiJus8X2LRWbDRHOwQWlYsbDb3UJuzNz7icwEael8DE,2253
44
45
  botocore-stubs/docs/__init__.pyi,sha256=DUxzLOOLAd7e46jbG5RB7p01IYST9BoHF-MCmpnSCL4,227
45
46
  botocore-stubs/docs/client.pyi,sha256=KFBdqtZ6omERwfBC7s4pQ5Ulx7WC5T2wGq94dikL8MY,1143
46
47
  botocore-stubs/docs/docstring.pyi,sha256=msqvDF4HEChnh3YfpYmvD4GuJ_4W6xHXZnx0F2FkL98,483
@@ -66,8 +67,8 @@ botocore-stubs/retries/quota.pyi,sha256=Z4sBLvnNBtnNE0JV_cHbhLDWGjQYdRyLR0bDG5dR
66
67
  botocore-stubs/retries/special.pyi,sha256=mEmYwXUqdWtpKoxOO0-DZ-lrc91le_WmdO8X4j_UQ1A,530
67
68
  botocore-stubs/retries/standard.pyi,sha256=lpCPzzpy-PwwnPJhHi7BdBKODVTSnv4nxTsDZPtlAS8,4451
68
69
  botocore-stubs/retries/throttling.pyi,sha256=mpd__xuiUjY4Uc8ocquxgD_D2azuXOtBs1J-XoObvwE,582
69
- botocore_stubs-1.37.1.dist-info/LICENSE,sha256=YIdUJ_cFRZScLZQFyRT_O8yCCxXFhFKmXaqgDpe3rpM,1071
70
- botocore_stubs-1.37.1.dist-info/METADATA,sha256=TGePzEnqb5sulmmm57tFRfcMSzIB19l_8nUwMVOpPOI,4657
71
- botocore_stubs-1.37.1.dist-info/WHEEL,sha256=nn6H5-ilmfVryoAQl3ZQ2l8SH5imPWFpm1A5FgEuFV4,91
72
- botocore_stubs-1.37.1.dist-info/top_level.txt,sha256=hB4vH6fIntn8CrZExgrgxRrlukQb06YRGFcOvWZ2th8,15
73
- botocore_stubs-1.37.1.dist-info/RECORD,,
70
+ botocore_stubs-1.37.6.dist-info/LICENSE,sha256=YIdUJ_cFRZScLZQFyRT_O8yCCxXFhFKmXaqgDpe3rpM,1071
71
+ botocore_stubs-1.37.6.dist-info/METADATA,sha256=IMcQtK6Xk50UyCgv4fDbS9DOfsURq6JYd3Zpz5u5VgM,4657
72
+ botocore_stubs-1.37.6.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
73
+ botocore_stubs-1.37.6.dist-info/top_level.txt,sha256=hB4vH6fIntn8CrZExgrgxRrlukQb06YRGFcOvWZ2th8,15
74
+ botocore_stubs-1.37.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.1)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5