Skip to main content

Dagster library for Hex

Project description

Hex Dagster Library

Installation

To install the library, use pip alongside your existing Dagster environment.

pip install dagster_hex

Configuration

First, you'll need to specify your Hex API Token key as a resource.

# resources.py
from dagster_hex.resources import hex_resource 
import os

API_KEY = os.getenv['DAGSTER_PROD_API']
my_resource = hex_resource.configured({'api_key': API_KEY})

Ops

The hex_project_op will call the Hex API to run a project until it completes.

from dagster_hex.resources import hex_resource
from dagster import job
from dagster_hex.ops import hex_project_op

API_KEY = 'abc123'
PROJ_ID = 'i-love-uuids'

my_resource = hex_resource.configured({'api_key': API_KEY})
run_hex_op = hex_project_op.configured({"project_id": PROJ_ID},
                                       name='run_job')

@job(resource_defs={"hex": my_resource})
def hex_job():
    run_hex_op()

Asset Materializations

Ops will return an AssetMaterialization with the following keys:

run_url	
run_status_url	
trace_id	
run_id	
elapsed_time	

Project details


Download files

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

Source Distribution

dagster-hex-0.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

dagster_hex-0.0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file dagster-hex-0.0.1.tar.gz.

File metadata

  • Download URL: dagster-hex-0.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for dagster-hex-0.0.1.tar.gz
Algorithm Hash digest
SHA256 24a013c19caca6fa7e50b42d6dc41dc60e774f94d90ab3deee7b8d9edd43cd2b
MD5 a8b7c6dd683085ef9add9709be8b6740
BLAKE2b-256 1f17d12f79f17e4202a9c2cfa98d23bbb4436a3d57c3d16b41573e6245f71479

See more details on using hashes here.

File details

Details for the file dagster_hex-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dagster_hex-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for dagster_hex-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4810c5de79b2bfada3caa571653acbe9ae7d5bc6bcddb989d359b91e6709189
MD5 3d92099d45a4eea96030c5cd97cdd1b9
BLAKE2b-256 64038ea05f009675c2c717c2558889c503ec716754f8c216dcd43b04213d976a

See more details on using hashes here.

Supported by

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