aws_sdk_sagemaker_runtime_http2 0.10.0__tar.gz → 0.12.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.
- aws_sdk_sagemaker_runtime_http2-0.12.0/.changes/0.11.0.json +16 -0
- aws_sdk_sagemaker_runtime_http2-0.12.0/.changes/0.12.0.json +20 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/.gitignore +3 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/CHANGELOG.md +19 -0
- aws_sdk_sagemaker_runtime_http2-0.12.0/PKG-INFO +47 -0
- aws_sdk_sagemaker_runtime_http2-0.12.0/README.md +20 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/pyproject.toml +9 -4
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/scripts/docs/generate_doc_stubs.py +48 -6
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/src/aws_sdk_sagemaker_runtime_http2/__init__.py +1 -1
- aws_sdk_sagemaker_runtime_http2-0.12.0/src/aws_sdk_sagemaker_runtime_http2/_private/schemas.py +664 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/src/aws_sdk_sagemaker_runtime_http2/client.py +78 -90
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/src/aws_sdk_sagemaker_runtime_http2/config.py +25 -13
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/src/aws_sdk_sagemaker_runtime_http2/models.py +11 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/zensical.toml +1 -1
- aws_sdk_sagemaker_runtime_http2-0.10.0/PKG-INFO +0 -39
- aws_sdk_sagemaker_runtime_http2-0.10.0/README.md +0 -14
- aws_sdk_sagemaker_runtime_http2-0.10.0/src/aws_sdk_sagemaker_runtime_http2/_private/schemas.py +0 -3786
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/.changes/0.1.0.json +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/.changes/0.10.0.json +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/.changes/0.3.0.json +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/.changes/0.4.0.json +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/.changes/0.5.0.json +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/.changes/0.6.0.json +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/.changes/0.7.0.json +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/.changes/0.8.0.json +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/.changes/0.9.0.json +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/LICENSE +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/Makefile +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/NOTICE +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/docs/README.md +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/docs/index.md +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/docs/stylesheets/extra.css +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/src/aws_sdk_sagemaker_runtime_http2/_private/__init__.py +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/src/aws_sdk_sagemaker_runtime_http2/auth.py +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/src/aws_sdk_sagemaker_runtime_http2/user_agent.py +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/tests/__init__.py +0 -0
- {aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/tests/test_restjson_protocol.py +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"changes": [
|
|
3
|
+
{
|
|
4
|
+
"type": "enhancement",
|
|
5
|
+
"description": "Re-generated with smithy-python 0.5.0"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "dependency",
|
|
9
|
+
"description": "Bump `smithy-aws-core` from `~=0.10.0` to `~=0.11.0`."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "dependency",
|
|
13
|
+
"description": "Bump `smithy-http` from `~=0.4.0` to `~=0.5.0`."
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"changes": [
|
|
3
|
+
{
|
|
4
|
+
"type": "enhancement",
|
|
5
|
+
"description": "Re-generated with smithy-python 0.6.0"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "dependency",
|
|
9
|
+
"description": "Bump `smithy-core` from `~=0.8.0` to `~=0.9.0`."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "dependency",
|
|
13
|
+
"description": "Bump `smithy-aws-core` from `~=0.11.0` to `~=0.12.0`."
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "dependency",
|
|
17
|
+
"description": "Bump `smithy-http` from `~=0.5.0` to `~=0.6.0`."
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
{aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/CHANGELOG.md
RENAMED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.12.0
|
|
4
|
+
|
|
5
|
+
### Enhancements
|
|
6
|
+
* Re-generated with smithy-python 0.6.0
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
* Bump `smithy-core` from `~=0.8.0` to `~=0.9.0`.
|
|
10
|
+
* Bump `smithy-aws-core` from `~=0.11.0` to `~=0.12.0`.
|
|
11
|
+
* Bump `smithy-http` from `~=0.5.0` to `~=0.6.0`.
|
|
12
|
+
|
|
13
|
+
## v0.11.0
|
|
14
|
+
|
|
15
|
+
### Enhancements
|
|
16
|
+
* Re-generated with smithy-python 0.5.0
|
|
17
|
+
|
|
18
|
+
### Dependencies
|
|
19
|
+
* Bump `smithy-aws-core` from `~=0.10.0` to `~=0.11.0`.
|
|
20
|
+
* Bump `smithy-http` from `~=0.4.0` to `~=0.5.0`.
|
|
21
|
+
|
|
3
22
|
## v0.10.0
|
|
4
23
|
|
|
5
24
|
### Dependencies
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: aws_sdk_sagemaker_runtime_http2
|
|
3
|
+
Version: 0.12.0
|
|
4
|
+
Summary: aws_sdk_sagemaker_runtime_http2 client
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
License-File: NOTICE
|
|
8
|
+
Keywords: aws_sdk_sagemaker_runtime_http2,smithy
|
|
9
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Intended Audience :: System Administrators
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Natural Language :: English
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Requires-Python: >=3.12
|
|
21
|
+
Requires-Dist: smithy-aws-core[eventstream,json]~=0.12.0
|
|
22
|
+
Requires-Dist: smithy-core~=0.9.0
|
|
23
|
+
Requires-Dist: smithy-http[aiohttp]~=0.6.0
|
|
24
|
+
Provides-Extra: awscrt
|
|
25
|
+
Requires-Dist: smithy-http[awscrt]~=0.6.0; extra == 'awscrt'
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# Amazon SageMaker Runtime HTTP2 Client
|
|
29
|
+
|
|
30
|
+
The `aws-sdk-sagemaker-runtime-http2` package provides a client for making
|
|
31
|
+
requests to Amazon SageMaker Runtime HTTP2.
|
|
32
|
+
|
|
33
|
+
> **Note:** This SDK is experimental and in early development. Breaking changes
|
|
34
|
+
> may occur prior to the release of version 1.0.0.
|
|
35
|
+
|
|
36
|
+
## Installation
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
python -m pip install aws-sdk-sagemaker-runtime-http2
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Documentation
|
|
43
|
+
|
|
44
|
+
- [API Reference](https://docs.aws.amazon.com/sdk-for-python/v4/reference/clients/sagemaker-runtime-http2/) -
|
|
45
|
+
the SageMaker Runtime HTTP2 client, available operations, and types.
|
|
46
|
+
- [Developer Guide](https://docs.aws.amazon.com/sdk-for-python/v4/guide/) -
|
|
47
|
+
configuration, authentication, and usage of the AWS SDK for Python v4.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Amazon SageMaker Runtime HTTP2 Client
|
|
2
|
+
|
|
3
|
+
The `aws-sdk-sagemaker-runtime-http2` package provides a client for making
|
|
4
|
+
requests to Amazon SageMaker Runtime HTTP2.
|
|
5
|
+
|
|
6
|
+
> **Note:** This SDK is experimental and in early development. Breaking changes
|
|
7
|
+
> may occur prior to the release of version 1.0.0.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
python -m pip install aws-sdk-sagemaker-runtime-http2
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
|
|
17
|
+
- [API Reference](https://docs.aws.amazon.com/sdk-for-python/v4/reference/clients/sagemaker-runtime-http2/) -
|
|
18
|
+
the SageMaker Runtime HTTP2 client, available operations, and types.
|
|
19
|
+
- [Developer Guide](https://docs.aws.amazon.com/sdk-for-python/v4/guide/) -
|
|
20
|
+
configuration, authentication, and usage of the AWS SDK for Python v4.
|
{aws_sdk_sagemaker_runtime_http2-0.10.0 → aws_sdk_sagemaker_runtime_http2-0.12.0}/pyproject.toml
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[project]
|
|
4
4
|
name = "aws_sdk_sagemaker_runtime_http2"
|
|
5
|
-
version = "0.
|
|
5
|
+
version = "0.12.0"
|
|
6
6
|
description = "aws_sdk_sagemaker_runtime_http2 client"
|
|
7
7
|
readme = "README.md"
|
|
8
8
|
requires-python = ">=3.12"
|
|
@@ -23,9 +23,14 @@ classifiers = [
|
|
|
23
23
|
]
|
|
24
24
|
|
|
25
25
|
dependencies = [
|
|
26
|
-
"smithy_aws_core[eventstream, json]~=0.
|
|
27
|
-
"smithy_core~=0.
|
|
28
|
-
"smithy_http[
|
|
26
|
+
"smithy_aws_core[eventstream, json]~=0.12.0",
|
|
27
|
+
"smithy_core~=0.9.0",
|
|
28
|
+
"smithy_http[aiohttp]~=0.6.0"
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
awscrt = [
|
|
33
|
+
"smithy_http[awscrt]~=0.6.0"
|
|
29
34
|
]
|
|
30
35
|
|
|
31
36
|
[dependency-groups]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Generate markdown API Reference stubs for AWS SDK for Python clients.
|
|
2
|
+
Generate markdown API Reference stubs for AWS SDK for Python v4 clients.
|
|
3
3
|
|
|
4
4
|
This script generates markdown stub files for a single client package.
|
|
5
5
|
It uses griffe to analyze the Python source and outputs mkdocstrings directives
|
|
@@ -40,6 +40,7 @@ logger = logging.getLogger("generate_doc_stubs")
|
|
|
40
40
|
|
|
41
41
|
ENUM_BASE_CLASSES = ("StrEnum", "IntEnum")
|
|
42
42
|
ERROR_BASE_CLASSES = ("ServiceError", "ModeledError")
|
|
43
|
+
CLIENT_METHOD_NAMES = ("close",)
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
class StreamType(Enum):
|
|
@@ -90,6 +91,14 @@ class OperationInfo:
|
|
|
90
91
|
event_output_type: str | None # For output/duplex streams
|
|
91
92
|
|
|
92
93
|
|
|
94
|
+
@dataclass
|
|
95
|
+
class ClientMethodInfo:
|
|
96
|
+
"""Information about a non-operation client method."""
|
|
97
|
+
|
|
98
|
+
name: str
|
|
99
|
+
module_path: str
|
|
100
|
+
|
|
101
|
+
|
|
93
102
|
@dataclass
|
|
94
103
|
class ModelsInfo:
|
|
95
104
|
"""Information about all modeled types."""
|
|
@@ -109,12 +118,13 @@ class ClientInfo:
|
|
|
109
118
|
package_name: str # e.g., "aws_sdk_bedrock_runtime"
|
|
110
119
|
config: TypeInfo
|
|
111
120
|
plugin: TypeInfo
|
|
121
|
+
client_methods: list[ClientMethodInfo]
|
|
112
122
|
operations: list[OperationInfo]
|
|
113
123
|
models: ModelsInfo
|
|
114
124
|
|
|
115
125
|
|
|
116
126
|
class DocStubGenerator:
|
|
117
|
-
"""Generate markdown API Reference stubs for AWS SDK for Python clients."""
|
|
127
|
+
"""Generate markdown API Reference stubs for AWS SDK for Python v4 clients."""
|
|
118
128
|
|
|
119
129
|
def __init__(self, client_dir: Path, output_dir: Path, service_name: str | None = None) -> None:
|
|
120
130
|
"""
|
|
@@ -202,11 +212,13 @@ class DocStubGenerator:
|
|
|
202
212
|
config = TypeInfo(name=config_class.name, module_path=config_class.path)
|
|
203
213
|
plugin = TypeInfo(name=plugin_alias.name, module_path=plugin_alias.path)
|
|
204
214
|
|
|
215
|
+
client_methods = self._extract_client_methods(client_class)
|
|
205
216
|
operations = self._extract_operations(client_class)
|
|
206
217
|
models = self._extract_models(models_module, operations)
|
|
207
218
|
|
|
208
219
|
logger.info(
|
|
209
|
-
f"Analyzed {client_class.name}: {len(
|
|
220
|
+
f"Analyzed {client_class.name}: {len(client_methods)} client methods, "
|
|
221
|
+
f"{len(operations)} operations, "
|
|
210
222
|
f"{len(models.structures)} structures, {len(models.errors)} errors, "
|
|
211
223
|
f"{len(models.unions)} unions, {len(models.enums)} enums"
|
|
212
224
|
)
|
|
@@ -217,6 +229,7 @@ class DocStubGenerator:
|
|
|
217
229
|
package_name=package_name,
|
|
218
230
|
config=config,
|
|
219
231
|
plugin=plugin,
|
|
232
|
+
client_methods=client_methods,
|
|
220
233
|
operations=operations,
|
|
221
234
|
models=models,
|
|
222
235
|
)
|
|
@@ -236,11 +249,24 @@ class DocStubGenerator:
|
|
|
236
249
|
"""Extract operation information from client class."""
|
|
237
250
|
operations = []
|
|
238
251
|
for op in client_class.functions.values():
|
|
239
|
-
if
|
|
252
|
+
if (
|
|
253
|
+
op.is_private
|
|
254
|
+
or op.is_init_method
|
|
255
|
+
or op.is_special
|
|
256
|
+
or op.name in CLIENT_METHOD_NAMES
|
|
257
|
+
):
|
|
240
258
|
continue
|
|
241
259
|
operations.append(self._analyze_operation(op))
|
|
242
260
|
return operations
|
|
243
261
|
|
|
262
|
+
def _extract_client_methods(self, client_class: Class) -> list[ClientMethodInfo]:
|
|
263
|
+
"""Extract public client methods that are not service operations."""
|
|
264
|
+
return [
|
|
265
|
+
ClientMethodInfo(name=method.name, module_path=method.path)
|
|
266
|
+
for method in client_class.functions.values()
|
|
267
|
+
if not method.is_private and method.name in CLIENT_METHOD_NAMES
|
|
268
|
+
]
|
|
269
|
+
|
|
244
270
|
def _analyze_operation(self, operation: Function) -> OperationInfo:
|
|
245
271
|
"""Analyze an operation method to extract information."""
|
|
246
272
|
stream_type = None
|
|
@@ -271,7 +297,8 @@ class DocStubGenerator:
|
|
|
271
297
|
event_output_type = stream_args[idx].canonical_name
|
|
272
298
|
|
|
273
299
|
output_info = TypeInfo(
|
|
274
|
-
name=stream_args[-1].canonical_name,
|
|
300
|
+
name=stream_args[-1].canonical_name,
|
|
301
|
+
module_path=stream_args[-1].canonical_path,
|
|
275
302
|
)
|
|
276
303
|
else:
|
|
277
304
|
output_info = TypeInfo(name=output_type, module_path=returns.canonical_path)
|
|
@@ -423,6 +450,14 @@ class DocStubGenerator:
|
|
|
423
450
|
lines = [
|
|
424
451
|
f"# {self.service_name}",
|
|
425
452
|
"",
|
|
453
|
+
"## Installation",
|
|
454
|
+
"",
|
|
455
|
+
f"To install the {self.service_name} client:",
|
|
456
|
+
"",
|
|
457
|
+
"```bash",
|
|
458
|
+
f"python -m pip install {client_info.package_name.replace('_', '-')}",
|
|
459
|
+
"```",
|
|
460
|
+
"",
|
|
426
461
|
"## Client",
|
|
427
462
|
"",
|
|
428
463
|
*self._mkdocs_directive(
|
|
@@ -434,6 +469,9 @@ class DocStubGenerator:
|
|
|
434
469
|
"",
|
|
435
470
|
]
|
|
436
471
|
|
|
472
|
+
for method in sorted(client_info.client_methods, key=lambda x: x.name):
|
|
473
|
+
lines.extend([*self._mkdocs_directive(method.module_path, heading_level=4), ""])
|
|
474
|
+
|
|
437
475
|
# Operations section
|
|
438
476
|
if client_info.operations:
|
|
439
477
|
lines.append("## Operations")
|
|
@@ -639,7 +677,11 @@ def main() -> int:
|
|
|
639
677
|
description="Generate API documentation stubs for AWS SDK Python client."
|
|
640
678
|
)
|
|
641
679
|
parser.add_argument(
|
|
642
|
-
"-c",
|
|
680
|
+
"-c",
|
|
681
|
+
"--client-dir",
|
|
682
|
+
type=Path,
|
|
683
|
+
required=True,
|
|
684
|
+
help="Path to the client source package",
|
|
643
685
|
)
|
|
644
686
|
parser.add_argument(
|
|
645
687
|
"-o",
|