apache-hamilton-sdk 0.9.0.dev0__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 (77) hide show
  1. apache_hamilton_sdk-0.9.0.dev0/.gitignore +160 -0
  2. apache_hamilton_sdk-0.9.0.dev0/.pre-commit-config.yaml +28 -0
  3. apache_hamilton_sdk-0.9.0.dev0/DISCLAIMER +10 -0
  4. apache_hamilton_sdk-0.9.0.dev0/LICENSE +228 -0
  5. apache_hamilton_sdk-0.9.0.dev0/NOTICE +5 -0
  6. apache_hamilton_sdk-0.9.0.dev0/PKG-INFO +128 -0
  7. apache_hamilton_sdk-0.9.0.dev0/README.md +92 -0
  8. apache_hamilton_sdk-0.9.0.dev0/developer_setup.md +140 -0
  9. apache_hamilton_sdk-0.9.0.dev0/pyproject.toml +102 -0
  10. apache_hamilton_sdk-0.9.0.dev0/requirements-dev.txt +6 -0
  11. apache_hamilton_sdk-0.9.0.dev0/requirements-test.txt +10 -0
  12. apache_hamilton_sdk-0.9.0.dev0/requirements.txt +9 -0
  13. apache_hamilton_sdk-0.9.0.dev0/ruff.toml +6 -0
  14. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/__init__.py +18 -0
  15. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/adapters.py +685 -0
  16. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/api/__init__.py +16 -0
  17. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/api/clients.py +885 -0
  18. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/api/constants.py +19 -0
  19. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/api/projecttypes.py +33 -0
  20. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/__init__.py +16 -0
  21. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/cli.py +51 -0
  22. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/initialize.py +187 -0
  23. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/__init__.py +16 -0
  24. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/common/.env.jinja2 +3 -0
  25. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/common/README.md.jinja2 +17 -0
  26. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/common/requirements.txt.jinja2 +3 -0
  27. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/common/run.py.jinja2 +75 -0
  28. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/common/run.sh.jinja2 +23 -0
  29. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/data_processing/components/__init__.py +16 -0
  30. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/data_processing/components/_run.py +32 -0
  31. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/data_processing/components/common.py +31 -0
  32. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/data_processing/components/data_loader.py +94 -0
  33. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/data_processing/config/config.json +1 -0
  34. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/data_processing/data/order_details.csv +13 -0
  35. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/data_processing/data/orders_new.csv +13 -0
  36. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/data_processing/data/orders_old.csv +5 -0
  37. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/data_processing/template_data.json +14 -0
  38. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/hello_world/components/__init__.py +16 -0
  39. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/hello_world/components/transforms.py +64 -0
  40. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/hello_world/data/signups.csv +11 -0
  41. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/hello_world/data/spend.csv +11 -0
  42. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/hello_world/template_data.json +21 -0
  43. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/machine_learning/components/__init__.py +16 -0
  44. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/machine_learning/components/_run.py +30 -0
  45. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/machine_learning/components/feature_transforms.py +125 -0
  46. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/machine_learning/components/iris_loader.py +43 -0
  47. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/machine_learning/components/model_fitting.py +93 -0
  48. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/machine_learning/components/models.py +74 -0
  49. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/machine_learning/template_data.json +13 -0
  50. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/time_series_feature_engineering/components/__init__.py +16 -0
  51. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/time_series_feature_engineering/components/_run.py +60 -0
  52. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/time_series_feature_engineering/components/data_loader.py +28 -0
  53. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/time_series_feature_engineering/components/ftrs_autoregression.py +41 -0
  54. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/time_series_feature_engineering/components/ftrs_calendar.py +57 -0
  55. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/time_series_feature_engineering/components/ftrs_common_prep.py +43 -0
  56. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/time_series_feature_engineering/data/train_sample.csv +54781 -0
  57. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/cli/templates/time_series_feature_engineering/template_data.json +12 -0
  58. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/driver.py +878 -0
  59. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/__init__.py +16 -0
  60. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/constants.py +104 -0
  61. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/data_observation.py +247 -0
  62. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/dataframe_stats.py +117 -0
  63. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/example_tracking.py +204 -0
  64. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/ibis_stats.py +106 -0
  65. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/langchain_stats.py +66 -0
  66. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/numpy_stats.py +47 -0
  67. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/pandas_col_stats.py +266 -0
  68. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/pandas_stats.py +168 -0
  69. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/polars_col_stats.py +303 -0
  70. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/polars_stats.py +143 -0
  71. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/pydantic_stats.py +39 -0
  72. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/pyspark_stats.py +180 -0
  73. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/runs.py +294 -0
  74. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/scikit_learn_stats.py +50 -0
  75. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/sql_utils.py +39 -0
  76. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/trackingtypes.py +64 -0
  77. apache_hamilton_sdk-0.9.0.dev0/src/hamilton_sdk/tracking/utils.py +85 -0
