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.1.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.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: elt_dagster_meltano-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 bc6702ed85e1328285f407ca71c1692154c7c6627522218d42ef2f2789268bd3
MD5 0c0873d7b62b80df7ce70b0b017c62f2
BLAKE2b-256 950c11235c3a38e9b26920f063fab9d6ba703f34b30364532f21d0ab39e555f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for elt_dagster_meltano-1.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for elt_dagster_meltano-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1faec28495a6c07191cc314397f85678841e25fc5099155fd0a427fea3c53404
MD5 2d8f058a95eec9276279b683d6895ac4
BLAKE2b-256 dc57670713f23bc74ebdf51e20e6f43afa38ad2fc4f0c622213158e8f9a0177e

See more details on using hashes here.

Provenance

The following attestation bundles were made for elt_dagster_meltano-1.0.1-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