sagemaker-core 1.0.43__py3-none-any.whl → 1.0.45__py3-none-any.whl
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 sagemaker-core might be problematic. Click here for more details.
- sagemaker_core/main/resources.py +0 -7
- sagemaker_core/tools/resources_codegen.py +12 -10
- {sagemaker_core-1.0.43.dist-info → sagemaker_core-1.0.45.dist-info}/METADATA +3 -3
- {sagemaker_core-1.0.43.dist-info → sagemaker_core-1.0.45.dist-info}/RECORD +7 -7
- {sagemaker_core-1.0.43.dist-info → sagemaker_core-1.0.45.dist-info}/WHEEL +0 -0
- {sagemaker_core-1.0.43.dist-info → sagemaker_core-1.0.45.dist-info}/licenses/LICENSE +0 -0
- {sagemaker_core-1.0.43.dist-info → sagemaker_core-1.0.45.dist-info}/top_level.txt +0 -0
sagemaker_core/main/resources.py
CHANGED
|
@@ -27087,13 +27087,6 @@ class SagemakerServicecatalogPortfolio(Base):
|
|
|
27087
27087
|
return list(response.values())[0]
|
|
27088
27088
|
|
|
27089
27089
|
|
|
27090
|
-
class Session(Base):
|
|
27091
|
-
"""
|
|
27092
|
-
Class representing resource Session
|
|
27093
|
-
|
|
27094
|
-
"""
|
|
27095
|
-
|
|
27096
|
-
|
|
27097
27090
|
class Space(Base):
|
|
27098
27091
|
"""
|
|
27099
27092
|
Class representing resource Space
|
|
@@ -339,8 +339,11 @@ class ResourcesCodeGen:
|
|
|
339
339
|
str: The formatted resource class.
|
|
340
340
|
|
|
341
341
|
"""
|
|
342
|
-
|
|
343
|
-
|
|
342
|
+
resource_class = f"class {resource_name}(Base):\n"
|
|
343
|
+
class_documentation_string = f"Class representing resource {resource_name}\n"
|
|
344
|
+
basic_class_content = resource_class + add_indent(
|
|
345
|
+
f'"""\n{class_documentation_string}\n"""\n', 4
|
|
346
|
+
)
|
|
344
347
|
|
|
345
348
|
# _get_class_attributes will return value only if the resource has get or get_all method
|
|
346
349
|
if class_attribute_info := self._get_class_attributes(resource_name, class_methods):
|
|
@@ -348,11 +351,7 @@ class ResourcesCodeGen:
|
|
|
348
351
|
class_attribute_info
|
|
349
352
|
)
|
|
350
353
|
|
|
351
|
-
|
|
352
|
-
resource_class = f"class {resource_name}(Base):\n"
|
|
353
|
-
|
|
354
|
-
class_documentation_string = f"Class representing resource {resource_name}\n\n"
|
|
355
|
-
class_documentation_string += f"Attributes:\n"
|
|
354
|
+
class_documentation_string += f"\nAttributes:\n"
|
|
356
355
|
class_documentation_string += self._get_shape_attr_documentation_string(
|
|
357
356
|
attributes_and_documentation
|
|
358
357
|
)
|
|
@@ -444,9 +443,12 @@ class ResourcesCodeGen:
|
|
|
444
443
|
else:
|
|
445
444
|
# If there's no 'get' or 'list' or 'create' method, generate a class with no attributes
|
|
446
445
|
resource_attributes = []
|
|
447
|
-
resource_class =
|
|
448
|
-
|
|
449
|
-
|
|
446
|
+
resource_class = basic_class_content
|
|
447
|
+
|
|
448
|
+
# if there are no attributes or methods including addition operations
|
|
449
|
+
# class need not be generated
|
|
450
|
+
if resource_name not in self.resource_methods:
|
|
451
|
+
return ""
|
|
450
452
|
|
|
451
453
|
if resource_name in self.resource_methods:
|
|
452
454
|
# TODO: use resource_methods for all methods
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sagemaker-core
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.45
|
|
4
4
|
Summary: An python package for sagemaker core functionalities
|
|
5
5
|
Author-email: AWS <sagemaker-interests@amazon.com>
|
|
6
6
|
Project-URL: Repository, https://github.com/aws/sagemaker-core.git
|
|
@@ -20,9 +20,9 @@ Requires-Dist: pydantic<3.0.0,>=2.0.0
|
|
|
20
20
|
Requires-Dist: PyYAML<7.0,>=6.0
|
|
21
21
|
Requires-Dist: jsonschema<5.0.0
|
|
22
22
|
Requires-Dist: platformdirs<5.0.0,>=4.0.0
|
|
23
|
-
Requires-Dist: rich<15.0.0,>=
|
|
23
|
+
Requires-Dist: rich<15.0.0,>=13.0.0
|
|
24
24
|
Requires-Dist: mock<5.0,>4.0
|
|
25
|
-
Requires-Dist: importlib-metadata
|
|
25
|
+
Requires-Dist: importlib-metadata<=9.0,>=1.4.0
|
|
26
26
|
Provides-Extra: codegen
|
|
27
27
|
Requires-Dist: black<25.0.0,>=24.3.0; extra == "codegen"
|
|
28
28
|
Requires-Dist: pandas<3.0.0,>=2.0.0; extra == "codegen"
|
|
@@ -7,7 +7,7 @@ sagemaker_core/main/config_schema.py,sha256=Wxe2gJash1rrxBomGhSYmII1LmJ3E70LIuSW
|
|
|
7
7
|
sagemaker_core/main/default_configs_helper.py,sha256=bg_tgczX_bYzNiSlalJ6TWPTgrQYsI0uZguP5TIbPiw,8324
|
|
8
8
|
sagemaker_core/main/exceptions.py,sha256=CsiM3V_Gb16grBotnu59LB6tznryPcSvAQDAOOYGc10,5563
|
|
9
9
|
sagemaker_core/main/logs.py,sha256=yfEH7uP91nbE1lefymOlBr81ziBzsDSIOF2Qyd54FJE,6241
|
|
10
|
-
sagemaker_core/main/resources.py,sha256=
|
|
10
|
+
sagemaker_core/main/resources.py,sha256=cgJw9CtRTLD561puERrrXCAWDxlDz_34maOKqSK0egU,1436778
|
|
11
11
|
sagemaker_core/main/shapes.py,sha256=NJhGHaZnGmwKT51LWLkByuFLwN6ZQYLbLtcZm-mdljY,759629
|
|
12
12
|
sagemaker_core/main/user_agent.py,sha256=BPYDAfDd70ObP-VAjl7aDHALHyGknkpRP21ktVr_LDw,2744
|
|
13
13
|
sagemaker_core/main/utils.py,sha256=Ge_KdFKWo-qoIXlXkgLbaJbfXMVdUVHTq6BbDQn48Tw,19201
|
|
@@ -23,13 +23,13 @@ sagemaker_core/tools/codegen.py,sha256=mKWVi2pWnPxyIoWUEPYjEc9Gw7D9bCOrHqa00yzIZ
|
|
|
23
23
|
sagemaker_core/tools/constants.py,sha256=OEL9n7G1DZ1YKZMtSxcYwFfZ8WQG1gm-c_gKjRtt0fI,3466
|
|
24
24
|
sagemaker_core/tools/data_extractor.py,sha256=pNfmTA0NUA96IgfLrla7a36Qjc1NljbwgZYaOhouKqQ,2113
|
|
25
25
|
sagemaker_core/tools/method.py,sha256=Ud2YeH2SPkj7xtIxBuUdRfQwCmovMUzGGkcIvzhpQeQ,805
|
|
26
|
-
sagemaker_core/tools/resources_codegen.py,sha256=
|
|
26
|
+
sagemaker_core/tools/resources_codegen.py,sha256=1JiA865AWO5kT-xBgYq0IS0K9xlmLqux2Lau2_auV8U,86414
|
|
27
27
|
sagemaker_core/tools/resources_extractor.py,sha256=hN61ehZbPnhFW-2FIVDi7NsEz4rLvGr-WoglHQGfrug,14523
|
|
28
28
|
sagemaker_core/tools/shapes_codegen.py,sha256=4lsePZpjk7M6RpJs5yar_m4z5MzwGHFrvCkdS_-R12c,12172
|
|
29
29
|
sagemaker_core/tools/shapes_extractor.py,sha256=vxVKjXD3lmjrkoKiexjUnOt8ITbFxQSeiDtx7P6Qtkw,14226
|
|
30
30
|
sagemaker_core/tools/templates.py,sha256=0lOIH3Rq2CXWkQhK6VenN_TE_v5p852s2kQyb_BeQxA,23460
|
|
31
|
-
sagemaker_core-1.0.
|
|
32
|
-
sagemaker_core-1.0.
|
|
33
|
-
sagemaker_core-1.0.
|
|
34
|
-
sagemaker_core-1.0.
|
|
35
|
-
sagemaker_core-1.0.
|
|
31
|
+
sagemaker_core-1.0.45.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
32
|
+
sagemaker_core-1.0.45.dist-info/METADATA,sha256=I_LgU9GIT_XD_n5DenhZMPU0R0Y6MzT9kO9CKay0oS0,4871
|
|
33
|
+
sagemaker_core-1.0.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
34
|
+
sagemaker_core-1.0.45.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
|
|
35
|
+
sagemaker_core-1.0.45.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|