botocore-stubs 1.38.46__tar.gz → 1.40.22__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.

Files changed (81) hide show
  1. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/PKG-INFO +1 -1
  2. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/args.pyi +8 -1
  3. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/auth.pyi +4 -0
  4. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/client.pyi +2 -1
  5. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/compat.pyi +1 -0
  6. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/credentials.pyi +1 -0
  7. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/handlers.pyi +1 -3
  8. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/parsers.pyi +1 -0
  9. botocore_stubs-1.40.22/botocore-stubs/plugin.pyi +24 -0
  10. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/tokens.pyi +6 -1
  11. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/utils.pyi +4 -0
  12. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore_stubs.egg-info/PKG-INFO +1 -1
  13. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore_stubs.egg-info/SOURCES.txt +1 -0
  14. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/pyproject.toml +1 -1
  15. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/LICENSE +0 -0
  16. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/MANIFEST.in +0 -0
  17. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/README.md +0 -0
  18. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/__init__.pyi +0 -0
  19. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/awsrequest.pyi +0 -0
  20. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/compress.pyi +0 -0
  21. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/config.pyi +0 -0
  22. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/configloader.pyi +0 -0
  23. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/configprovider.pyi +0 -0
  24. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/context.pyi +0 -0
  25. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/crt/__init__.pyi +0 -0
  26. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/crt/auth.pyi +0 -0
  27. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/discovery.pyi +0 -0
  28. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/__init__.pyi +0 -0
  29. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/bcdoc/__init__.pyi +0 -0
  30. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/bcdoc/docstringparser.pyi +0 -0
  31. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/bcdoc/restdoc.pyi +0 -0
  32. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/bcdoc/style.pyi +0 -0
  33. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/client.pyi +0 -0
  34. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/docstring.pyi +0 -0
  35. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/example.pyi +0 -0
  36. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/method.pyi +0 -0
  37. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/paginator.pyi +0 -0
  38. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/params.pyi +0 -0
  39. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/service.pyi +0 -0
  40. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/shape.pyi +0 -0
  41. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/sharedexample.pyi +0 -0
  42. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/translator.pyi +0 -0
  43. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/utils.pyi +0 -0
  44. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/docs/waiter.pyi +0 -0
  45. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/endpoint.pyi +0 -0
  46. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/endpoint_provider.pyi +0 -0
  47. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/errorfactory.pyi +0 -0
  48. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/eventstream.pyi +0 -0
  49. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/exceptions.pyi +0 -0
  50. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/history.pyi +0 -0
  51. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/hooks.pyi +0 -0
  52. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/httpchecksum.pyi +0 -0
  53. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/httpsession.pyi +0 -0
  54. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/loaders.pyi +0 -0
  55. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/model.pyi +0 -0
  56. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/monitoring.pyi +0 -0
  57. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/paginate.pyi +0 -0
  58. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/py.typed +0 -0
  59. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/regions.pyi +0 -0
  60. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/response.pyi +0 -0
  61. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/retries/__init__.pyi +0 -0
  62. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/retries/adaptive.pyi +0 -0
  63. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/retries/base.pyi +0 -0
  64. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/retries/bucket.pyi +0 -0
  65. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/retries/quota.pyi +0 -0
  66. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/retries/special.pyi +0 -0
  67. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/retries/standard.pyi +0 -0
  68. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/retries/throttling.pyi +0 -0
  69. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/retryhandler.pyi +0 -0
  70. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/serialize.pyi +0 -0
  71. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/session.pyi +0 -0
  72. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/signers.pyi +0 -0
  73. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/stub.pyi +0 -0
  74. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/translate.pyi +0 -0
  75. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/useragent.pyi +0 -0
  76. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/validate.pyi +0 -0
  77. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore-stubs/waiter.pyi +0 -0
  78. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore_stubs.egg-info/dependency_links.txt +0 -0
  79. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore_stubs.egg-info/requires.txt +0 -0
  80. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/botocore_stubs.egg-info/top_level.txt +0 -0
  81. {botocore_stubs-1.38.46 → botocore_stubs-1.40.22}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: botocore-stubs
3
- Version: 1.38.46
3
+ Version: 1.40.22
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
@@ -6,7 +6,7 @@ Copyright 2025 Vlad Emelianov
6
6
 
