model2data 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {model2data-0.2.2 → model2data-0.2.3}/PKG-INFO +1 -1
- model2data-0.2.3/model2data/dbt/templates/dbt_project.yml.jinja +29 -0
- model2data-0.2.3/model2data/dbt/templates/macros/generate_schema_name.sql +9 -0
- model2data-0.2.3/model2data/dbt/templates/profiles.yml.jinja +7 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/PKG-INFO +1 -1
- {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/SOURCES.txt +3 -0
- {model2data-0.2.2 → model2data-0.2.3}/pyproject.toml +7 -1
- {model2data-0.2.2 → model2data-0.2.3}/LICENSE +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/README.md +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/__init__.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/cli.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/dbt/__init__.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/dbt/project.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/dbt/tests.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/generate/__init__.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/generate/core.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/generate/faker.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/generate/relationships.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/parse/__init__.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/parse/dbml.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data/utils.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/dependency_links.txt +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/entry_points.txt +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/requires.txt +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/top_level.txt +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/setup.cfg +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/tests/test_cli.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/tests/test_coverage_gaps.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/tests/test_dbml_parser.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/tests/test_dbt_naming.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/tests/test_dbt_project.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/tests/test_dbt_tests.py +0 -0
- {model2data-0.2.2 → model2data-0.2.3}/tests/test_generation.py +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: '{{ project_name }}'
|
|
2
|
+
version: '1.0'
|
|
3
|
+
config-version: 2
|
|
4
|
+
|
|
5
|
+
profile: '{{ profile_name }}'
|
|
6
|
+
|
|
7
|
+
model-paths: ["models"]
|
|
8
|
+
analysis-paths: ["analyses"]
|
|
9
|
+
test-paths: ["data-tests"]
|
|
10
|
+
seed-paths: ["seeds"]
|
|
11
|
+
macro-paths: ["macros"]
|
|
12
|
+
snapshot-paths: ["snapshots"]
|
|
13
|
+
|
|
14
|
+
target-path: "target"
|
|
15
|
+
clean-targets:
|
|
16
|
+
- "target"
|
|
17
|
+
- "dbt_packages"
|
|
18
|
+
|
|
19
|
+
models:
|
|
20
|
+
{{ project_name }}:
|
|
21
|
+
staging:
|
|
22
|
+
+schema: staging
|
|
23
|
+
+materialized: view
|
|
24
|
+
marts:
|
|
25
|
+
+schema: marts
|
|
26
|
+
+materialized: table
|
|
27
|
+
|
|
28
|
+
seeds:
|
|
29
|
+
+schema: raw
|
|
@@ -13,6 +13,9 @@ model2data.egg-info/top_level.txt
|
|
|
13
13
|
model2data/dbt/__init__.py
|
|
14
14
|
model2data/dbt/project.py
|
|
15
15
|
model2data/dbt/tests.py
|
|
16
|
+
model2data/dbt/templates/dbt_project.yml.jinja
|
|
17
|
+
model2data/dbt/templates/profiles.yml.jinja
|
|
18
|
+
model2data/dbt/templates/macros/generate_schema_name.sql
|
|
16
19
|
model2data/generate/__init__.py
|
|
17
20
|
model2data/generate/core.py
|
|
18
21
|
model2data/generate/faker.py
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "model2data"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.3"
|
|
8
8
|
description = "Generate analytics-ready datasets from DBML models"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -36,6 +36,12 @@ model2data = "model2data.cli:app"
|
|
|
36
36
|
where = ["."]
|
|
37
37
|
include = ["model2data*"]
|
|
38
38
|
|
|
39
|
+
[tool.setuptools.package-data]
|
|
40
|
+
model2data = [
|
|
41
|
+
"dbt/templates/**/*",
|
|
42
|
+
"examples/**/*",
|
|
43
|
+
]
|
|
44
|
+
|
|
39
45
|
# Ruff configuration (fast Python linter)
|
|
40
46
|
[tool.ruff]
|
|
41
47
|
target-version = "py39"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|