Skip to main content

Quollio Core

Project description

quollio-core

Description (説明)

This Python library collects advanced metadata like table to table lineage or anomaly record and ingests them to QDC.

このPythonライブラリは、テーブル間のリネージやデータの統計値などのメタデータを取得し、データカタログのアセットに反映します。

Prerequisite (前提条件)

Before you begin to use this, you need to do the following.

  • Add your assets to QDC with metadata agent.
  • Issue client id and client secret on QDC for External API.

このシステムを使用する前に、以下の手順を実行する必要があります。

  • Metadata Agentを使用して、データカタログにアセットを登録する。
  • 外部API用の、データカタログ上で認証に必要なクライアントIDとシークレットを発行する。

Install (インストール)

Install with the following command.

下記のコマンドでインストールしてください。

$ pip install quollio-core

To see available commands and options, please run the following command. (ex: Snowflake)

コマンドやオプションの詳細については、下記のコマンドを実行してください。(例: Snowflake)

$ python -m quollio_core.snowflake -h

Then run commands with the options provided.

その後、オプションを指定してコマンドを実行してください。

Command (コマンド) Description (概要)
build_view Build views for lineage and statistics.
リネージと統計情報を生成するビューを作成します。
load_lineage Load lineage from created views to Quollio.
作成したビューからリネージデータをQuollioにロードします。
load_stats Load statistics from created views to Quollio.
作成したビューから統計情報をQuollioにロードします。

Development (開発)

Install (インストール)

Create .env file in the root level of repository and set the following environment variables.

リポジトリのルートレベルに.envファイルを作成し、下記の環境変数を設定してください。

AWS_REGION=[AWS region]
IMAGE_NAME=[Container image name you want to use]
QUOLLIO_CORE_VERSION=[The quollio core version you use]

To install local packages, run the following command.

ローカルパッケージをインストールするには、下記のコマンドを実行してください。

$ make install

Build (ビルド)

To build Docker image with local files, run the following command.

ローカルファイルでDocker imageをビルドするには、下記のコマンドを実行してください。

$ make build-local

Unit test (ユニットテスト)

To run unit tests, run the following command.

ユニットテストを実行するには、下記のコマンドを実行してください。

$ make test

Docs (ドキュメント)

To auto generate docs for dbt, run the following command. (ex. Snowflake)

dbtのドキュメントを自動生成するには、下記のコマンドを実行してください。(例: Snowflake)

$ cd quollio_core/dbt_projects/snowflake
$ dbt-osmosis yaml refactor \
--force-inheritance \
--project-dir ./ \
--profiles-dir ./profiles \
--vars '{query_role: <snowflake role>, sample_method: SAMPLE(10)}'

Push (プッシュ)

The push command in Makefile is for pushing the image to ECR. If you want to push the image to other container registry, please change the command.

Makefileのpushコマンドは、ECRにイメージをプッシュするためのものです。他のコンテナレジストリにイメージをプッシュする場合は、コマンドを変更してください。

License (ライセンス)

This library is licensed under the AGPL-3.0 License, but the dependencies are not licensed under the AGPL-3.0 License but under their own licenses. You may change the source code of the dependencies within the scope of their own licenses. Please refer to pyproject.toml for the dependencies.

このライブラリはAGPL-3.0ライセンスで保護されていますが、依存関係はAGPL-3.0ライセンスではなく、それぞれのライセンスで保護されています。依存関係のソースコードは、それぞれのライセンスの範囲内で変更することができます。依存関係については、pyproject.tomlを参照してください。

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

quollio_core-0.8.6.tar.gz (69.8 kB view details)

Uploaded Source

Built Distribution

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

quollio_core-0.8.6-py3-none-any.whl (99.9 kB view details)

Uploaded Python 3

File details

Details for the file quollio_core-0.8.6.tar.gz.

File metadata

  • Download URL: quollio_core-0.8.6.tar.gz
  • Upload date:
  • Size: 69.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for quollio_core-0.8.6.tar.gz
Algorithm Hash digest
SHA256 a9bdee093eecac9d5e713d2f89ce38d442480c50a5e42a138f7569ee31f8cf65
MD5 c9e292e01606eb3b143a49d04dc17088
BLAKE2b-256 ad5fc46ec5947c08c49294f688ca6417e3c7db01a75ed3ff57f22e35a1cf123b

See more details on using hashes here.

File details

Details for the file quollio_core-0.8.6-py3-none-any.whl.

File metadata

  • Download URL: quollio_core-0.8.6-py3-none-any.whl
  • Upload date:
  • Size: 99.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for quollio_core-0.8.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5b6cf8b4f64249f154c9b79899d1c5bf4929e2851a41e1992813867491cbb898
MD5 02d230513d82bffc08e37a90a4db43de
BLAKE2b-256 ae979adb8e3fb90eda60478c1549e3fbde2a2ab6bfaa3c8bfbcc6cf45f6a315a

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