capo-sagemaker-runtime-http2 0.4.0__tar.gz → 0.6.0__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.
Files changed (54) hide show
  1. {capo_sagemaker_runtime_http2-0.4.0/src/capo_sagemaker_runtime_http2.egg-info → capo_sagemaker_runtime_http2-0.6.0}/PKG-INFO +2 -2
  2. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/pyproject.toml +2 -2
  3. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_auth/_sigv4.py +9 -9
  4. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_operations/amazon_sage_maker_runtime_http2/invoke_endpoint_with_bidirectional_stream.py +10 -2
  5. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_services/_pipeline.py +2 -0
  6. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_services/async_sage_maker_runtime_http2.py +12 -4
  7. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_services/sage_maker_runtime_http2.py +12 -4
  8. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0/src/capo_sagemaker_runtime_http2.egg-info}/PKG-INFO +2 -2
  9. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2.egg-info/requires.txt +1 -1
  10. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/tests/test_sigv4.py +21 -6
  11. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/LICENSE +0 -0
  12. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/README.md +0 -0
  13. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/setup.cfg +0 -0
  14. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/__init__.py +0 -0
  15. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_async.py +0 -0
  16. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_auth/_identity.py +0 -0
  17. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_auth/_providers.py +0 -0
  18. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_auth/_signers.py +0 -0
  19. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_auth/_zapros_handler.py +0 -0
  20. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_body.py +0 -0
  21. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_iter.py +0 -0
  22. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_pagination.py +0 -0
  23. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_protocol/__init__.py +0 -0
  24. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_protocol/errors.py +0 -0
  25. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_protocol/eventstream.py +0 -0
  26. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_protocol/serialize.py +0 -0
  27. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_protocol/xml.py +0 -0
  28. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_rule_engine/__init__.py +0 -0
  29. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_rule_engine/_aws_partition.py +0 -0
  30. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_rule_engine/_endpoint_rule_set.py +0 -0
  31. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_rule_engine/_endpoint_runtime.py +0 -0
  32. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/_services/_aws_config.py +0 -0
  33. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/errors/__init__.py +0 -0
  34. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/errors/_base.py +0 -0
  35. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/errors/input_validation_error.py +0 -0
  36. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/errors/internal_server_error.py +0 -0
  37. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/errors/internal_stream_failure.py +0 -0
  38. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/errors/model_error.py +0 -0
  39. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/errors/model_stream_error.py +0 -0
  40. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/errors/service_unavailable_error.py +0 -0
  41. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/py.typed +0 -0
  42. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/types/_prelude/blob.py +0 -0
  43. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/types/_prelude/timestamp.py +0 -0
  44. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/types/invoke_endpoint_with_bidirectional_stream_input.py +0 -0
  45. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/types/invoke_endpoint_with_bidirectional_stream_output.py +0 -0
  46. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/types/request_payload_part.py +0 -0
  47. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/types/request_stream_event.py +0 -0
  48. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/types/response_payload_part.py +0 -0
  49. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/types/response_stream_event.py +0 -0
  50. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2/types/sensitive_blob.py +0 -0
  51. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2.egg-info/SOURCES.txt +0 -0
  52. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2.egg-info/dependency_links.txt +0 -0
  53. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/src/capo_sagemaker_runtime_http2.egg-info/top_level.txt +0 -0
  54. {capo_sagemaker_runtime_http2-0.4.0 → capo_sagemaker_runtime_http2-0.6.0}/tests/test_body.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: capo-sagemaker-runtime-http2
3
- Version: 0.4.0
3
+ Version: 0.6.0
4
4
  Summary: Python SDK for AWS Sagemaker Runtime Http2.
5
5
  Classifier: Development Status :: 4 - Beta
6
6
  Classifier: Intended Audience :: Developers
@@ -17,7 +17,7 @@ Classifier: Typing :: Typed
17
17
  Requires-Python: >=3.10
18
18
  Description-Content-Type: text/markdown
19
19
  License-File: LICENSE
20
- Requires-Dist: zapros>=0.13.0
20
+ Requires-Dist: zapros>=0.21.0
21
21
  Provides-Extra: anyio
22
22
  Requires-Dist: anyio>=3.0; extra == "anyio"
23
23
  Provides-Extra: sso
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "capo-sagemaker-runtime-http2"
3
- version = "0.4.0"
3
+ version = "0.6.0"
4
4
  description = "Python SDK for AWS Sagemaker Runtime Http2."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -19,7 +19,7 @@ classifiers = [
19
19
  "Typing :: Typed",
20
20
  ]
