apache-hamilton-contrib 0.1.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.
- apache_hamilton_contrib-0.1.0.dev0/DISCLAIMER +10 -0
- apache_hamilton_contrib-0.1.0.dev0/LICENSE +228 -0
- apache_hamilton_contrib-0.1.0.dev0/NOTICE +35 -0
- apache_hamilton_contrib-0.1.0.dev0/PKG-INFO +244 -0
- apache_hamilton_contrib-0.1.0.dev0/README.md +211 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/__init__.py +39 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/__init__.py +16 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/author.md +27 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/conversational_rag/README.md +127 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/conversational_rag/__init__.py +178 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/conversational_rag/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/conversational_rag/langchain.py +87 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/conversational_rag/requirements.txt +4 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/conversational_rag/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/conversational_rag/valid_configs.jsonl +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/faiss_rag/README.md +99 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/faiss_rag/__init__.py +122 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/faiss_rag/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/faiss_rag/requirements.txt +4 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/faiss_rag/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/faiss_rag/valid_configs.jsonl +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/simple_eval_grader/README.md +262 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/simple_eval_grader/__init__.py +373 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/simple_eval_grader/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/simple_eval_grader/requirements.txt +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/simple_eval_grader/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/simple_eval_grader/test.py +150 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/simple_eval_grader/valid_configs.jsonl +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/sphinx_doc_chunking/README.md +69 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/sphinx_doc_chunking/__init__.py +193 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/sphinx_doc_chunking/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/sphinx_doc_chunking/requirements.txt +6 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/sphinx_doc_chunking/tags.json +10 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/sphinx_doc_chunking/test.ipynb +201 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/sphinx_doc_chunking/valid_configs.jsonl +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/text_summarization/README.md +40 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/text_summarization/__init__.py +211 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/text_summarization/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/text_summarization/requirements.txt +5 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/text_summarization/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/text_summarization/test.ipynb +191 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/text_summarization/valid_configs.jsonl +3 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/translate_to_hamilton/README.md +71 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/translate_to_hamilton/__init__.py +346 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/translate_to_hamilton/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/translate_to_hamilton/requirements.txt +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/translate_to_hamilton/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/translate_to_hamilton/test.ipynb +173 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/translate_to_hamilton/test.py +59 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/dagworks/translate_to_hamilton/valid_configs.jsonl +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/__init__.py +16 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/__init__.py +16 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/author.md +33 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/caption_images/README.md +68 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/caption_images/__init__.py +199 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/caption_images/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/caption_images/requirements.txt +3 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/caption_images/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/caption_images/valid_configs.jsonl +2 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/convert_images_s3/README.md +36 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/convert_images_s3/__init__.py +140 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/convert_images_s3/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/convert_images_s3/requirements.txt +2 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/convert_images_s3/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/convert_images_s3/valid_configs.jsonl +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/generate_images/README.md +34 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/generate_images/__init__.py +66 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/generate_images/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/generate_images/generate_images.ipynb +24 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/generate_images/requirements.txt +2 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/generate_images/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/generate_images/valid_configs.jsonl +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/parallel_load_dataframes_s3/README.md +40 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/parallel_load_dataframes_s3/__init__.py +146 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/parallel_load_dataframes_s3/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/parallel_load_dataframes_s3/requirements.txt +3 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/parallel_load_dataframes_s3/tags.json +11 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/elijahbenizzy/parallel_load_dataframes_s3/valid_configs.jsonl +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/example_dataflow_template/__init__.py +16 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/example_dataflow_template/author.md +32 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/example_dataflow_template/dataflow_template/README.md +28 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/example_dataflow_template/dataflow_template/__init__.py +54 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/example_dataflow_template/dataflow_template/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/example_dataflow_template/dataflow_template/requirements.txt +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/example_dataflow_template/dataflow_template/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/example_dataflow_template/dataflow_template/valid_configs.jsonl +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/__init__.py +16 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/air_quality_analysis/README.md +47 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/air_quality_analysis/__init__.py +293 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/air_quality_analysis/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/air_quality_analysis/requirements.txt +3 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/air_quality_analysis/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/air_quality_analysis/valid_configs.jsonl +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/author.md +29 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/customize_embeddings/README.md +99 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/customize_embeddings/__init__.py +752 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/customize_embeddings/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/customize_embeddings/notebook.ipynb +10554 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/customize_embeddings/requirements.txt +10 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/customize_embeddings/tags.json +8 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/customize_embeddings/valid_configs.jsonl +3 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/fine_tuning/Dockerfile +40 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/fine_tuning/README.md +153 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/fine_tuning/__init__.py +719 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/fine_tuning/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/fine_tuning/requirements.txt +13 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/fine_tuning/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/fine_tuning/valid_configs.jsonl +2 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/hello_world/README.md +33 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/hello_world/__init__.py +83 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/hello_world/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/hello_world/requirements.txt +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/hello_world/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/skrawcz/hello_world/valid_configs.jsonl +2 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/__init__.py +16 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/author.md +28 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/lancedb_vdb/README.md +36 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/lancedb_vdb/__init__.py +199 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/lancedb_vdb/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/lancedb_vdb/requirements.txt +4 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/lancedb_vdb/run.ipynb +549 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/lancedb_vdb/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/lancedb_vdb/valid_configs.jsonl +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/llm_generate_code/README.md +56 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/llm_generate_code/__init__.py +144 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/llm_generate_code/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/llm_generate_code/requirements.txt +1 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/llm_generate_code/tags.json +5 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/llm_generate_code/valid_configs.jsonl +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_mlforecast/README.md +45 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_mlforecast/__init__.py +264 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_mlforecast/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_mlforecast/requirements.txt +4 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_mlforecast/run.ipynb +646 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_mlforecast/tags.json +5 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_mlforecast/valid_configs.jsonl +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_statsforecast/README.md +43 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_statsforecast/__init__.py +200 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_statsforecast/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_statsforecast/requirements.txt +5 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_statsforecast/run.ipynb +591 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_statsforecast/tags.json +5 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/nixtla_statsforecast/valid_configs.jsonl +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/text_summarization/README.md +36 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/text_summarization/__init__.py +209 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/text_summarization/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/text_summarization/requirements.txt +5 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/text_summarization/tags.json +8 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/text_summarization/valid_configs.jsonl +3 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/webscraper/README.md +38 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/webscraper/__init__.py +113 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/webscraper/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/webscraper/requirements.txt +4 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/webscraper/run.ipynb +277 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/webscraper/tags.json +10 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/webscraper/valid_configs.jsonl +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/xgboost_optuna/README.md +45 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/xgboost_optuna/__init__.py +271 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/xgboost_optuna/dag.png +0 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/xgboost_optuna/requirements.txt +6 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/xgboost_optuna/run.ipynb +888 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/xgboost_optuna/tags.json +7 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/user/zilto/xgboost_optuna/valid_configs.jsonl +2 -0
- apache_hamilton_contrib-0.1.0.dev0/hamilton/contrib/version.py +18 -0
- apache_hamilton_contrib-0.1.0.dev0/pyproject.toml +78 -0
- apache_hamilton_contrib-0.1.0.dev0/requirements.txt +1 -0
|
@@ -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,35 @@
|
|
|
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/).
|
|
6
|
+
|
|
7
|
+
================================================================================
|
|
8
|
+
|
|
9
|
+
This product includes code adapted from the OpenAI Cookbook
|
|
10
|
+
(https://github.com/openai/openai-cookbook), which is licensed under the MIT License.
|
|
11
|
+
Specifically, the hamilton.contrib.user.skrawcz.customize_embeddings module is based on:
|
|
12
|
+
https://github.com/openai/openai-cookbook/blob/6d89e11fed344237f07910a98ba98303ece7dd18/examples/Customizing_embeddings.ipynb
|
|
13
|
+
|
|
14
|
+
MIT License
|
|
15
|
+
Copyright (c) 2025 OpenAI
|
|
16
|
+
|
|
17
|
+
================================================================================
|
|
18
|
+
|
|
19
|
+
This product includes code adapted from NumPy Tutorials
|
|
20
|
+
(https://github.com/numpy/numpy-tutorials), which is licensed under the BSD 3-Clause License.
|
|
21
|
+
Specifically, the hamilton.contrib.user.skrawcz.air_quality_analysis module is based on:
|
|
22
|
+
https://github.com/numpy/numpy-tutorials/blob/main/content/tutorial-air-quality-analysis.md
|
|
23
|
+
|
|
24
|
+
BSD 3-Clause License
|
|
25
|
+
Copyright (c) 2005-2025, NumPy Developers
|
|
26
|
+
|
|
27
|
+
================================================================================
|
|
28
|
+
|
|
29
|
+
This product references code patterns from Optuna Examples
|
|
30
|
+
(https://github.com/optuna/optuna-examples), which is licensed under the MIT License.
|
|
31
|
+
Specifically, the hamilton.contrib.user.zilto.xgboost_optuna module references:
|
|
32
|
+
https://github.com/optuna/optuna-examples/blob/main/xgboost/xgboost_integration.py
|
|
33
|
+
|
|
34
|
+
MIT License
|
|
35
|
+
Copyright (c) 2018 Preferred Networks, Inc.
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: apache-hamilton-contrib
|
|
3
|
+
Version: 0.1.0.dev0
|
|
4
|
+
Summary: Apache Hamilton's user contributed shared dataflow library.
|
|
5
|
+
Keywords: hamilton,collaborative,shared,dataflow,library,contrib
|
|
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 :: 5 - Production/Stable
|
|
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: apache-hamilton==1.90.0.dev0
|
|
23
|
+
Requires-Dist: click>8.0.0 ; extra == "contribute"
|
|
24
|
+
Requires-Dist: gitpython ; extra == "contribute"
|
|
25
|
+
Requires-Dist: apache-hamilton[visualization] ; extra == "visualization"
|
|
26
|
+
Project-URL: documentation, https://hamilton.apache.org/
|
|
27
|
+
Project-URL: homepage, https://www.tryhamilton.dev/
|
|
28
|
+
Project-URL: issues, https://github.com/apache/hamilton/issues
|
|
29
|
+
Project-URL: source, https://github.com/apache/hamilton/contrib
|
|
30
|
+
Provides-Extra: contribute
|
|
31
|
+
Provides-Extra: visualization
|
|
32
|
+
|
|
33
|
+
<!--
|
|
34
|
+
Licensed to the Apache Software Foundation (ASF) under one
|
|
35
|
+
or more contributor license agreements. See the NOTICE file
|
|
36
|
+
distributed with this work for additional information
|
|
37
|
+
regarding copyright ownership. The ASF licenses this file
|
|
38
|
+
to you under the Apache License, Version 2.0 (the
|
|
39
|
+
"License"); you may not use this file except in compliance
|
|
40
|
+
with the License. You may obtain a copy of the License at
|
|
41
|
+
|
|
42
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
43
|
+
|
|
44
|
+
Unless required by applicable law or agreed to in writing,
|
|
45
|
+
software distributed under the License is distributed on an
|
|
46
|
+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
47
|
+
KIND, either express or implied. See the License for the
|
|
48
|
+
specific language governing permissions and limitations
|
|
49
|
+
under the License.
|
|
50
|
+
-->
|
|
51
|
+
|
|
52
|
+
## Off-the-shelf Apache Hamilton Dataflows
|
|
53
|
+
|
|
54
|
+
> **Disclaimer**
|
|
55
|
+
>
|
|
56
|
+
> Apache Hamilton is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC.
|
|
57
|
+
>
|
|
58
|
+
> 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.
|
|
59
|
+
>
|
|
60
|
+
> 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.
|
|
61
|
+
|
|
62
|
+
Here you'll find documentation about the sf-hamilton-contrib package that curates a collection of Apache Hamilton Dataflows that are
|
|
63
|
+
ready to be used in your own projects. They are user-contributed and maintained, with
|
|
64
|
+
the goal of making it easier for you to get started with Apache Hamilton.
|
|
65
|
+
|
|
66
|
+
We expect this collection to grow over time, so check back often! As dataflows become mature we
|
|
67
|
+
will move them into the official sub-package of the respository and become maintained by the
|
|
68
|
+
Apache Hamilton team.
|
|
69
|
+
|
|
70
|
+
### Usage
|
|
71
|
+
There are two ways to get access to dataflows in this package. For either approach,
|
|
72
|
+
the assumption is that you have the requisite python dependencies installed on your system.
|
|
73
|
+
You'll get import errors if you don't. Don't know what you need, we have convenience functions to help!
|
|
74
|
+
|
|
75
|
+
#### Static installation
|
|
76
|
+
This approach relies on you installing the package on your system. This is the recommended path for
|
|
77
|
+
production purposes as you can version-lock your dependencies.
|
|
78
|
+
|
|
79
|
+
To install the package, run:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
pip install sf-hamilton-contrib --upgrade
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Once installed, you can import the dataflows as follows.
|
|
86
|
+
|
|
87
|
+
Things you need to know:
|
|
88
|
+
1. Whether it's a user or official DAGWorks supported dataflow. If user, what the name of the user is.
|
|
89
|
+
2. The name of the dataflow.
|
|
90
|
+
```python
|
|
91
|
+
from hamilton import driver
|
|
92
|
+
# from hamilton.contrib.dagworks import NAME_OF_DATAFLOW
|
|
93
|
+
from hamilton.contrib.user.NAME_OF_USER import NAME_OF_DATAFLOW
|
|
94
|
+
|
|
95
|
+
dr = (
|
|
96
|
+
driver.Builder()
|
|
97
|
+
.with_config({}) # replace with configuration as appropriate
|
|
98
|
+
.with_modules(NAME_OF_DATAFLOW)
|
|
99
|
+
.build()
|
|
100
|
+
)
|
|
101
|
+
# execute the dataflow, specifying what you want back. Will return a dictionary.
|
|
102
|
+
result = dr.execute(
|
|
103
|
+
[NAME_OF_DATAFLOW.FUNCTION_NAME, ...], # this specifies what you want back
|
|
104
|
+
inputs={...} # pass in inputs as appropriate
|
|
105
|
+
)
|
|
106
|
+
```
|
|
107
|
+
To find an example [go to the hub](https://hub.dagworks.io/docs/).
|
|
108
|
+
|
|
109
|
+
#### Dynamic installation
|
|
110
|
+
Here we dynamically download the dataflow from the internet and execute it. This is useful for quickly
|
|
111
|
+
iterating in a notebook and pulling in just the dataflow you need.
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
from hamilton import dataflows, driver
|
|
115
|
+
|
|
116
|
+
# downloads into ~/.hamilton/dataflows and loads the module -- WARNING: ensure you know what code you're importing!
|
|
117
|
+
# NAME_OF_DATAFLOW = dataflows.import_module("NAME_OF_DATAFLOW") # if using official DAGWorks dataflow
|
|
118
|
+
NAME_OF_DATAFLOW = dataflows.import_module("NAME_OF_DATAFLOW", "NAME_OF_USER")
|
|
119
|
+
dr = (
|
|
120
|
+
driver.Builder()
|
|
121
|
+
.with_config({}) # replace with configuration as appropriate
|
|
122
|
+
.with_modules(NAME_OF_DATAFLOW)
|
|
123
|
+
.build()
|
|
124
|
+
)
|
|
125
|
+
# execute the dataflow, specifying what you want back. Will return a dictionary.
|
|
126
|
+
result = dr.execute(
|
|
127
|
+
[NAME_OF_DATAFLOW.FUNCTION_NAME, ...], # this specifies what you want back
|
|
128
|
+
inputs={...} # pass in inputs as appropriate
|
|
129
|
+
)
|
|
130
|
+
```
|
|
131
|
+
To find an example [go to the hub](https://hub.dagworks.io/docs/).
|
|
132
|
+
|
|
133
|
+
#### Modification
|
|
134
|
+
Getting started is one thing, but then modifying to your needs is another. So we have a prescribed
|
|
135
|
+
flow to enable you to take a dataflow, and copy the code to a place of your choosing. This allows
|
|
136
|
+
you to easily modify the dataflow as you see fit.
|
|
137
|
+
|
|
138
|
+
Run this in a notebook or python script to copy the dataflow to a directory of your choosing.
|
|
139
|
+
```python
|
|
140
|
+
from hamilton import dataflows
|
|
141
|
+
|
|
142
|
+
# dynamically pull and then copy
|
|
143
|
+
NAME_OF_DATAFLOW = dataflows.import_module("NAME_OF_DATAFLOW", "NAME_OF_USER")
|
|
144
|
+
dataflows.copy(NAME_OF_DATAFLOW, destination_path="PATH_TO_DIRECTORY")
|
|
145
|
+
# copy from the installed library
|
|
146
|
+
from hamilton.contrib.user.NAME_OF_USER import NAME_OF_DATAFLOW
|
|
147
|
+
dataflows.copy(NAME_OF_DATAFLOW, destination_path="PATH_TO_DIRECTORY")
|
|
148
|
+
```
|
|
149
|
+
You can then modify/import the code as you see fit. See [copy()](https://hamilton.apache.org/reference/dataflows/copy/)
|
|
150
|
+
for more details.
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### How to contribute
|
|
154
|
+
|
|
155
|
+
If you have a dataflow that you would like to share with the community, please submit a pull request
|
|
156
|
+
to this repository. We will review your dataflow and if it meets our standards we will add it to the
|
|
157
|
+
package. To submit a pull request please use [this template](https://github.com/apache/hamilton/blob/main/.github/PULL_REQUEST_TEMPLATE/HAMILTON_CONTRIB_PR_TEMPLATE.md)
|
|
158
|
+
. To access it, create a new Pull Request, then hit the `preview` tab, and click the link to append `template=HAMILTON_CONTRIB_PR_TEMPLATE.md` to the URL.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
#### Dataflow standards
|
|
162
|
+
We want to ensure that the dataflows in this package are of high quality and are easy to use. To that end,
|
|
163
|
+
we have a set of standards that we expect all dataflows to meet. If you have any questions, please reach out.
|
|
164
|
+
|
|
165
|
+
Standards:
|
|
166
|
+
- The dataflow must be a valid Python module.
|
|
167
|
+
- It must not do anything malicious.
|
|
168
|
+
- It must be well documented.
|
|
169
|
+
- It must work.
|
|
170
|
+
- It must follow our standard structure as outlined below.
|
|
171
|
+
|
|
172
|
+
#### Getting started with development
|
|
173
|
+
|
|
174
|
+
To get started with development, you'll want to first fork the hamilton repository from the github UI.
|
|
175
|
+
|
|
176
|
+
Then, clone it locally and install the package in editable mode, ensuring you install any dependencies required for the initilization script
|
|
177
|
+
```bash
|
|
178
|
+
cd hamilton # Your fork
|
|
179
|
+
pip install -e "./contrib[contribute]" # Note that this package lives under the `contrib` folder
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Next, you need to initialize your dataflow. This will create the necessary files and directories for you to get started.
|
|
183
|
+
```bash
|
|
184
|
+
init-dataflow -u <your_github_username> -n <name_of_dataflow>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
This will do the following:
|
|
188
|
+
|
|
189
|
+
1. Create a package under `contrib/hamilton/contrib/user/<your_github_username>` with the appropriate files to describe you
|
|
190
|
+
- `author.md` -- this will describe you with links out to github/socials
|
|
191
|
+
- `__init__.py` -- this will be an empty file that allows you to import your dataflow
|
|
192
|
+
2. Create a package under `contrib/hamilton/contrib/user/<your_github_username>/<name_of_dataflow>` with the appropriate files to describe your dataflow:
|
|
193
|
+
- `README.md` to describe the dataflow with the standard headings
|
|
194
|
+
- `__init__.py` to contain the Apache Hamilton code
|
|
195
|
+
- `requirements.txt` to contain the required packages outside of Apache Hamilton
|
|
196
|
+
- `tags.json` to curate your dataflow
|
|
197
|
+
- `valid_configs.jsonl` to specify the valid configurations for it to be run
|
|
198
|
+
- `dag.png` to show one possible configuration of your dataflow
|
|
199
|
+
3. Add all the above files to git!
|
|
200
|
+
|
|
201
|
+
These are all required. You do not have to use the initialization script -- you can always copy the files over directly. That said, it is idempotent (it will fill out any missing files),
|
|
202
|
+
and will ensure that you have the correct structure.
|
|
203
|
+
|
|
204
|
+
#### Developing your dataflow
|
|
205
|
+
|
|
206
|
+
To get started, you'll want to do the following:
|
|
207
|
+
|
|
208
|
+
- [ ] Fill out your `__init__.py` with the appropriate code -- see [this issue](https://github.com/apache/hamilton/issues/559) if you want some inspiration for where to get started
|
|
209
|
+
- [ ] Fill out the sections of your `README.md` with the appropriate documentation -- follow one of the approved dataflows
|
|
210
|
+
- [ ] Fill out your `tags.json` with the appropriate tags -- follow one of the approved dataflows
|
|
211
|
+
- [ ] Fill out your `valid_configs.jsonl` with the appropriate configurations -- this is not necessary if you have no configurations that can change the shape of your DAG
|
|
212
|
+
- [ ] Generate a visual representation of your DAG -- you can use the following `if __name__ == '__main__'` block to do so:
|
|
213
|
+
```python
|
|
214
|
+
import __init__ as my_module
|
|
215
|
+
|
|
216
|
+
from hamilton import base, driver
|
|
217
|
+
|
|
218
|
+
dr = driver.Driver(
|
|
219
|
+
{},
|
|
220
|
+
my_module,
|
|
221
|
+
adapter=base.DefaultAdapter(),
|
|
222
|
+
)
|
|
223
|
+
# create the DAG image
|
|
224
|
+
dr.display_all_functions("dag", {"format": "png", "view": False})
|
|
225
|
+
```
|
|
226
|
+
- [ ] Push a branch back to your fork
|
|
227
|
+
- [ ] Open up a pull request to the main Apache Hamilton repo!
|
|
228
|
+
- [ ] Commit the files we just added
|
|
229
|
+
- [ ] Create a PR
|
|
230
|
+
- [ ] Tag one of the maintainers [elijahbenizzy](https://github.com/elijahbenizzy), [skrawcz](https://github.com/skrawcz), or [zilto](https://github.com/zilto) for a review
|
|
231
|
+
- [ ] Ping us on [slack](https://join.slack.com/t/hamilton-opensource/shared_invite/zt-2niepkra8-DGKGf_tTYhXuJWBTXtIs4g) if you don't hear back within a few days
|
|
232
|
+
|
|
233
|
+
#### Username Management
|
|
234
|
+
|
|
235
|
+
As usernames map to packages, we need to ensure that they are valid. To that end, we have a few rules:
|
|
236
|
+
- [ ] If your username contains hyphens, replace them with underscores.
|
|
237
|
+
- [ ] If your username starts with a number, prefix it with an underscore.
|
|
238
|
+
- [ ] If your author name is a python reserved keyword. Reach out to the maintainers for help.
|
|
239
|
+
|
|
240
|
+
If the above apply, run the `init-dataflow` command with `-s` to specify a sanitized username.
|
|
241
|
+
|
|
242
|
+
## Got questions?
|
|
243
|
+
Join our [slack](https://join.slack.com/t/hamilton-opensource/shared_invite/zt-2niepkra8-DGKGf_tTYhXuJWBTXtIs4g) community to chat/ask Qs/etc.
|
|
244
|
+
|