sagemaker-core 0.1.3__tar.gz → 1.0.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.

Potentially problematic release.


This version of sagemaker-core might be problematic. Click here for more details.

Files changed (48) hide show
  1. {sagemaker_core-0.1.3/src/sagemaker_core.egg-info → sagemaker_core-1.0.0}/PKG-INFO +6 -4
  2. sagemaker_core-1.0.0/README.rst +50 -0
  3. sagemaker_core-1.0.0/VERSION +1 -0
  4. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/pyproject.toml +6 -1
  5. sagemaker_core-1.0.0/src/sagemaker_core/__init__.py +4 -0
  6. sagemaker_core-1.0.0/src/sagemaker_core/helper/session_helper.py +769 -0
  7. {sagemaker_core-0.1.3/src/sagemaker_core → sagemaker_core-1.0.0/src/sagemaker_core/main}/code_injection/codec.py +2 -2
  8. {sagemaker_core-0.1.3/src/sagemaker_core → sagemaker_core-1.0.0/src/sagemaker_core/main}/code_injection/constants.py +10 -0
  9. {sagemaker_core-0.1.3/src/sagemaker_core → sagemaker_core-1.0.0/src/sagemaker_core/main}/code_injection/shape_dag.py +48 -0
  10. {sagemaker_core-0.1.3/src/sagemaker_core/generated → sagemaker_core-1.0.0/src/sagemaker_core/main}/config_schema.py +47 -0
  11. {sagemaker_core-0.1.3/src/sagemaker_core/generated → sagemaker_core-1.0.0/src/sagemaker_core/main}/intelligent_defaults_helper.py +8 -8
  12. {sagemaker_core-0.1.3/src/sagemaker_core/generated → sagemaker_core-1.0.0/src/sagemaker_core/main}/resources.py +2716 -1284
  13. sagemaker_core-1.0.0/src/sagemaker_core/main/shapes.py +11650 -0
  14. sagemaker_core-1.0.0/src/sagemaker_core/main/user_agent.py +77 -0
  15. {sagemaker_core-0.1.3/src/sagemaker_core/generated → sagemaker_core-1.0.0/src/sagemaker_core/main}/utils.py +246 -10
  16. sagemaker_core-1.0.0/src/sagemaker_core/resources/__init__.py +1 -0
  17. sagemaker_core-1.0.0/src/sagemaker_core/shapes/__init__.py +1 -0
  18. sagemaker_core-1.0.0/src/sagemaker_core/tools/__init__.py +1 -0
  19. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core/tools/codegen.py +1 -2
  20. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core/tools/constants.py +3 -8
  21. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core/tools/method.py +1 -1
  22. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core/tools/resources_codegen.py +30 -28
  23. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core/tools/resources_extractor.py +4 -8
  24. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core/tools/shapes_codegen.py +16 -10
  25. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core/tools/shapes_extractor.py +1 -1
  26. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core/tools/templates.py +109 -122
  27. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0/src/sagemaker_core.egg-info}/PKG-INFO +6 -4
  28. sagemaker_core-1.0.0/src/sagemaker_core.egg-info/SOURCES.txt +40 -0
  29. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core.egg-info/requires.txt +3 -0
  30. sagemaker_core-0.1.3/README.md +0 -2
  31. sagemaker_core-0.1.3/VERSION +0 -1
  32. sagemaker_core-0.1.3/src/sagemaker_core/generated/shapes.py +0 -11584
  33. sagemaker_core-0.1.3/src/sagemaker_core/tools/__init__.py +0 -1
  34. sagemaker_core-0.1.3/src/sagemaker_core/util/__init__.py +0 -0
  35. sagemaker_core-0.1.3/src/sagemaker_core/util/util.py +0 -81
  36. sagemaker_core-0.1.3/src/sagemaker_core.egg-info/SOURCES.txt +0 -37
  37. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/LICENSE +0 -0
  38. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/MANIFEST.in +0 -0
  39. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/setup.cfg +0 -0
  40. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core/_version.py +0 -0
  41. {sagemaker_core-0.1.3/src/sagemaker_core → sagemaker_core-1.0.0/src/sagemaker_core/helper}/__init__.py +0 -0
  42. {sagemaker_core-0.1.3/src/sagemaker_core/code_injection → sagemaker_core-1.0.0/src/sagemaker_core/main}/__init__.py +0 -0
  43. {sagemaker_core-0.1.3/src/sagemaker_core/generated → sagemaker_core-1.0.0/src/sagemaker_core/main/code_injection}/__init__.py +0 -0
  44. {sagemaker_core-0.1.3/src/sagemaker_core → sagemaker_core-1.0.0/src/sagemaker_core/main}/code_injection/base.py +0 -0
  45. {sagemaker_core-0.1.3/src/sagemaker_core/generated → sagemaker_core-1.0.0/src/sagemaker_core/main}/exceptions.py +0 -0
  46. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core/tools/data_extractor.py +0 -0
  47. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core.egg-info/dependency_links.txt +0 -0
  48. {sagemaker_core-0.1.3 → sagemaker_core-1.0.0}/src/sagemaker_core.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sagemaker-core
3
- Version: 0.1.3
3
+ Version: 1.0.0
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
@@ -10,6 +10,8 @@ Classifier: License :: OSI Approved :: Apache Software License
10
10
  Classifier: Programming Language :: Python :: 3.8
11
11
  Classifier: Programming Language :: Python :: 3.9
12
12
  Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
13
15
  Requires-Python: >=3.8
14
16
  Description-Content-Type: text/markdown
15
17
  License-File: LICENSE
@@ -18,11 +20,11 @@ Requires-Dist: pydantic<3.0.0,>=2.7.0
18
20
  Requires-Dist: PyYAML<7.0,>=6.0
