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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apache_hamilton_sdk-0.9.0.tar.gz (998.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apache_hamilton_sdk-0.9.0-py3-none-any.whl (287.0 kB view details)

Uploaded Python 3

File details

Details for the file apache_hamilton_sdk-0.9.0.tar.gz.

File metadata

  • Download URL: apache_hamilton_sdk-0.9.0.tar.gz
  • Upload date:
  • Size: 998.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for apache_hamilton_sdk-0.9.0.tar.gz
Algorithm Hash digest
SHA256 d301179319d72355c2f5d936000a26b187e3b7a7a55c40da287a5740219368b3
MD5 e3bee2417fcbfa34cf5f07896ad54f7f
BLAKE2b-256 6072d594d2fd3d016a1327bb356ae193a119e2b66a026e31f16051b55269fd8a

See more details on using hashes here.

File details

Details for the file apache_hamilton_sdk-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for apache_hamilton_sdk-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24f9917e88e7d2c62acd7cf487b357f67cb51508527e305987d1b83c9d0f6fcc
MD5 2ae6a462212536b144051510147889e1
BLAKE2b-256 5e43f079ac46297dc17150f935b4b9dfbd64eb1f6e98cfba64a5f6dc181e72f2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page