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.
Files changed (33) hide show
  1. {model2data-0.2.2 → model2data-0.2.3}/PKG-INFO +1 -1
  2. model2data-0.2.3/model2data/dbt/templates/dbt_project.yml.jinja +29 -0
  3. model2data-0.2.3/model2data/dbt/templates/macros/generate_schema_name.sql +9 -0
  4. model2data-0.2.3/model2data/dbt/templates/profiles.yml.jinja +7 -0
  5. {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/PKG-INFO +1 -1
  6. {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/SOURCES.txt +3 -0
  7. {model2data-0.2.2 → model2data-0.2.3}/pyproject.toml +7 -1
  8. {model2data-0.2.2 → model2data-0.2.3}/LICENSE +0 -0
  9. {model2data-0.2.2 → model2data-0.2.3}/README.md +0 -0
  10. {model2data-0.2.2 → model2data-0.2.3}/model2data/__init__.py +0 -0
  11. {model2data-0.2.2 → model2data-0.2.3}/model2data/cli.py +0 -0
  12. {model2data-0.2.2 → model2data-0.2.3}/model2data/dbt/__init__.py +0 -0
  13. {model2data-0.2.2 → model2data-0.2.3}/model2data/dbt/project.py +0 -0
  14. {model2data-0.2.2 → model2data-0.2.3}/model2data/dbt/tests.py +0 -0
  15. {model2data-0.2.2 → model2data-0.2.3}/model2data/generate/__init__.py +0 -0
  16. {model2data-0.2.2 → model2data-0.2.3}/model2data/generate/core.py +0 -0
  17. {model2data-0.2.2 → model2data-0.2.3}/model2data/generate/faker.py +0 -0
  18. {model2data-0.2.2 → model2data-0.2.3}/model2data/generate/relationships.py +0 -0
  19. {model2data-0.2.2 → model2data-0.2.3}/model2data/parse/__init__.py +0 -0
  20. {model2data-0.2.2 → model2data-0.2.3}/model2data/parse/dbml.py +0 -0
  21. {model2data-0.2.2 → model2data-0.2.3}/model2data/utils.py +0 -0
  22. {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/dependency_links.txt +0 -0
  23. {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/entry_points.txt +0 -0
  24. {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/requires.txt +0 -0
  25. {model2data-0.2.2 → model2data-0.2.3}/model2data.egg-info/top_level.txt +0 -0
  26. {model2data-0.2.2 → model2data-0.2.3}/setup.cfg +0 -0
  27. {model2data-0.2.2 → model2data-0.2.3}/tests/test_cli.py +0 -0
  28. {model2data-0.2.2 → model2data-0.2.3}/tests/test_coverage_gaps.py +0 -0
  29. {model2data-0.2.2 → model2data-0.2.3}/tests/test_dbml_parser.py +0 -0
  30. {model2data-0.2.2 → model2data-0.2.3}/tests/test_dbt_naming.py +0 -0
  31. {model2data-0.2.2 → model2data-0.2.3}/tests/test_dbt_project.py +0 -0
  32. {model2data-0.2.2 → model2data-0.2.3}/tests/test_dbt_tests.py +0 -0
  33. {model2data-0.2.2 → model2data-0.2.3}/tests/test_generation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: model2data
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Generate analytics-ready datasets from DBML models
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -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
@@ -0,0 +1,9 @@
1
+ {% macro generate_schema_name(custom_schema_name, node) %}
2
+
3
+ {%- set default_schema = target.schema -%}
4
+ {%- if custom_schema_name is none -%}
5
+ {{ default_schema }}
6
+ {%- else -%}
7
+ {{ custom_schema_name | trim }}
8
+ {%- endif -%}
9
+ {%- endmacro %}
@@ -0,0 +1,7 @@
1
+ {{ profile_name }}:
2
+ target: dev
3
+ outputs:
4
+ dev:
5
+ type: duckdb
6
+ threads: 1
7
+ path: "{{ profile_name }}.duckdb"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: model2data
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Generate analytics-ready datasets from DBML models
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -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.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