Skip to main content

dagster-stitch

PyPI PyPI - Python Version PyPI - License Code Style - Black

This library provides a Dagster integration for Stitch, a managed batch data ingestion service similar to Fivetran and Airbyte.

Disclaimer

Please note this library is under active development and should be used cautiously! Currently it supports triggering replication jobs and materializing the resulting tables as Dagster assets that can be used in downstream jobs. Reconciliation and other features are not yet included but would be great additions.

Installation

To install the library, run:

$ pip install dagster-stitch

For development, it can be installed locally and tested with:

$ pip install -e .[lint,test]
$ pytest

Configuration

Setup

To use the library, you must configure a stitch resource in your Dagster instance. The resource requires a client_id and client_secret to authenticate with Stitch. You can find these values in the Stitch UI under Settings > API Keys.

You will also need to note your Stitch account ID and the ID of the data source you want to replicate to be used in the asset or operation configuration. These can be found by navigating to the data source in the Stitch UI and looking at the URL. For example, if the URL is https://app.stitchdata.com/client/12345/pipeline/v2/sources/67890/summary, then the account ID is 12345 and the data source ID is 67890.

Usage

Here's an example of how to instantiate an asset that will materialize the table_name table from the data_source_id data source:

from dagster import Definitions
from dagster_stitch import stitch_resource, build_stitch_assets

stitch_instance = stitch_resource.configured(
    {
        "api_key": "your_stitch_api_key",
        "account_id": 12345,
    }
)

stitch_assets = build_stitch_assets(
    data_source_id=54321,
    destination_tables=["table_name"],
    resource_defs={"stitch": stitch_instance},
)

Download files

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

Source Distribution

dagster-stitch-0.1.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

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

dagster_stitch-0.1.1-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file dagster-stitch-0.1.1.tar.gz.

File metadata

  • Download URL: dagster-stitch-0.1.1.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for dagster-stitch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9ec8a35290a0225de7e70f9115f3119ba7d3950a2e0d8eff9f6a199e8fe613ef
MD5 261703078b5a5afc41a310cd0390c74b
BLAKE2b-256 7963256c38ae4caf720f36396919d5fd5732addab5d6768666f075909e6a6c46

See more details on using hashes here.

File details

Details for the file dagster_stitch-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dagster_stitch-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for dagster_stitch-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 970a5691cac98635b0e79f6a7417c35d12cbc7f8901c48d7c8eb55f952b7b584
MD5 249fc1fbd34eade2fb537fccce8908c1
BLAKE2b-256 110fc1d08df7105a920c7f86af2f36545dfa5d2bf89947005831f33e5a4a9bfc

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

2 files

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page