{"id":19179719,"url":"https://github.com/holistics/holistics_dbt","last_synced_at":"2026-03-05T06:01:20.396Z","repository":{"id":245387207,"uuid":"818098846","full_name":"holistics/holistics_dbt","owner":"holistics","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-12T03:40:11.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-11-22T06:04:31.010Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holistics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-21T05:22:12.000Z","updated_at":"2024-07-12T03:40:15.000Z","dependencies_parsed_at":"2024-06-21T23:13:17.082Z","dependency_job_id":"ffa6d71b-5ce3-434e-80c5-1bf771729e85","html_url":"https://github.com/holistics/holistics_dbt","commit_stats":null,"previous_names":["holistics/holistics_dbt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/holistics/holistics_dbt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holistics%2Fholistics_dbt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holistics%2Fholistics_dbt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holistics%2Fholistics_dbt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holistics%2Fholistics_dbt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holistics","download_url":"https://codeload.github.com/holistics/holistics_dbt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holistics%2Fholistics_dbt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30111779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T10:44:29.073Z","updated_at":"2026-03-05T06:01:20.367Z","avatar_url":"https://github.com/holistics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Holistics DBT\n\nHolistics-DBT is a generic library for integrating DBT with Holistics.\nCurrently, it focuses on synchronizing Holistics data models with dbt using `manifest.json` and `catalog.json` files\n\n**Supported databases:**\n- BigQuery\n- (more to come later)\n\n## Install\n- `pip install holistics-dbt`\n\n## Usage\n- Import the `AmlGen` and `Dbt` classes\n- Provide the path to your `manifest.json` and `catalog.json` files\n  - The `catalog.json` can be obtained by running `dbt docs generate`\n- Run the `AmlGen#gen_table_models` to generate the Holistics data models\n- Call `to_s` on each model to get the AML text\n\n```python\nfrom holistics_dbt.aml_gen import AmlGen\nfrom holistics_dbt.dbt import Dbt\n\ndbt = Dbt(\n  manifest_path='target/manifest.json',\n  catalog_path='target/catalog.json'\n)\n\naml_gen = AmlGen(dbt_artifact=dbt)\n\ntable_models = aml_gen.gen_table_models()\n\nfor table_model in table_models:\n  print(table_model.to_s())\n```\n\nOutput:\n```\nModel model_ecommerce_dbt_model_cities {\n  type: 'table'\n  label: ''\n  description: ''\n  owner: ''\n  data_source_name: 'airy-berm-145910'\n  table_name: '`ecommerce`.`model_cities`'\n\n  dimension id {\n    type: 'number'\n    hidden: false\n    definition: @sql {{ #SOURCE.id }};;\n    label: 'id'\n  }\n\n  dimension name {\n    type: 'text'\n    hidden: false\n    definition: @sql {{ #SOURCE.name }};;\n    label: 'name'\n  }\n}\n```\n\n## Customization\n\nThe `gen_table_models` return a list of `AmlTableModel` objects which are just plain Python objects. You can see the class definition at [aml_table_model.py](https://github.com/holistics/holistics_dbt/blob/master/holistics_dbt/aml_table_model.py).\n\nFeel free to modify the class to suit your needs, and then call `to_s` to get the AML codes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholistics%2Fholistics_dbt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholistics%2Fholistics_dbt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholistics%2Fholistics_dbt/lists"}