21
21
  dependencies = [
22
- "zapros>=0.13.0",
22
+ "zapros>=0.21.0",
23
23
  ]
24
24
 
25
25
  [project.optional-dependencies]
@@ -17,7 +17,7 @@ import hmac
17
17
  import re
18
18
  from collections.abc import AsyncIterator, Iterator
19
19
  from typing import Any, Literal, TypedDict, cast
20
- from urllib.parse import quote, unquote
20
+ from urllib.parse import quote
21
21
 
22
22
  import zapros
23
23
  from pywhatwgurl import URLSearchParams
@@ -134,11 +134,11 @@ def _remove_dot_segments(path: str) -> str:
134
134
  def _canonical_path(path: str, *, double_encode: bool, normalize: bool) -> str:
135
135
  """Build CanonicalURI.
136
136
 
137
- Per the SigV4 spec, every segment is URI-encoded; standard services
138
- normalize dot segments and URI-encode each segment **twice**. The
139
- rules-engine ``disableNormalizePath`` / ``disableDoubleEncoding`` flags
140
- turn those steps off — S3-family services set both, so the path is
141
- signed exactly as provided.
137
+ ``path`` is the path as sent on the wire, so it is already URI-encoded
138
+ once. Standard services normalize dot segments and URI-encode each
139
+ segment a second time. The rules-engine ``disableNormalizePath`` /
140
+ ``disableDoubleEncoding`` flags turn those steps off — S3-family
141
+ services set both, so the path is signed exactly as provided.
142
142
  """
143
143
  if not path:
144
144
  return "/"
@@ -148,9 +148,9 @@ def _canonical_path(path: str, *, double_encode: bool, normalize: bool) -> str:
148
148
  path = _remove_dot_segments(path)
149
149
  if not double_encode:
150
150
  return path
151
- decoded = unquote(path)
152
- first = quote(decoded, safe="/~")
153
- return quote(first, safe="/~")
151
+ # Never decode first: that would turn a "%2F" inside a segment (an ARN in
152
+ # a path label) into a separator and leave it out of the second encoding.
153
+ return quote(path, safe="/~")
154
154
 
155
155
 
156
156
  def _canonical_query(query: str) -> str:
@@ -177,7 +177,11 @@ def build_request(
177
177
  )
178
178
 
179
179
  headers["content-type"] = "application/vnd.amazon-eventstream"
180
- signer = get_signer(options, auth_schemes=endpoint.properties.get("authSchemes"))
180
+ signer = (
181
+ None
182
+ if options.anonymous
183
+ else get_signer(options, auth_schemes=endpoint.properties.get("authSchemes"))
184
+ )
181
185
  normalized_url = zapros.URL(url)
182
186
  for k, v in params:
183
187
  normalized_url.search_params.append(k, v)
@@ -220,7 +224,11 @@ def async_build_request(
220
224
  )
221
225
 
222
226
  headers["content-type"] = "application/vnd.amazon-eventstream"
223
- signer = get_signer(options, auth_schemes=endpoint.properties.get("authSchemes"))
227
+ signer = (
228
+ None
229
+ if options.anonymous
230
+ else get_signer(options, auth_schemes=endpoint.properties.get("authSchemes"))
231
+ )
224
232
  normalized_url = zapros.URL(url)
225
233
  for k, v in params:
226
234
  normalized_url.search_params.append(k, v)
@@ -40,6 +40,7 @@ class OperationOptions:
40
40
  region: str | None = None
41
41
  retry_max_attempts: int | None = None
42
42
  credentials_provider: IdentityProvider[Credentials] | None = None
43
+ anonymous: bool | None = None
43
44
 
44
45
 
45
46
  @dataclass
@@ -51,6 +52,7 @@ class AsyncOperationOptions:
51
52
  region: str | None = None
52
53
  retry_max_attempts: int | None = None
53
54
  credentials_provider: IdentityProvider[Credentials] | None = None
55
+ anonymous: bool | None = None
54
56
 
55
57
 
56
58
  @dataclass