7
7
  from collections.abc import Mapping
8
8
  from logging import Logger
9
- from typing import Any, Literal, TypedDict
9
+ from typing import Any, Literal, TypedDict, TypeVar
10
10
 
11
11
  from botocore.client import ClientEndpointBridge
12
12
  from botocore.config import Config as Config
@@ -23,6 +23,8 @@ from botocore.serialize import BaseRestSerializer
23
23
  from botocore.signers import RequestSigner as RequestSigner
24
24
  from botocore.useragent import UserAgentString
25
25
 
26
+ _R = TypeVar("_R")
27
+
26
28
  logger: Logger = ...
27
29
 
28
30
  VALID_REGIONAL_ENDPOINTS_CONFIG: list[str] = ...
@@ -93,3 +95,8 @@ class ClientArgsCreator:
93
95
  credentials: Credentials | None,
94
96
  account_id_endpoint_mode: Literal["preferred", "disabled", "required"] | None,
95
97
  ) -> dict[str, Any]: ...
98
+
99
+ class ConfigObjectWrapper: ...
100
+
101
+ class ClientConfigString(str, ConfigObjectWrapper):
102
+ def __new__(cls: type[_R], value: Any = ...) -> _R: ...
@@ -157,6 +157,10 @@ class BearerAuth(TokenSigner):
157
157
  def add_auth(self, request: AWSRequest) -> None: ...
158
158
 
159
159
  def resolve_auth_type(auth_trait: Iterable[str]) -> str: ...
160
+ def resolve_auth_scheme_preference(
161
+ preference_list: Iterable[str], auth_options: Iterable[str]
162
+ ) -> str: ...
160
163
 
161
164
  AUTH_TYPE_MAPS: dict[str, type[BaseSigner]]
162
165
  AUTH_TYPE_TO_SIGNATURE_VERSION: dict[str, str]
166
+ AUTH_PREF_TO_SIGNATURE_VERSION: dict[str, str]
@@ -4,7 +4,7 @@ Type annotations for botocore.client module.
4
4
  Copyright 2025 Vlad Emelianov
