Library to create Dagster jobs from YAML
Project description
Dagster Composable Graphs
Dagster is a cloud-native data pipeline orchestrator for the whole development lifecycle, with integrated lineage and observability, a declarative programming model, and best-in-class testability.
This library provides additional functionality to define dagster jobs from a
file in .yaml
format and may be used with any other package that integrates
with dagster.
Visit the documentation here.
Partially inspired by post Abstracting Pipelines for Analysts with a YAML DSL on the dagster blog.
Example
Consider the following definition of a ComposableGraph
. Notice in particular
sections inputs
, operations
and dependencies
. Respectively these define
the graph inputs, which dagster
ops or
graphs are
part of the job, and their dependencies.
apiVersion: truevoid.dev/v1alpha1
kind: ComposableGraph
metadata:
name: concatenate-graphs
spec:
inputs:
x: 2.0
y: 5.0
operations:
- name: add_and_multiply
function: example.jobs.add_and_multiply
- name: add
function: example.jobs.add
- name: multiply
function: example.jobs.multiply
dependencies:
- name: add_and_multiply
inputs:
- x
- y
- name: add
inputs:
- node: add_and_multiply
pointer: /add
- x
- name: multiply
inputs:
- y
- node: add_and_multiply
pointer: /multiply
Results in the following job, visualized using dagster webserver UI:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dagster_composable_graphs-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33cdb7c157052f8cefa4c246dd4fb4d6bd251f4081b32134174345560ecc2bf8 |
|
MD5 | 0663dd276382f8b6da71e0fed975f1ee |
|
BLAKE2b-256 | 342a5082c71f58f301f81790f6141c0c13a1c3dfd07f98e30b3f60667777f39b |
Hashes for dagster_composable_graphs-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5911f7b7baf16358c895e237014a200e424497c3cce551624470ceadf1e247ba |
|
MD5 | 32a7e34734fc92fdb3efd765a5775e3e |
|
BLAKE2b-256 | 96f92681204c3430a0eb11b96dc0c6372f73e702d24adc76fd69cf3918f1f6ee |