@@ -45,6 +45,7 @@ class AsyncSageMakerRuntimeHTTP2ClientConfig(TypedDict, total=False, closed=True
45
45
  endpoint: str | None
46
46
  region: str | None
47
47
  credentials_provider: IdentityProvider[Credentials] | None
48
+ anonymous: bool | None
48
49
 
49
50
 
50
51
  class AsyncSageMakerRuntimeHTTP2Client:
@@ -60,6 +61,7 @@ class AsyncSageMakerRuntimeHTTP2Client:
60
61
  region: The value of the ``AWS::Region`` endpoint parameter.
61
62
  credentials: AWS credentials for request signing.
62
63
  credentials_provider: Provider that resolves AWS credentials. Takes precedence over ``credentials``.
64
+ anonymous: Send requests unsigned, without resolving credentials, even for operations that require authentication.
63
65
  """
64
66
 
65
67
  def __init__(
@@ -73,10 +75,14 @@ class AsyncSageMakerRuntimeHTTP2Client:
73
75
  region: str | None = None,
74
76
  credentials: Credentials | None = None,
75
77
  credentials_provider: CredentialsProvider | None = None,
78
+ anonymous: bool | None = None,
76
79
  ):
77
- self._client = AsyncClient(http_handler).wrap_with_middleware(
78
- lambda next: AuthMiddleware(next)
79
- )
80
+ client = AsyncClient(http_handler)
81
+ # The handler the user gave us, or the default one for this environment.
82
+ # The SDK middlewares wrap it below, and the credential resolvers borrow
83
+ # it for their one-off calls.
84
+ raw_handler = client.handler
85
+ self._client = client.wrap_with_middleware(lambda next: AuthMiddleware(next))
80
86
  if credentials is not None and credentials_provider is not None:
81
87
  warnings.warn(
82
88
  "Both credentials and credentials_provider given; provider takes precedence"
@@ -88,7 +94,7 @@ class AsyncSageMakerRuntimeHTTP2Client:
88
94
  resolved_credentials_provider = StaticAwsCredentialsProvider(credentials)
89
95
  if resolved_credentials_provider is None and credentials is None:
90
96
  resolved_credentials_provider = default_aws_credentials_chain(
91
- AsyncClient(http_handler)
97
+ AsyncClient(raw_handler)
92
98
  )
93
99
  self._config = AsyncSageMakerRuntimeHTTP2ClientConfig(
94
100
  {
@@ -99,6 +105,7 @@ class AsyncSageMakerRuntimeHTTP2Client:
99
105
  "endpoint": endpoint,
100
106
  "region": region,
101
107
  "credentials_provider": resolved_credentials_provider,
108
+ "anonymous": anonymous,
102
109
  }
103
110
  )
104
111
 
@@ -127,6 +134,7 @@ class AsyncSageMakerRuntimeHTTP2Client:
127
134
  credentials_provider=overrides.get(
128
135
  "credentials_provider", self._config.get("credentials_provider")
129
136
  ),
137
+ anonymous=overrides.get("anonymous", self._config.get("anonymous")),
130
138
  )
131
139
  return interceptors_, options_
132
140
 
@@ -45,6 +45,7 @@ class SageMakerRuntimeHTTP2ClientConfig(TypedDict, total=False, closed=True):
45
45
  endpoint: str | None
46
46
  region: str | None
47
47
  credentials_provider: IdentityProvider[Credentials] | None
48
+ anonymous: bool | None
48
49
 
49
50
 
50
51
  class SageMakerRuntimeHTTP2Client:
@@ -60,6 +61,7 @@ class SageMakerRuntimeHTTP2Client:
60
61
  region: The value of the ``AWS::Region`` endpoint parameter.
61
62
  credentials: AWS credentials for request signing.
62
63
  credentials_provider: Provider that resolves AWS credentials. Takes precedence over ``credentials``.
64
+ anonymous: Send requests unsigned, without resolving credentials, even for operations that require authentication.
63
65
  """
64
66
 
65
67
  def __init__(
@@ -73,10 +75,14 @@ class SageMakerRuntimeHTTP2Client:
73
75
  region: str | None = None,
74
76
  credentials: Credentials | None = None,
75
77
  credentials_provider: CredentialsProvider | None = None,
78
+ anonymous: bool | None = None,
76
79
  ):
77
- self._client = Client(http_handler).wrap_with_middleware(
78
- lambda next: AuthMiddleware(next)
79
- )
80
+ client = Client(http_handler)
81
+ # The handler the user gave us, or the default one for this environment.
82
+ # The SDK middlewares wrap it below, and the credential resolvers borrow
83
+ # it for their one-off calls.
84
+ raw_handler = client.handler
85
+ self._client = client.wrap_with_middleware(lambda next: AuthMiddleware(next))
80
86
  if credentials is not None and credentials_provider is not None:
81
87
  warnings.warn(
82
88
  "Both credentials and credentials_provider given; provider takes precedence"
@@ -88,7 +94,7 @@ class SageMakerRuntimeHTTP2Client:
88
94
  resolved_credentials_provider = StaticAwsCredentialsProvider(credentials)
89
95
  if resolved_credentials_provider is None and credentials is None:
90
96
  resolved_credentials_provider = default_aws_credentials_chain(
91
- Client(http_handler)
97
+ Client(raw_handler)
92
98
  )
93
99
  self._config = SageMakerRuntimeHTTP2ClientConfig(
94
100
  {
@@ -99,6 +105,7 @@ class SageMakerRuntimeHTTP2Client:
99
105
  "endpoint": endpoint,
100
106
  "region": region,
101
107
  "credentials_provider": resolved_credentials_provider,
108
+ "anonymous": anonymous,
102
109
  }
103
110
  )
104
111
 
@@ -127,6 +134,7 @@ class SageMakerRuntimeHTTP2Client:
127
134
  credentials_provider=overrides.get(
128
135
  "credentials_provider", self._config.get("credentials_provider")
129
136
  ),
137
+ anonymous=overrides.get("anonymous", self._config.get("anonymous")),
130
138
  )
131
139
  return interceptors_, options_
132
140
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: capo-sagemaker-runtime-http2
3
- Version: 0.4.0
3
+ Version: 0.6.0
4
4
  Summary: Python SDK for AWS Sagemaker Runtime Http2.
5
5
  Classifier: Development Status :: 4 - Beta
6
6
  Classifier: Intended Audience :: Developers
@@ -17,7 +17,7 @@ Classifier: Typing :: Typed
17
17
  Requires-Python: >=3.10
18
18
  Description-Content-Type: text/markdown
19
19
  License-File: LICENSE
20
- Requires-Dist: zapros>=0.13.0
20
+ Requires-Dist: zapros>=0.21.0
21
21
  Provides-Extra: anyio
22
22
  Requires-Dist: anyio>=3.0; extra == "anyio"
23
23
  Provides-Extra: sso
@@ -91,13 +91,28 @@ class TestCanonicalPath:
91
91
  def test_s3_preserves_dot_segments(self):
92
92
  assert _s3_path("/a/../b/./c") == "/a/../b/./c"
93
93
 
94
- def test_non_s3_double_encodes(self):
95
- # "/foo bar" → first encode → "/foo%20bar" → second → "/foo%2520bar"
96
- assert _std_path("/foo bar") == "/foo%2520bar"
97
-
98
- def test_non_s3_already_encoded_double_encodes(self):
99
- # "/foo%20bar" gets unquoted to "/foo bar", then double-encoded.
94
+ def test_non_s3_encodes_wire_path_once_more(self):
95
+ # The path arrives URI-encoded once ("/foo bar" is sent as "/foo%20bar").
100
96
  assert _std_path("/foo%20bar") == "/foo%2520bar"
97
+ assert _std_path("/a%3Ab/caf%C3%A9~") == "/a%253Ab/caf%25C3%25A9~"
98
+
99
+ def test_non_s3_keeps_encoded_slash_inside_segment(self):
100
+ # An ARN in a path label: its "/" is sent as "%2F" and must stay part
101
+ # of the segment, not become a separator.
102
+ assert (
103
+ _std_path("/model/arn%3Aaws%3Abedrock%3A%3Afoundation-model%2Fx/converse")
104
+ == "/model/arn%253Aaws%253Abedrock%253A%253Afoundation-model%252Fx/converse"
105
+ )
106
+ assert _s3_path("/bucket/a%2Fb") == "/bucket/a%2Fb"
107
+
108
+ def test_non_s3_encodes_literal_reserved_characters_once(self):
109
+ # "@" and "$" appear literally in a few URI templates and are sent as is.
110
+ assert _std_path("/@connections/abc") == "/%40connections/abc"
111
+ assert _std_path("/things/t/jobs/$next") == "/things/t/jobs/%24next"
112
+
113
+ def test_non_s3_does_not_decode_the_wire_path(self):
114
+ assert _std_path("/a%2fb") == "/a%252fb"
115
+ assert _std_path("/a%25b") == "/a%2525b"
101
116
 
102
117
  def test_non_s3_removes_dot_segments(self):
103
118
  # Mirrors botocore's normalize_url_path: "." dropped, ".." pops,