botocore-stubs 1.36.26__tar.gz → 1.37.4__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 botocore-stubs might be problematic. Click here for more details.
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/PKG-INFO +1 -1
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/args.pyi +5 -1
- botocore_stubs-1.37.4/botocore-stubs/context.pyi +33 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/credentials.pyi +17 -4
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/crt/auth.pyi +13 -7
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/parsers.pyi +15 -1
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/serialize.pyi +14 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/session.pyi +6 -1
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/useragent.pyi +13 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore_stubs.egg-info/PKG-INFO +1 -1
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore_stubs.egg-info/SOURCES.txt +1 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/pyproject.toml +1 -1
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/LICENSE +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/MANIFEST.in +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/README.md +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/__init__.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/auth.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/awsrequest.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/client.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/compat.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/compress.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/config.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/configloader.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/configprovider.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/crt/__init__.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/discovery.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/__init__.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/bcdoc/__init__.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/bcdoc/docstringparser.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/bcdoc/restdoc.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/bcdoc/style.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/client.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/docstring.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/example.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/method.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/paginator.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/params.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/service.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/shape.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/sharedexample.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/translator.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/utils.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/waiter.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/endpoint.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/endpoint_provider.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/errorfactory.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/eventstream.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/exceptions.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/handlers.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/history.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/hooks.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/httpchecksum.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/httpsession.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/loaders.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/model.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/monitoring.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/paginate.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/py.typed +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/regions.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/response.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/retries/__init__.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/retries/adaptive.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/retries/base.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/retries/bucket.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/retries/quota.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/retries/special.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/retries/standard.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/retries/throttling.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/retryhandler.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/signers.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/stub.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/tokens.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/translate.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/utils.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/validate.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/waiter.pyi +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore_stubs.egg-info/dependency_links.txt +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore_stubs.egg-info/requires.txt +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore_stubs.egg-info/top_level.txt +0 -0
- {botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/setup.cfg +0 -0
|
@@ -5,11 +5,12 @@ Copyright 2025 Vlad Emelianov
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
from logging import Logger
|
|
8
|
-
from typing import Any, Mapping, TypedDict
|
|
8
|
+
from typing import Any, Literal, Mapping, TypedDict
|
|
9
9
|
|
|
10
10
|
from botocore.client import ClientEndpointBridge
|
|
11
11
|
from botocore.config import Config as Config
|
|
12
12
|
from botocore.configprovider import ConfigValueStore
|
|
13
|
+
from botocore.credentials import Credentials
|
|
13
14
|
from botocore.endpoint import Endpoint
|
|
14
15
|
from botocore.endpoint import EndpointCreator as EndpointCreator
|
|
15
16
|
from botocore.errorfactory import ClientExceptionsFactory
|
|
@@ -29,6 +30,7 @@ USERAGENT_APPID_MAXLEN: int = ...
|
|
|
29
30
|
VALID_REQUEST_CHECKSUM_CALCULATION_CONFIG: tuple[str, ...] = ...
|
|
30
31
|
VALID_RESPONSE_CHECKSUM_VALIDATION_CONFIG: tuple[str, ...] = ...
|
|
31
32
|
PRIORITY_ORDERED_SUPPORTED_PROTOCOLS: tuple[str, ...] = ...
|
|
33
|
+
VALID_ACCOUNT_ID_ENDPOINT_MODE_CONFIG: tuple[str, ...] = ...
|
|
32
34
|
|
|
33
35
|
class _GetClientArgsTypeDef(TypedDict):
|
|
34
36
|
serializer: BaseRestSerializer
|
|
@@ -87,4 +89,6 @@ class ClientArgsCreator:
|
|
|
87
89
|
endpoint_bridge: ClientEndpointBridge,
|
|
88
90
|
client_endpoint_url: str,
|
|
89
91
|
legacy_endpoint_url: str,
|
|
92
|
+
credentials: Credentials | None,
|
|
93
|
+
account_id_endpoint_mode: Literal["preferred", "disabled", "required"] | None,
|
|
90
94
|
) -> dict[str, Any]: ...
|
|
@@ -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]]: ...
|
|
@@ -34,9 +34,10 @@ _R = TypeVar("_R")
|
|
|
34
34
|
logger: Logger = ...
|
|
35
35
|
|
|
36
36
|
class ReadOnlyCredentials(NamedTuple):
|
|
37
|
-
access_key: str
|
|
38
|
-
secret_key: str
|
|
39
|
-
token: str
|
|
37
|
+
access_key: str | None
|
|
38
|
+
secret_key: str | None
|
|
39
|
+
token: str | None
|
|
40
|
+
account_id: str | None = ...
|
|
40
41
|
|
|
41
42
|
def create_credential_resolver(
|
|
42
43
|
session: Session,
|
|
@@ -56,7 +57,7 @@ class ProfileProviderBuilder:
|
|
|
56
57
|
self, profile_name: str, disable_env_vars: bool = ...
|
|
57
58
|
) -> list[CredentialProvider]: ...
|
|
58
59
|
|
|
59
|
-
def get_credentials(session: Session) ->
|
|
60
|
+
def get_credentials(session: Session) -> Credentials: ...
|
|
60
61
|
def create_assume_role_refresher(client: BaseClient, params: Any) -> Any: ...
|
|
61
62
|
def create_mfa_serial_refresher(actual_refresh: Any) -> Any: ...
|
|
62
63
|
|
|
@@ -67,6 +68,7 @@ class Credentials:
|
|
|
67
68
|
secret_key: str,
|
|
68
69
|
token: str | None = ...,
|
|
69
70
|
method: str | None = ...,
|
|
71
|
+
account_id: str | None = ...,
|
|
70
72
|
) -> None:
|
|
71
73
|
self.access_key: str = ...
|
|
72
74
|
self.secret_key: str = ...
|
|
@@ -74,6 +76,7 @@ class Credentials:
|
|
|
74
76
|
self.method: str = ...
|
|
75
77
|
|
|
76
78
|
def get_frozen_credentials(self) -> ReadOnlyCredentials: ...
|
|
79
|
+
def get_deferred_property(self, property_name: str) -> Callable[[], str | None]: ...
|
|
77
80
|
|
|
78
81
|
class RefreshableCredentials(Credentials):
|
|
79
82
|
method: Any = ...
|
|
@@ -88,6 +91,7 @@ class RefreshableCredentials(Credentials):
|
|
|
88
91
|
time_fetcher: Callable[[], datetime.datetime] | None = ...,
|
|
89
92
|
advisory_timeout: int | None = ...,
|
|
90
93
|
mandatory_timeout: int | None = ...,
|
|
94
|
+
account_id: str | None = ...,
|
|
91
95
|
) -> None: ...
|
|
92
96
|
@classmethod
|
|
93
97
|
def create_from_metadata(
|
|
@@ -110,6 +114,10 @@ class RefreshableCredentials(Credentials):
|
|
|
110
114
|
def token(self) -> str: ... # type: ignore [override]
|
|
111
115
|
@token.setter
|
|
112
116
|
def token(self, value: str) -> None: ...
|
|
117
|
+
@property
|
|
118
|
+
def account_id(self) -> str: ...
|
|
119
|
+
@account_id.setter
|
|
120
|
+
def account_id(self, value: str) -> None: ...
|
|
113
121
|
def refresh_needed(self, refresh_in: int | None = ...) -> bool: ...
|
|
114
122
|
def get_frozen_credentials(self) -> ReadOnlyCredentials: ...
|
|
115
123
|
|
|
@@ -178,6 +186,8 @@ class ProcessProvider(CredentialProvider):
|
|
|
178
186
|
self, profile_name: str, load_config: Callable[..., Any], popen: Callable[..., Any] = ...
|
|
179
187
|
) -> None: ...
|
|
180
188
|
def load(self) -> Credentials | None: ...
|
|
189
|
+
@property
|
|
190
|
+
def profile_config(self) -> dict[str, Any]: ...
|
|
181
191
|
|
|
182
192
|
class InstanceMetadataProvider(CredentialProvider):
|
|
183
193
|
METHOD: str = ...
|
|
@@ -192,6 +202,7 @@ class EnvProvider(CredentialProvider):
|
|
|
192
202
|
SECRET_KEY: str = ...
|
|
193
203
|
TOKENS: list[str] = ...
|
|
194
204
|
EXPIRY_TIME: str = ...
|
|
205
|
+
ACCOUNT_ID: str = ...
|
|
195
206
|
def __init__(
|
|
196
207
|
self, environ: Mapping[str, Any] | None = ..., mapping: Mapping[str, Any] | None = ...
|
|
197
208
|
) -> None:
|
|
@@ -216,6 +227,7 @@ class SharedCredentialProvider(CredentialProvider):
|
|
|
216
227
|
ACCESS_KEY: str = ...
|
|
217
228
|
SECRET_KEY: str = ...
|
|
218
229
|
TOKENS: list[str] = ...
|
|
230
|
+
ACCOUNT_ID: str = ...
|
|
219
231
|
def __init__(
|
|
220
232
|
self,
|
|
221
233
|
creds_filename: str,
|
|
@@ -230,6 +242,7 @@ class ConfigProvider(CredentialProvider):
|
|
|
230
242
|
ACCESS_KEY: str = ...
|
|
231
243
|
SECRET_KEY: str = ...
|
|
232
244
|
TOKENS: list[str] = ...
|
|
245
|
+
ACCOUNT_ID: str = ...
|
|
233
246
|
def __init__(
|
|
234
247
|
self,
|
|
235
248
|
config_filename: str,
|
|
@@ -4,7 +4,8 @@ Type annotations for botocore.crt.auth module.
|
|
|
4
4
|
Copyright 2025 Vlad Emelianov
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
from
|
|
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:
|
|
31
|
+
credentials: _Credentials,
|
|
26
32
|
service_name: str,
|
|
27
33
|
region_name: str,
|
|
28
34
|
) -> None:
|
|
29
|
-
self.credentials:
|
|
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:
|
|
46
|
+
credentials: _Credentials,
|
|
41
47
|
service_name: str,
|
|
42
48
|
region_name: str,
|
|
43
49
|
) -> None:
|
|
44
|
-
self.credentials:
|
|
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:
|
|
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:
|
|
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]
|
|
@@ -70,7 +70,11 @@ class Session:
|
|
|
70
70
|
def get_default_client_config(self) -> Config: ...
|
|
71
71
|
def set_default_client_config(self, client_config: Config) -> None: ...
|
|
72
72
|
def set_credentials(
|
|
73
|
-
self,
|
|
73
|
+
self,
|
|
74
|
+
access_key: str,
|
|
75
|
+
secret_key: str,
|
|
76
|
+
token: str | None = ...,
|
|
77
|
+
account_id: str | None = ...,
|
|
74
78
|
) -> None: ...
|
|
75
79
|
def get_credentials(self) -> Credentials: ...
|
|
76
80
|
def get_auth_token(self) -> FrozenAuthToken: ...
|
|
@@ -127,6 +131,7 @@ class Session:
|
|
|
127
131
|
aws_secret_access_key: str | None = ...,
|
|
128
132
|
aws_session_token: str | None = ...,
|
|
129
133
|
config: Config | None = ...,
|
|
134
|
+
aws_account_id: str | None = ...,
|
|
130
135
|
) -> BaseClient: ...
|
|
131
136
|
def get_available_partitions(self) -> list[str]: ...
|
|
132
137
|
def get_partition_for_region(self, region_name: str) -> str: ...
|
|
@@ -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: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore-stubs/docs/bcdoc/docstringparser.pyi
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{botocore_stubs-1.36.26 → botocore_stubs-1.37.4}/botocore_stubs.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|