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
- Install uv if you haven't already:
curl -LsSf https://astral.sh/uv/install.sh | sh
- Clone the repository and navigate to the project directory:
git clone <repository-url>
cd dbt-buddy
- Install dependencies:
uv sync
Prerequisites
- You need to create
.envfile 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
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
-m <model_name>,--model <model_name>(required). The name of existing dbt-model.--project-dir. The path to directory with dbt_project.yml. Default is the current working directory.--profiles-dir. The path to directory with profiles.yml. Default is the current working directory.-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.-e,--examples. If specified, YandexGPT will try to add column's possible accepted values (especially relevant if the SQL-query explicitly specifies values with theCASEstatement).-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)
| File | Size | Uploaded | |
|---|---|---|---|
| dbt_buddy-0.1.0.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|