Skip to main content

Apache Hamilton UI SDK: Client Code & Related

Disclaimer

Apache Hamilton is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC.

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.

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.

Welcome to using the Apache Hamilton UI!

Here are instructions on how to get started with tracking, and managing your Apache Hamilton DAGs with the Apache Hamilton UI.

Getting Started

For the latest documentation, please consult our Apache Hamilton documentation under Apache Hamilton UI.

For a quick overview of Apache Hamilton, we suggest tryhamilton.dev.

Using the HamiltonTracker

First, you'll need to install the Apache Hamilton SDK package. Assuming you're using pip, you can do this with:

# install the package & cli into your favorite python environment.
pip install "apache-hamilton[sdk]"

# And validate -- this should not error.
python -c "from hamilton_sdk import adapters"

Next, you'll need to modify your Apache Hamilton driver. You'll only need to use one line of code to replace your driver with ours:

from hamilton_sdk import adapters
from hamilton import driver

tracker = adapters.HamiltonTracker(
   project_id=PROJECT_ID,  # modify this as needed
   username=YOUR_EMAIL, # modify this as needed
   dag_name="my_version_of_the_dag",
   tags={"environment": "DEV", "team": "MY_TEAM", "version": "X"}
)
dr = (
  driver.Builder()
    .with_config(your_config)
    .with_modules(*your_modules)
    .with_adapters(tracker)
    .build()
)
# to run call .execute() or .materialize() on the driver

Project ID: You'll need a project ID. Create a project if you don't have one, and take the ID from that.

username: This is the email address you used to set up the Apache Hamilton UI.

dag_name: for a project, the DAG name is the top level way to group DAGs. E.g. ltv_model, us_sales, etc.

tags: these are optional are string key value paris. They allow you to filter and curate various DAG runs.

Then run Apache Hamilton as normal! Each DAG run will be tracked, and you'll have access to it in the Apache Hamilton UI. After spinning up the Apache Hamilton UI application, visit it to see your projects & DAGs.

License

The code here is licensed under the Apache 2.0 license. See the main repository LICENSE for details.

Metadata

Release files for apache-hamilton-sdk 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apache-hamilton-sdk 0.9.0
File Size Uploaded
apache_hamilton_sdk-0.9.0.tar.gz 998.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apache-hamilton-sdk 0.9.0
File Interpreter ABI Platform
apache_hamilton_sdk-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / apache_hamilton_sdk-0.9.0.tar.gz

Download URL apache_hamilton_sdk-0.9.0.tar.gz
Size 998.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d301179319d72355c2f5d936000a26b187e3b7a7a55c40da287a5740219368b3
BLAKE2b-256 checksum
How to use checksums
6072d594d2fd3d016a1327bb356ae193a119e2b66a026e31f16051b55269fd8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / apache_hamilton_sdk-0.9.0-py3-none-any.whl

Download URL apache_hamilton_sdk-0.9.0-py3-none-any.whl
Size 287.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24f9917e88e7d2c62acd7cf487b357f67cb51508527e305987d1b83c9d0f6fcc
BLAKE2b-256 checksum
How to use checksums
5e43f079ac46297dc17150f935b4b9dfbd64eb1f6e98cfba64a5f6dc181e72f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page