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.1.3.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file dagster-hex-0.1.3.tar.gz
.
File metadata
- Download URL: dagster-hex-0.1.3.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 440b7a5b7291c9a5d30a79c98d3c4b11d513943b3f36a6eb3abd3898ced032b7 |
|
MD5 | d81a9dbf665cd8e37d710bf74b1d77d5 |
|
BLAKE2b-256 | b9d8ae98b653b51b0fb6260c16af79ce4092b1c673a8b89bae19da902b738d87 |
File details
Details for the file dagster_hex-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: dagster_hex-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fbfb0adb5650ad9862b20756f110e966def2bfa65c68a72337e2a1657eb2cee |
|
MD5 | 3c12555f1784bd9718e06357465a4d6a |
|
BLAKE2b-256 | 79ca59857a59aec5cbbb031a39d1978cae63b0b9a41f0d81e69d381bc66ca79d |