You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@hamilton.apache.org by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org> on 2026/03/26 11:46:10 UTC
[PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Aditya-Deshwal23 opened a new pull request, #1527:
URL: https://github.com/apache/hamilton/pull/1527
## Summary
Added a Quick Start section and improved Graphviz installation instructions in the README.
## Motivation
The current README is comprehensive but lacks a minimal working example for beginners.
This change helps new users quickly understand how to use Apache Hamilton with a simple example.
## Changes
- Added a "Quick Start (2 minutes)" section with a minimal DAG example
- Added clear Graphviz installation steps for Mac, Ubuntu, and Windows
## Impact
Improves onboarding experience for new users and reduces setup friction.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3070312245
##########
README.md:
##########
@@ -53,6 +53,45 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
+ return 1
+
+def B(A: int) -> int:
+ return A + 1
+
+# Step 3: Execute the DAG
+from hamilton import driver
+
+dr = (
+ driver.Builder()
+ .with_modules(__name__)
Review Comment:
this doesn't work. I don't know how you ran this to make this work.
`with_modules(self, *modules: ModuleType) -> "Builder":`
takes a module, not a string.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3049372150
##########
README.md:
##########
@@ -70,19 +103,26 @@ Apache Hamilton brings modularity and structure to any Python application moving
# Installation
-Apache Hamilton supports Python 3.8+. We include the optional `visualization` dependency to display our Apache Hamilton DAG. For visualizations, [Graphviz](https://graphviz.org/download/) needs to be installed on your system separately.
+Apache Hamilton supports Python 3.8+. We include the optional visualization dependency to display our Apache Hamilton DAG. For visualizations, Graphviz needs to be installed on your system separately.
Review Comment:
```suggestion
Apache Hamilton supports Python 3.9+. We include the optional visualization dependency to display our Apache Hamilton DAG. For visualizations, Graphviz needs to be installed on your system separately.
```
I think we dropped support for 3.8
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3070306530
##########
README.md:
##########
@@ -53,6 +53,45 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
Review Comment:
do you mean someone should write a file? I think this only works if someone writes a file. This wont work in a notebook or REPL.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3107829772
##########
README.md:
##########
@@ -53,6 +53,40 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
+ return 1
+
+def B(A: int) -> int:
+ return A + 1
+
+# Step 3: Execute the DAG
+from hamilton import driver
+
+dr = driver.Driver({}, __name__)
+result = dr.execute(["B"])
+
+print(result)
+
+# Expected output: {'B': 2}
Review Comment:
Still doesn't work in a REPL - python 3.11
```
>>> # create a temporary module
>>> module = types.ModuleType("example")
>>> def A() -> int:
... return 1
...
>>> def B(A: int) -> int:
... return A + 1
...
>>> module.A = A
>>> module.B = B
>>>
>>> # builder pattern
>>> dr = (
... driver.Builder()
... .with_modules(module)
... .build()
... )
>>>
>>> print(dr.execute(["B"]))
-------------------------------------------------------------------
Oh no an error! Need help with Hamilton?
Join our slack and ask for help! https://join.slack.com/t/hamilton-opensource/shared_invite/zt-2niepkra8-DGKGf_tTYhXuJWBTXtIs4g
-------------------------------------------------------------------
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/hamilton/hamilton/driver.py", line 578, in execute
raise e
File "/Users/hamilton/hamilton/driver.py", line 565, in execute
outputs = self.__raw_execute(
^^^^^^^^^^^^^^^^^^^
File "/Users/hamilton/hamilton/driver.py", line 705, in __raw_execute
nodes, user_nodes = function_graph.get_upstream_nodes(final_vars, inputs, overrides)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/hamilton/hamilton/graph.py", line 1051, in get_upstream_nodes
return self.directional_dfs_traverse(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/hamilton/hamilton/graph.py", line 1120, in directional_dfs_traverse
raise ValueError(f"Unknown nodes [{missing_vars_str}] requested. Check for typos?")
ValueError: Unknown nodes [B] requested. Check for typos?
>>> dr.list_available_variables()
[]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3074436646
##########
README.md:
##########
@@ -53,6 +53,45 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
Review Comment:
you're right updated to use an in-memory module with with_modules, so it runs in REPL/notebooks without needing a file.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3108405091
##########
README.md:
##########
@@ -53,6 +53,40 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
+ return 1
+
+def B(A: int) -> int:
+ return A + 1
+
+# Step 3: Execute the DAG
+from hamilton import driver
+
+dr = driver.Driver({}, __name__)
+result = dr.execute(["B"])
+
+print(result)
+
+# Expected output: {'B': 2}
Review Comment:
I've updated the snippet to use ad_hoc_utils.create_temporary_module(). I just tested it locally in a Python 3.14 REPL, and it successfully builds the DAG and outputs {'B': 2} without needing a physical file
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3070306530
##########
README.md:
##########
@@ -53,6 +53,45 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
Review Comment:
do you mean someone should write a file? I think this only works if someone writes a file. This wont work in a notebook or REPL, right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3107829772
##########
README.md:
##########
@@ -53,6 +53,40 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
+ return 1
+
+def B(A: int) -> int:
+ return A + 1
+
+# Step 3: Execute the DAG
+from hamilton import driver
+
+dr = driver.Driver({}, __name__)
+result = dr.execute(["B"])
+
+print(result)
+
+# Expected output: {'B': 2}
Review Comment:
Still doesn't work in a REPL - python 3.11
```
>>> # create a temporary module
>>> module = types.ModuleType("example")
>>> def A() -> int:
... return 1
...
>>> def B(A: int) -> int:
... return A + 1
...
>>> module.A = A
>>> module.B = B
>>>
>>> # builder pattern
>>> dr = (
... driver.Builder()
... .with_modules(module)
... .build()
... )
>>>
>>> print(dr.execute(["B"]))
-------------------------------------------------------------------
Oh no an error! Need help with Hamilton?
Join our slack and ask for help! https://join.slack.com/t/hamilton-opensource/shared_invite/zt-2niepkra8-DGKGf_tTYhXuJWBTXtIs4g
-------------------------------------------------------------------
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/skrawczyk/salesforce/hamilton/hamilton/driver.py", line 578, in execute
raise e
File "/Users/skrawczyk/salesforce/hamilton/hamilton/driver.py", line 565, in execute
outputs = self.__raw_execute(
^^^^^^^^^^^^^^^^^^^
File "/Users/skrawczyk/salesforce/hamilton/hamilton/driver.py", line 705, in __raw_execute
nodes, user_nodes = function_graph.get_upstream_nodes(final_vars, inputs, overrides)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/skrawczyk/salesforce/hamilton/hamilton/graph.py", line 1051, in get_upstream_nodes
return self.directional_dfs_traverse(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/skrawczyk/salesforce/hamilton/hamilton/graph.py", line 1120, in directional_dfs_traverse
raise ValueError(f"Unknown nodes [{missing_vars_str}] requested. Check for typos?")
ValueError: Unknown nodes [B] requested. Check for typos?
>>> dr.list_available_variables()
[]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3107826811
##########
README.md:
##########
@@ -53,6 +53,49 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+
+from sf_hamilton import driver
Review Comment:
it's just hamilton
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3049370987
##########
README.md:
##########
@@ -53,6 +53,39 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
+ return 1
+
+def B(A: int) -> int:
+ return A + 1
+
+# Step 3: Execute the DAG
+from hamilton import driver
+
+dr = driver.Driver({}, __name__)
+result = dr.execute(["B"])
+
+print(result)
+
+Expected output: {'B': 2}
+
+## What’s happening?
+
+Each function becomes a node in the DAG
+Dependencies are defined through function parameters
+Hamilton automatically builds and executes the dependency graph
+
+This is the simplest possible pipeline — from here, you can scale to ML workflows, ETL pipelines, and production data systems.
Review Comment:
```suggestion
This is the simplest possible pipeline — from here, you can scale to ML workflows, ETL pipelines, LLM workflows, and production data systems.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#issuecomment-4228527621
Hi @skrawcz, I’ve addressed the requested changes and pushed the updates, including the Quick Start improvements and formatting fixes.
Could you please take another look when you get a chance? Happy to make any further adjustments if needed. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3074499299
##########
README.md:
##########
@@ -53,6 +53,45 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
+ return 1
+
+def B(A: int) -> int:
+ return A + 1
+
+# Step 3: Execute the DAG
+from hamilton import driver
+
+dr = (
+ driver.Builder()
+ .with_modules(__name__)
Review Comment:
You're right with_modules expects a module. I'll update this to pass an in memory module instead of __name__, so the example works in REPL/notebooks without requiring a file.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#issuecomment-4232950902
> updated to use builder pattern and verified example runs correctly
I don't think so. Can you show it running?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3052940170
##########
README.md:
##########
@@ -53,6 +53,39 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
Review Comment:
Fixed the Python code block is now properly closed and formatting renders correctly in preview. Thanks for catching that!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#issuecomment-4196434701
Hi @skrawcz, I’ve rebased the branch and addressed the feedback. Could you please take another look when you get a chance? Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#issuecomment-4150057895
> @Aditya-Deshwal23 can you rebase the branch please?
@skrawcz Rebased the branch as requested. Please review again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3049374818
##########
README.md:
##########
@@ -53,6 +53,39 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
Review Comment:
you don't close this so things are broken -- did you look at preview?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3108421958
##########
README.md:
##########
@@ -53,6 +53,49 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+
+from sf_hamilton import driver
Review Comment:
Done! Updated the import and used ad_hoc_utils.create_temporary_module() so it runs perfectly in a REPL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#issuecomment-4310707454
Hi @skrawcz, just following up on my PR. I’ve addressed the previous feedback and made the requested changes. Could you please take another look when you get a chance? Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#issuecomment-4148763171
@Aditya-Deshwal23 can you rebase the branch please?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#issuecomment-4494997782
Hi @skrawcz,
I’ve resolved the merge conflicts and synced the branch with the latest main.
Updates in this PR:
Added Quick Start Section: Included a minimal runnable example.
Updated Documentation: Refined the Graphviz installation instructions.
Addressed Feedback: Incorporated your previous suggestions regarding the builder pattern/import usage and applied the necessary formatting fixes.
Whenever you have time, please feel free to take another look no rush at all. Thanks again for all the guidance and feedback throughout this process.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#issuecomment-4414266549
Hi @skrawcz, hope you're doing well. Just following up on this PR again whenever you get a chance. I’d appreciate any further feedback or review. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "skrawcz (via GitHub)" <gi...@apache.org>.
skrawcz commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3068601695
##########
README.md:
##########
@@ -53,6 +53,40 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
+ return 1
+
+def B(A: int) -> int:
+ return A + 1
+
+# Step 3: Execute the DAG
+from hamilton import driver
+
+dr = driver.Driver({}, __name__)
Review Comment:
we should be using the builder pattern
##########
README.md:
##########
@@ -53,6 +53,40 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
+ return 1
+
+def B(A: int) -> int:
+ return A + 1
+
+# Step 3: Execute the DAG
+from hamilton import driver
+
+dr = driver.Driver({}, __name__)
+result = dr.execute(["B"])
+
+print(result)
+
+# Expected output: {'B': 2}
Review Comment:
this code doesn't work for me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Improve README with Quick Start guide and Graphviz installation steps [hamilton]
Posted by "Aditya-Deshwal23 (via GitHub)" <gi...@apache.org>.
Aditya-Deshwal23 commented on code in PR #1527:
URL: https://github.com/apache/hamilton/pull/1527#discussion_r3068951133
##########
README.md:
##########
@@ -53,6 +53,40 @@ under the License.
Apache Hamilton (incubating) is a lightweight Python library for directed acyclic graphs (DAGs) of data transformations. Your DAG is **portable**; it runs anywhere Python runs, whether it's a script, notebook, Airflow pipeline, FastAPI server, etc. Your DAG is **expressive**; Apache Hamilton has extensive features to define and modify the execution of a DAG (e.g., data validation, experiment tracking, remote execution).
+## Quick Start (2 minutes)
+
+Get started with Apache Hamilton in just a few lines of code:
+
+```python
+# Step 1: Install (run in terminal)
+# pip install sf-hamilton
+
+# Step 2: Define your functions (nodes in the DAG)
+def A() -> int:
+ return 1
+
+def B(A: int) -> int:
+ return A + 1
+
+# Step 3: Execute the DAG
+from hamilton import driver
+
+dr = driver.Driver({}, __name__)
Review Comment:
updated to use the builder pattern and verified the example runs correctly. please take another look
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hamilton.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org