Skip to main content

No project description provided

Project description

dbt_quicksight_lineage

PyPI - Version PyPI - Python Version


PyPI: https://pypi.org/project/dbt-quicksight-lineage/ Target DBT Version: 1.5.*

Table of Contents

Installation

pip install dbt-quicksight-lineage

Usage

Usage: dbt-quicksight-lineage [OPTIONS] COMMAND [ARGS]...

  dbt-quicksight-lineage: DBT to QuickSight Lineage command helper

Options:
  --version                       Show the version and exit.
  --log-level [DEBUG|INFO|WARNING|ERROR|CRITICAL]
                                  Set log level
  --no-color / --color            Disable color in output
  -h, --help                      Show this message and exit.

Commands:
  init             Modify schema.yml to add QuickSight metadata with Data...
  update-data-set  Update QuickSight DataSet from DBT Manifest

QuickStart

dbt-quicksight-lineage init --project-dir /path/to/dbt/project --data-set-id <data-set-id>

modify your schema.yml to add QuickSight metadata with Data Lineage

for example:

version: 2

models:
  - name: my_first_dbt_model
    description: "A starter dbt model"
    meta:
      quicksight:
        logical_table_name: My First DBT Model
        data_sets:
          - id: 00000000-0000-0000-0000-000000000000
            data_source_arn: arn:aws:quicksight:ap-northeast-1:123456789012:datasource/00000000-0000-0000-0000-000000000000
        folders:
          - name: Key
            description: "this is Key folder, must distinct counts"
          
    columns:
      - name: id
        description: "The primary key for this table"
        meta:
          quicksight:
            field_name: ID
            folder: Key
            data_type: string
        tests:
          - unique
          - not_null
      - name: geo
        description: "City name of geometry"
        meta:
          quicksight:
            geographic_role: city 
            field_name: Geometry
            folder: Key
      - name: hidden_value
        meta:
          quicksight:
            hidden: true

  - name: my_second_dbt_model
    description: "A starter dbt model"
    columns:
      - name: id
        description: "The primary key for this table"
        tests:
          - unique
          - not_null

and update data set

dbt-quicksight-lineage update-data-set --project-dir /path/to/dbt/project --data-set-id <data-set-id>

image

License

dbt-quicksight-lineage is distributed under the terms of the MIT license.

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

dbt_quicksight_lineage-0.3.2.tar.gz (278.3 kB view details)

Uploaded Source

Built Distribution

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

dbt_quicksight_lineage-0.3.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file dbt_quicksight_lineage-0.3.2.tar.gz.

File metadata

  • Download URL: dbt_quicksight_lineage-0.3.2.tar.gz
  • Upload date:
  • Size: 278.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for dbt_quicksight_lineage-0.3.2.tar.gz
Algorithm Hash digest
SHA256 4f58468c6a9503d21096a3c9e433501ef2bce17a22ba34796bb94d03d6ebdfb4
MD5 499f5f9af1b5d94689e9e10638d3d7a8
BLAKE2b-256 4bd493210cea49c9b2747205f4e3a6615ec8733ee71082483efde8044e2fdf86

See more details on using hashes here.

File details

Details for the file dbt_quicksight_lineage-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dbt_quicksight_lineage-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1f13983fbfc92c1478834cc6306799c34498d1740e429f56890825cad5aa0ee7
MD5 84158459ca97532925206f27a5c4fa02
BLAKE2b-256 7bf8a2e81a8dcf2e9b3b2d49e8f326456fce4c68998d3f6a37e521956e364294

See more details on using hashes here.

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