botocore-stubs 1.37.1__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.

Files changed (80) hide show
  1. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/PKG-INFO +1 -1
  2. botocore_stubs-1.37.4/botocore-stubs/context.pyi +33 -0
  3. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/credentials.pyi +1 -1
  4. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/crt/auth.pyi +13 -7
  5. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/parsers.pyi +15 -1
  6. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/serialize.pyi +14 -0
  7. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/useragent.pyi +13 -0
  8. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore_stubs.egg-info/PKG-INFO +1 -1
  9. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore_stubs.egg-info/SOURCES.txt +1 -0
  10. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/pyproject.toml +1 -1
  11. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/LICENSE +0 -0
  12. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/MANIFEST.in +0 -0
  13. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/README.md +0 -0
  14. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/__init__.pyi +0 -0
  15. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/args.pyi +0 -0
  16. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/auth.pyi +0 -0
  17. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/awsrequest.pyi +0 -0
  18. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/client.pyi +0 -0
  19. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/compat.pyi +0 -0
  20. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/compress.pyi +0 -0
  21. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/config.pyi +0 -0
  22. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/configloader.pyi +0 -0
  23. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/configprovider.pyi +0 -0
  24. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/crt/__init__.pyi +0 -0
  25. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/discovery.pyi +0 -0
  26. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/__init__.pyi +0 -0
  27. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/bcdoc/__init__.pyi +0 -0
  28. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/bcdoc/docstringparser.pyi +0 -0
  29. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/bcdoc/restdoc.pyi +0 -0
  30. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/bcdoc/style.pyi +0 -0
  31. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/client.pyi +0 -0
  32. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/docstring.pyi +0 -0
  33. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/example.pyi +0 -0
  34. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/method.pyi +0 -0
  35. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/paginator.pyi +0 -0
  36. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/params.pyi +0 -0
  37. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/service.pyi +0 -0
  38. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/shape.pyi +0 -0
  39. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/sharedexample.pyi +0 -0
  40. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/translator.pyi +0 -0
  41. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/utils.pyi +0 -0
  42. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/docs/waiter.pyi +0 -0
  43. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/endpoint.pyi +0 -0
  44. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/endpoint_provider.pyi +0 -0
  45. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/errorfactory.pyi +0 -0
  46. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/eventstream.pyi +0 -0
  47. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/exceptions.pyi +0 -0
  48. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/handlers.pyi +0 -0
  49. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/history.pyi +0 -0
  50. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/hooks.pyi +0 -0
  51. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/httpchecksum.pyi +0 -0
  52. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/httpsession.pyi +0 -0
  53. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/loaders.pyi +0 -0
  54. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/model.pyi +0 -0
  55. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/monitoring.pyi +0 -0
  56. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/paginate.pyi +0 -0
  57. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/py.typed +0 -0
  58. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/regions.pyi +0 -0
  59. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/response.pyi +0 -0
  60. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/retries/__init__.pyi +0 -0
  61. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/retries/adaptive.pyi +0 -0
  62. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/retries/base.pyi +0 -0
  63. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/retries/bucket.pyi +0 -0
  64. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/retries/quota.pyi +0 -0
  65. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/retries/special.pyi +0 -0
  66. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/retries/standard.pyi +0 -0
  67. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/retries/throttling.pyi +0 -0
  68. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/retryhandler.pyi +0 -0
  69. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/session.pyi +0 -0
  70. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/signers.pyi +0 -0
  71. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/stub.pyi +0 -0
  72. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/tokens.pyi +0 -0
  73. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/translate.pyi +0 -0
  74. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/utils.pyi +0 -0
  75. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/validate.pyi +0 -0
  76. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore-stubs/waiter.pyi +0 -0
  77. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore_stubs.egg-info/dependency_links.txt +0 -0
  78. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore_stubs.egg-info/requires.txt +0 -0
  79. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/botocore_stubs.egg-info/top_level.txt +0 -0
  80. {botocore_stubs-1.37.1 → botocore_stubs-1.37.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: botocore-stubs
3
- Version: 1.37.1
3
+ Version: 1.37.4
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
@@ -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.4
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
@@ -12,6 +12,7 @@ botocore-stubs/compress.pyi
12
12
  botocore-stubs/config.pyi
13
13
  botocore-stubs/configloader.pyi
14
14
  botocore-stubs/configprovider.pyi
15
+ botocore-stubs/context.pyi
15
16
  botocore-stubs/credentials.pyi
16
17
  botocore-stubs/discovery.pyi
17
18
  botocore-stubs/endpoint.pyi
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "botocore-stubs"
3
- version = "1.37.1"
3
+ version = "1.37.4"
4
4
  requires-python = ">=3.8"
5
5
  description = "Type annotations and code completion for botocore"
6
6
  authors = [{ name = "Vlad Emelianov", email = "vlad.emelianov.nz@gmail.com" }]
File without changes