@@ -0,0 +1,160 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ .idea/
@@ -0,0 +1,28 @@
1
+ # pre-commit hooks require a user to have installed `prek`:
2
+ # $ brew install prek
3
+ # Then install the hooks within the repo:
4
+ # $ cd /PATH/TO/REPO
5
+ # $ prek install
6
+
7
+ repos:
8
+ - repo: https://github.com/charliermarsh/ruff-pre-commit
9
+ # Ruff version.
10
+ rev: v0.15.0
11
+ hooks:
12
+ - id: ruff-check
13
+ args: [ --fix , --exit-non-zero-on-fix ]
14
+ - repo: https://github.com/ambv/black
15
+ rev: 26.1.0
16
+ hooks:
17
+ - id: black
18
+ args: [--line-length=100]
19
+ - repo: https://github.com/pre-commit/pre-commit-hooks
20
+ rev: v6.0.0
21
+ hooks:
22
+ - id: trailing-whitespace
23
+ # ensures files are either empty or end with a blank line
24
+ - id: end-of-file-fixer
25
+ # sorts requirements
26
+ - id: requirements-txt-fixer
27
+ # valid python file
28
+ - id: check-ast
@@ -0,0 +1,10 @@
1
+ Apache Hamilton (incubating) is an effort undergoing incubation at the Apache
2
+ Software Foundation (ASF), sponsored by the Apache Incubator PMC.
3
+
4
+ Incubation is required of all newly accepted projects until a further review
5
+ indicates that the infrastructure, communications, and decision making process
6
+ have stabilized in a manner consistent with other successful ASF projects.
7
+
8
+ While incubation status is not necessarily a reflection of the completeness
9
+ or stability of the code, it does indicate that the project has yet to be
10
+ fully endorsed by the ASF.
@@ -0,0 +1,228 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
203
+ -------------------------------
204
+
205
+ hamilton/experimental/databackend.py is copied from https://github.com/machow/databackend
206
+ and is licensed under the MIT License.
207
+
208
+ MIT License
209
+
210
+ Copyright (c) 2024 databackend contributors
211
+
212
+ Permission is hereby granted, free of charge, to any person obtaining a copy
213
+ of this software and associated documentation files (the "Software"), to deal
214
+ in the Software without restriction, including without limitation the rights
215
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
216
+ copies of the Software, and to permit persons to whom the Software is
217
+ furnished to do so, subject to the following conditions:
218
+
219
+ The above copyright notice and this permission notice shall be included in all
220
+ copies or substantial portions of the Software.
221
+
222
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
223
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
224
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
225
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
226
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
227
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
228
+ SOFTWARE.
@@ -0,0 +1,5 @@
1
+ Apache Hamilton (Incubating)
2
+ Copyright 2025-2026 The Apache Software Foundation
3
+
4
+ This product includes software developed at
5
+ The Apache Software Foundation (http://www.apache.org/).
@@ -0,0 +1,128 @@
1
+ Metadata-Version: 2.4
2
+ Name: apache-hamilton-sdk
3
+ Version: 0.9.0.dev0
4
+ Summary: Apache Hamilton SDK for reading and writing to the Apache Hamilton backend APIs that support the UI.
5
+ Keywords: hamilton,dagworks,observability
6
+ Author-email: Stefan Krawczyk <stefank@cs.stanford.edu>, Elijah ben Izzy <elijah@dagworks.io>
7
+ Requires-Python: >=3.10, <4
8
+ Description-Content-Type: text/markdown
9
+ License-Expression: Apache-2.0
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Natural Language :: English
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ License-File: DISCLAIMER
20
+ License-File: LICENSE
21
+ License-File: NOTICE
22
+ Requires-Dist: aiohttp
23
+ Requires-Dist: click
24
+ Requires-Dist: gitpython
25
+ Requires-Dist: jinja2
26
+ Requires-Dist: loguru
27
+ Requires-Dist: posthog
28
+ Requires-Dist: requests
29
+ Requires-Dist: apache-hamilton==1.90.0.dev0
30
+ Requires-Dist: sqlglot
31
+ Project-URL: documentation, https://hamilton.apache.org/
32
+ Project-URL: homepage, https://www.tryhamilton.dev/
33
+ Project-URL: issues, https://github.com/apache/hamilton/issues
34
+ Project-URL: source, https://github.com/apache/hamilton
35
+
36
+ <!--
37
+ Licensed to the Apache Software Foundation (ASF) under one
38
+ or more contributor license agreements. See the NOTICE file
39
+ distributed with this work for additional information
40
+ regarding copyright ownership. The ASF licenses this file
41
+ to you under the Apache License, Version 2.0 (the
42
+ "License"); you may not use this file except in compliance
43
+ with the License. You may obtain a copy of the License at
44
+
45
+ http://www.apache.org/licenses/LICENSE-2.0
46
+
47
+ Unless required by applicable law or agreed to in writing,
48
+ software distributed under the License is distributed on an
49
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
50
+ KIND, either express or implied. See the License for the
51
+ specific language governing permissions and limitations
52
+ under the License.
53
+ -->
54
+
55
+ # Apache Hamilton UI SDK: Client Code &amp; Related
56
+
57
+ > **Disclaimer**
58
+ >
59
+ > Apache Hamilton is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC.
60
+ >
61
+ > Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects.
62
+ >
63
+ > While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
64
+
65
+ Welcome to using the Apache Hamilton UI!
66
+
67
+ Here are instructions on how to get started with tracking, and managing your Apache Hamilton
68
+ DAGs with the Apache Hamilton UI.
69
+
70
+ ## Getting Started
71
+
72
+ For the latest documentation, please consult our
73
+ [Apache Hamilton documentation](https://hamilton.apache.org/) under `Apache Hamilton UI`.
74
+
75
+ For a quick overview of Apache Hamilton, we suggest [tryhamilton.dev](https://www.tryhamilton.dev/).
76
+
77
+ ## Using the HamiltonTracker
78
+
79
+ First, you'll need to install the Apache Hamilton SDK package. Assuming you're using pip, you
80
+ can do this with:
81
+
82
+ ```bash
83
+ # install the package & cli into your favorite python environment.
84
+ pip install "sf-hamilton[sdk]"
85
+
86
+ # And validate -- this should not error.
87
+ python -c "from hamilton_sdk import adapters"
88
+ ```
89
+
90
+ Next, you'll need to modify your Apache Hamilton driver. You'll only need to use one line of code to
91
+ replace your driver with ours:
92
+
93
+ ```python
94
+ from hamilton_sdk import adapters
95
+ from hamilton import driver
96
+
97
+ tracker = adapters.HamiltonTracker(
98
+ project_id=PROJECT_ID, # modify this as needed
99
+ username=YOUR_EMAIL, # modify this as needed
100
+ dag_name="my_version_of_the_dag",
101
+ tags={"environment": "DEV", "team": "MY_TEAM", "version": "X"}
102
+ )
103
+ dr = (
104
+ driver.Builder()
105
+ .with_config(your_config)
106
+ .with_modules(*your_modules)
107
+ .with_adapters(tracker)
108
+ .build()
109
+ )
110
+ # to run call .execute() or .materialize() on the driver
111
+ ```
112
+ *Project ID*: You'll need a project ID. Create a project if you don't have one, and take the ID from that.
113
+
114
+ *username*: This is the email address you used to set up the Apache Hamilton UI.
115
+
116
+ *dag_name*: for a project, the DAG name is the top level way to group DAGs.
117
+ E.g. ltv_model, us_sales, etc.
118
+
119
+ *tags*: these are optional are string key value paris. They allow you to filter and curate
120
+ various DAG runs.
121
+
122
+ Then run Apache Hamilton as normal! Each DAG run will be tracked, and you'll have access to it in the
123
+ Apache Hamilton UI. After spinning up the Apache Hamilton UI application, visit it to see your projects & DAGs.
124
+
125
+
126
+ # License
127
+ The code here is licensed under the Apache 2.0 license. See the main repository [LICENSE](../../LICENSE) for details.
128
+
@@ -0,0 +1,92 @@
1
+ <!--
2
+ Licensed to the Apache Software Foundation (ASF) under one
3
+ or more contributor license agreements. See the NOTICE file
4
+ distributed with this work for additional information
5
+ regarding copyright ownership. The ASF licenses this file
6
+ to you under the Apache License, Version 2.0 (the
7
+ "License"); you may not use this file except in compliance
8
+ with the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing,
13
+ software distributed under the License is distributed on an
14
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ KIND, either express or implied. See the License for the
16
+ specific language governing permissions and limitations
17
+ under the License.
18
+ -->
19
+
20
+ # Apache Hamilton UI SDK: Client Code &amp; Related
21
+
22
+ > **Disclaimer**
23
+ >
24
+ > Apache Hamilton is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC.
25
+ >
26
+ > Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects.
27
+ >
28
+ > While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
29
+
30
+ Welcome to using the Apache Hamilton UI!
31
+
32
+ Here are instructions on how to get started with tracking, and managing your Apache Hamilton
33
+ DAGs with the Apache Hamilton UI.
34
+
35
+ ## Getting Started
36
+
37
+ For the latest documentation, please consult our
38
+ [Apache Hamilton documentation](https://hamilton.apache.org/) under `Apache Hamilton UI`.
39
+
40
+ For a quick overview of Apache Hamilton, we suggest [tryhamilton.dev](https://www.tryhamilton.dev/).
41
+
42
+ ## Using the HamiltonTracker
43
+
44
+ First, you'll need to install the Apache Hamilton SDK package. Assuming you're using pip, you
45
+ can do this with:
46
+
47
+ ```bash
48
+ # install the package & cli into your favorite python environment.
49
+ pip install "sf-hamilton[sdk]"
50
+
51
+ # And validate -- this should not error.
52
+ python -c "from hamilton_sdk import adapters"
53
+ ```
54
+
55
+ Next, you'll need to modify your Apache Hamilton driver. You'll only need to use one line of code to
56
+ replace your driver with ours:
57
+
58
+ ```python
59
+ from hamilton_sdk import adapters
60
+ from hamilton import driver
61
+
62
+ tracker = adapters.HamiltonTracker(
63
+ project_id=PROJECT_ID, # modify this as needed
64
+ username=YOUR_EMAIL, # modify this as needed
65
+ dag_name="my_version_of_the_dag",
66
+ tags={"environment": "DEV", "team": "MY_TEAM", "version": "X"}
67
+ )
68
+ dr = (
69
+ driver.Builder()
70
+ .with_config(your_config)
71
+ .with_modules(*your_modules)
72
+ .with_adapters(tracker)
73
+ .build()
74
+ )
75
+ # to run call .execute() or .materialize() on the driver
76
+ ```
77
+ *Project ID*: You'll need a project ID. Create a project if you don't have one, and take the ID from that.
78
+
79
+ *username*: This is the email address you used to set up the Apache Hamilton UI.
80
+
81
+ *dag_name*: for a project, the DAG name is the top level way to group DAGs.
82
+ E.g. ltv_model, us_sales, etc.
83
+
84
+ *tags*: these are optional are string key value paris. They allow you to filter and curate
85
+ various DAG runs.
86
+
87
+ Then run Apache Hamilton as normal! Each DAG run will be tracked, and you'll have access to it in the
88
+ Apache Hamilton UI. After spinning up the Apache Hamilton UI application, visit it to see your projects & DAGs.
89
+
90
+
91
+ # License
92
+ The code here is licensed under the Apache 2.0 license. See the main repository [LICENSE](../../LICENSE) for details.