Skip to main content

A dagster plugin that allows you to run your Meltano project inside Dagster.

Project description

Dagster-Meltano

A dagster plugin that allows you to run Meltano using Dagster. Forked from the original repo that was from Quantile Devlopment; with a special thanks to Jules Huisman for the maintenance of that repo.

Downloads

Installation

You can install using pip install elt-dagster-meltano.

Examples

An example of automatically loading all jobs and schedules from your Meltano project.

from dagster import repository
from dagster_meltano import load_jobs_from_meltano_project

meltano_jobs = load_jobs_from_meltano_project("<path-to-meltano-root>")

@repository
def repository():
    return [meltano_jobs]

An example of running an abitrary meltano run command.

from dagster import repository, job
from dagster_meltano import meltano_resource, meltano_run_op

@job(resource_defs={"meltano": meltano_resource})
def meltano_run_job():
    tap_done = meltano_run_op("tap-1 target-1")()
    meltano_run_op("tap-2 target-2")(tap_done)

@repository()
def repository():
    return [meltano_run_job]

You can inject Meltano config with the following Dagster config.

ops:
  tap_smoke_test_target_jsonl:
    config:
      env:
        TAP_SMOKE_TEST_STREAMS: '[{"stream_name": "new-stream", "input_filename": "demo.json"}]'

An example of running an arbitrary Meltano command.

from dagster import repository, job
from dagster_meltano import meltano_resource, meltano_command_op

@job(resource_defs={"meltano": meltano_resource})
def meltano_command_job():
    meltano_command_op("install loader tap-smoke-test")()

@repository()
def repository():
    return [meltano_command_job]

Development using VSCode

  1. Open this repository in Visual Studio Code.
  2. Install the Remote - Containers plugin for Visual Studio Code.
  3. Go to the example Meltano project root cd meltano_project
  4. Install all plugins meltano install
  5. Start dagit meltano invoke dagster:start
  6. Visit localhost:3000 to access Dagit.

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

elt_dagster_meltano-1.0.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

elt_dagster_meltano-1.0.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file elt_dagster_meltano-1.0.0.tar.gz.

File metadata

  • Download URL: elt_dagster_meltano-1.0.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for elt_dagster_meltano-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a8b180a193ff18acacca6942a569928dc10f5e3e8a99eac7e4c608b55704b5eb
MD5 5c27842fe61ea079b6577a09bcc47ff7
BLAKE2b-256 76dd085cd3ad903147039345973c2eb09d6af578f857f14025c621191158d190

See more details on using hashes here.

Provenance

The following attestation bundles were made for elt_dagster_meltano-1.0.0.tar.gz:

Publisher: release.yaml on camisinc/elt-dagster-meltano

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file elt_dagster_meltano-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for elt_dagster_meltano-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2ad2025de4f34e67ee6ee42b1bf89ae8e2d5777d956359894f84d50ef0300c5
MD5 f9a3ac88747009d06a0e6f7ad349198c
BLAKE2b-256 542a3f73c2d744e6afae47e87c7dca60e296b2b2cc8a85451c9feb6a0d76218e

See more details on using hashes here.

Provenance

The following attestation bundles were made for elt_dagster_meltano-1.0.0-py3-none-any.whl:

Publisher: release.yaml on camisinc/elt-dagster-meltano

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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