Skip to main content

dbt-buddy

Autogenerated documentation for dbt-models using YandexGPT LLM

dbt-buddy is a python package with CLI that allows automatically create YAML-based documenation for existing dbt-model. Built-in method fill_yaml_with_column_description() will add columns description in Russian language using LLM-model YandexGPT.

Installation

  1. Install uv if you haven't already:
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Clone the repository and navigate to the project directory:
git clone <repository-url>
cd dbt-buddy
  1. Install dependencies:
uv sync

Prerequisites

  1. You need to create .env file in the dbt-project working directory and add the following secret:
    • API_KEY=<secret key> - required to access YandexGPT API.
    • CATALOG_ID=<catalog identifier> - Yandex Cloud catalog ID is a part of API request.

Available commands

  1. document - generates YAML-based documentation with AI-proposed columms description.

document

You can create documentation by simply running the command:

$ buddy document --model <dbt-model name>

The result will be a text string in the console, formatted in a documentation format acceptable for dbt.

CLI Options

  1. -m <model_name>, --model <model_name>(required). The name of existing dbt-model.
  2. --project-dir. The path to directory with dbt_project.yml. Default is the current working directory.
  3. --profiles-dir. The path to directory with profiles.yml. Default is the current working directory.
  4. -s, --save. If specified, the generated documentation is saved in a YAML-file in the same directory and with the same name as the specified model.
  5. -e, --examples. If specified, YandexGPT will try to add column's possible accepted values (especially relevant if the SQL-query explicitly specifies values with the CASE statement).
  6. -v, --verbose. If specified, the response from the YandexGPT API will be displayed in the console.

You can get the full list of existing options by running the command:

$ buddy document --help

Metadata

Release files for dbt-buddy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbt-buddy 0.1.0
File Size Uploaded
dbt_buddy-0.1.0.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbt-buddy 0.1.0
File Interpreter ABI Platform
dbt_buddy-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.3 kB

Release files / dbt_buddy-0.1.0.tar.gz

Download URL dbt_buddy-0.1.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2ee7854cf2ed9432bea455700b5fbcc907dbfca6ab4fb218344fec1e47bb483f
BLAKE2b-256 checksum
How to use checksums
a21c00c953bcbb51c51c19092d0a117918d2f8d47d0f0f79a4aeb77a9332fdf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.10

Release files / dbt_buddy-0.1.0-py3-none-any.whl

Download URL dbt_buddy-0.1.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07deee8f3db91a1b2c38e7d67b03d534a1543b9fb550a9c428b7fc914e4b1a75
BLAKE2b-256 checksum
How to use checksums
e46800b9ae2c0b895867110787338c7c5027e855ae86646da6742a41dea4c37b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.3

2 release files

0.0.2

2 release 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