19
21
  Requires-Dist: jsonschema<5.0.0
20
22
  Requires-Dist: platformdirs<5.0.0,>=4.0.0
23
+ Requires-Dist: rich<14.0.0,>=13.0.0
24
+ Requires-Dist: mock<5.0,>4.0
25
+ Requires-Dist: importlib-metadata<7.0,>=1.4.0
21
26
  Provides-Extra: codegen
22
27
  Requires-Dist: black<25.0.0,>=24.3.0; extra == "codegen"
23
28
  Requires-Dist: pandas<3.0.0,>=2.0.0; extra == "codegen"
24
29
  Requires-Dist: pytest<9.0.0,>=8.0.0; extra == "codegen"
25
30
  Requires-Dist: pylint<4.0.0,>=3.0.0; extra == "codegen"
26
-
27
- # sagemaker-code-gen
28
- Repo for code gen
@@ -0,0 +1,50 @@
1
+ .. image:: https://github.com/aws/sagemaker-python-sdk/raw/master/branding/icon/sagemaker-banner.png
2
+ :height: 100px
3
+ :alt: SageMaker
4
+
5
+ ====================
6
+ SageMaker Core
7
+ ====================
8
+
9
+ .. image:: https://img.shields.io/pypi/v/sagemaker-core.svg
10
+ :target: https://pypi.python.org/pypi/sagemaker-core
11
+ :alt: Latest Version
12
+
13
+ .. image:: https://img.shields.io/pypi/pyversions/sagemaker-core.svg
14
+ :target: https://pypi.python.org/pypi/sagemaker-core
15
+ :alt: Supported Python Versions
16
+
17
+
18
+
19
+ Introduction
20
+ ------------
21
+
22
+ Welcome to the sagemaker-core Python SDK, an SDK designed to provide an object-oriented interface for interacting with Amazon SageMaker resources. It offers full parity with SageMaker APIs, allowing developers to leverage all SageMaker capabilities directly through the SDK. sagemaker-core introduces features such as dedicated resource classes, resource chaining, auto code completion, comprehensive documentation and type hints to enhance the developer experience as well as productivity.
23
+
24
+
25
+ Key Features
26
+ ------------
27
+
28
+ * **Object-Oriented Interface**: Provides a structured way to interact with SageMaker resources, making it easier to manage them using familiar object-oriented programming techniques.
29
+ * **Resource Chaining**: Allows seamless connection of SageMaker resources by passing outputs as inputs between them, simplifying workflows and reducing the complexity of parameter management.
30
+ * **Full Parity with SageMaker APIs**: Ensures access to all SageMaker capabilities through the SDK, providing a comprehensive toolset for building and deploying machine learning models.
31
+ * **Abstraction of Low-Level Details**: Automatically handles resource state transitions and polling logic, freeing developers from managing these intricacies and allowing them to focus on higher-level tasks.
32
+ * **Auto Code Completion**: Enhances the developer experience by offering real-time suggestions and completions in popular IDEs, reducing syntax errors and speeding up the coding process.
33
+ * **Comprehensive Documentation and Type Hints**: Provides detailed guidance and type hints to help developers understand functionalities, write code faster, and reduce errors without complex API navigation.
34
+ * **Incorporation of Intelligent Defaults**: Integrates the previous SageMaker SDK feature of intelligent defaults, allowing developers to set default values for parameters like IAM roles and VPC configurations. This streamlines the setup process, enabling developers to focus on customizations specific to their use case.
35
+
36
+
37
+ Benefits
38
+ --------
39
+
40
+ * **Simplified Development**: By abstracting low-level details and providing intelligent defaults, developers can focus on building and deploying machine learning models without getting bogged down by repetitive tasks.
41
+ * **Increased Productivity**: The SDK's features, such as auto code completion and type hints, help developers write code faster and with fewer errors.
42
+ * **Enhanced Readability**: Resource chaining and dedicated resource classes result in more readable and maintainable code.
43
+
44
+
45
+ Docs and Examples
46
+ -----------------
47
+
48
+ For examples and walkthroughs, see the `SageMaker Core Examples <https://github.com/aws/amazon-sagemaker-examples/tree/default/sagemaker-core>`_.
49
+
50
+ For detailed documentation, including the API reference, see `Read the Docs <https://sagemaker-core.readthedocs.io>`_.
@@ -0,0 +1 @@
1
+ 1.0.0
@@ -16,7 +16,10 @@ dependencies = [
16
16
  "pydantic>=2.7.0,<3.0.0",
17
17
  "PyYAML>=6.0, <7.0",
18
18
  "jsonschema<5.0.0",
19
- "platformdirs>=4.0.0, <5.0.0"
19
+ "platformdirs>=4.0.0, <5.0.0",
20
+ "rich>=13.0.0, <14.0.0",
21
+ "mock>4.0, <5.0",
22
+ "importlib-metadata<7.0,>=1.4.0",
20
23
  ]
21
24
  requires-python = ">=3.8"
22
25
  classifiers = [
@@ -26,6 +29,8 @@ classifiers = [
26
29
  "Programming Language :: Python :: 3.8",
27
30
  "Programming Language :: Python :: 3.9",
28
31
  "Programming Language :: Python :: 3.10",
32
+ "Programming Language :: Python :: 3.11",
33
+ "Programming Language :: Python :: 3.12",
29
34
  ]
30
35
 
31
36
  [project.optional-dependencies]
@@ -0,0 +1,4 @@
1
+ from sagemaker_core.main.utils import enable_textual_rich_console_and_traceback
2
+
3
+
4
+ enable_textual_rich_console_and_traceback()