5
5
  """
6
6
 
7
- from collections.abc import Mapping
7
+ from collections.abc import Callable, Mapping
8
8
  from logging import Logger
9
9
  from typing import Any
10
10
 
@@ -66,6 +66,7 @@ class ClientCreator:
66
66
  exceptions_factory: ClientExceptionsFactory | None = ...,
67
67
  config_store: ConfigValueStore | None = ...,
68
68
  user_agent_creator: UserAgentString | None = ...,
69
+ auth_token_resolver: Callable[[str], str] | None = ...,
69
70
  ) -> None: ...
70
71
  def create_client(
71
72
  self,
@@ -74,6 +74,7 @@ HAS_CRT: bool
74
74
  disabled: str
75
75
 
76
76
  def has_minimum_crt_version(minimum_version: tuple[int, ...]) -> bool: ...
77
+ def get_current_datetime(remove_tzinfo: bool = ...) -> datetime.datetime: ...
77
78
 
78
79
  IPV4_PAT: str
79
80
  IPV4_RE: Pattern[str]
@@ -337,6 +337,7 @@ class SSOCredentialFetcher(CachedCredentialFetcher):
337
337
  expiry_window_seconds: float | None = ...,
338
338
  token_provider: SSOTokenProvider | None = ...,
339
339
  sso_session_name: str | None = ...,
340
+ time_fetcher: Callable[[], datetime.datetime] = ...,
340
341
  ) -> None: ...
341
342
 
342
343
  class SSOProvider(CredentialProvider):
@@ -158,8 +158,6 @@ def handle_expires_header(
158
158
  **kwargs: Any,
159
159
  ) -> None: ...
160
160
  def document_expires_shape(section: DocumentStructure, event_name: str, **kwargs: Any) -> None: ...
161
- def add_query_compatibility_header(
162
- model: OperationModel, params: dict[str, Any], **kwargs: Any
163
- ) -> None: ...
161
+ def get_bearer_auth_supported_services() -> set[str]: ...
164
162
 
165
163
  BUILTIN_HANDLERS: list[tuple[Any, ...]] = ...
@@ -34,6 +34,7 @@ class ResponseParserError(Exception): ...
34
34
  class ResponseParser:
35
35
  DEFAULT_ENCODING: str = ...
36
36
  EVENT_STREAM_PARSER_CLS: type[ResponseParser] | None = ...
37
+ KNOWN_LOCATIONS: tuple[str, ...] = ...
37
38
  def __init__(
38
39
  self,
39
40
  timestamp_parser: Callable[[str], Any] | None = ...,
@@ -0,0 +1,24 @@
1
+ """
2
+ Type annotations for botocore.plugin module.
3
+
4
+ Copyright 2025 Vlad Emelianov
5
+ """
6
+
7
+ import logging
8
+ from contextvars import ContextVar
9
+ from dataclasses import dataclass
10
+ from typing import Any
11
+
12
+ from botocore.client import BaseClient
13
+
14
+ log: logging.Logger = ...
15
+
16
+ @dataclass
17
+ class PluginContext:
18
+ plugins: str | None = ...
19
+
20
+ def get_plugin_context() -> ContextVar[str | None]: ...
21
+ def set_plugin_context(ctx: Any) -> ContextVar[str | None]: ...
22
+ def reset_plugin_context(token: str | None) -> None: ...
23
+ def get_botocore_plugins() -> str | None: ...
24
+ def load_client_plugins(client: BaseClient, plugins: dict[str, str]) -> None: ...
@@ -6,7 +6,7 @@ Copyright 2025 Vlad Emelianov
6
6
 
7
7
  import datetime
8
8
  import logging
9
- from collections.abc import Iterable
9
+ from collections.abc import Iterable, Mapping
10
10
  from typing import Any, Callable, NamedTuple
11
11
 
12
12
  from botocore.session import Session
@@ -45,3 +45,8 @@ class SSOTokenProvider:
45
45
  profile_name: str | None = ...,
46
46
  ) -> None: ...
47
47
  def load_token(self) -> DeferredRefreshableToken: ...
48
+
49
+ class ScopedEnvTokenProvider:
50
+ METHOD: str = ...
51
+ def __init__(self, session: Session, environ: Mapping[str, Any] | None = ...) -> None: ...
52
+ def load_token(self, **kwargs: Any) -> FrozenAuthToken | None: ...
@@ -89,6 +89,7 @@ def set_value_from_jmespath(
89
89
  source: dict[str, Any], expression: str, value: Any, is_first: bool = ...
90
90
  ) -> None: ...
91
91
  def is_global_accesspoint(context: Any) -> bool: ...
92
+ def create_nested_client(session: Session, service_name: str, **kwargs: Any) -> BaseClient: ...
92
93
 
93
94
  class _RetriesExceededError(Exception): ...
94
95
 
@@ -349,6 +350,9 @@ class JSONFileCache:
349
350
  def __setitem__(self, cache_key: str, value: Any) -> None: ...
350
351
 
351
352
  def is_s3express_bucket(bucket: str) -> bool: ...
353
+ def get_token_from_environment(
354
+ signing_name: str, environ: Mapping[str, Any] | None = ...
355
+ ) -> str | None: ...
352
356
 
353
357
  SERVICE_NAME_ALIASES: dict[str, str] = ...
354
358
  CLIENT_NAME_TO_HYPHENIZED_SERVICE_ID_OVERRIDES: dict[str, str] = ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: botocore-stubs
3
- Version: 1.38.46
3
+ Version: 1.40.22
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
@@ -30,6 +30,7 @@ botocore-stubs/model.pyi
30
30
  botocore-stubs/monitoring.pyi
31
31
  botocore-stubs/paginate.pyi
32
32
  botocore-stubs/parsers.pyi
33
+ botocore-stubs/plugin.pyi
33
34
  botocore-stubs/py.typed
34
35
  botocore-stubs/regions.pyi
35
36
  botocore-stubs/response.pyi
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "botocore-stubs"
3
- version = "1.38.46"
3
+ version = "1.40.22"
4
4
  requires-python = ">=3.9"
5
5
  description = "Type annotations and code completion for botocore"
6
6
  authors = [{ name = "Vlad Emelianov", email = "vlad.emelianov.nz@gmail.com" }]