airflow-dbt-python 3.0.4__tar.gz → 3.1.0__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 (28) hide show
  1. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/PKG-INFO +2 -2
  2. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/README.md +1 -1
  3. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/__version__.py +1 -1
  4. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/hooks/target.py +35 -0
  5. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python.egg-info/PKG-INFO +2 -2
  6. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/pyproject.toml +1 -1
  7. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/LICENSE +0 -0
  8. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/__init__.py +0 -0
  9. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/hooks/__init__.py +0 -0
  10. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/hooks/dbt.py +0 -0
  11. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/hooks/fs/__init__.py +0 -0
  12. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/hooks/fs/gcs.py +0 -0
  13. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/hooks/fs/git.py +0 -0
  14. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/hooks/fs/local.py +0 -0
  15. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/hooks/fs/s3.py +0 -0
  16. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/operators/__init__.py +0 -0
  17. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/operators/dbt.py +0 -0
  18. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/utils/__init__.py +0 -0
  19. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/utils/configs.py +0 -0
  20. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/utils/enums.py +0 -0
  21. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/utils/env.py +0 -0
  22. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/utils/url.py +0 -0
  23. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python/utils/version.py +0 -0
  24. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python.egg-info/SOURCES.txt +0 -0
  25. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python.egg-info/dependency_links.txt +0 -0
  26. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python.egg-info/requires.txt +0 -0
  27. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/airflow_dbt_python.egg-info/top_level.txt +0 -0
  28. {airflow_dbt_python-3.0.4 → airflow_dbt_python-3.1.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airflow-dbt-python
3
- Version: 3.0.4
3
+ Version: 3.1.0
4
4
  Summary: A collection of Airflow operators, hooks, and utilities to execute dbt commands
5
5
  Author-email: Tomás Farías Santana <tomas@tomasfarias.dev>
6
6
  License-Expression: MIT
@@ -51,7 +51,7 @@ Dynamic: license-file
51
51
 
52
52
  [![PyPI version](https://img.shields.io/pypi/v/airflow-dbt-python?style=plastic)](https://pypi.org/project/airflow-dbt-python/)
53
53
  [![CI testing](https://github.com/tomasfarias/airflow-dbt-python/actions/workflows/ci.yaml/badge.svg)](https://github.com/tomasfarias/airflow-dbt-python/actions)
54
- [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
54
+ [![Code style: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
55
55
  [![Test coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tomasfarias/81ef37701aa088d18db8a58ce07c79c7/raw/covbadge.json)](https://github.com/tomasfarias/airflow-dbt-python/actions)
56
56
  [![Documentation](https://readthedocs.org/projects/airflow-dbt-python/badge/?version=latest)](https://airflow-dbt-python.readthedocs.io/en/latest/?badge=latest)
57
57
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![PyPI version](https://img.shields.io/pypi/v/airflow-dbt-python?style=plastic)](https://pypi.org/project/airflow-dbt-python/)
4
4
  [![CI testing](https://github.com/tomasfarias/airflow-dbt-python/actions/workflows/ci.yaml/badge.svg)](https://github.com/tomasfarias/airflow-dbt-python/actions)
5
- [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
5
+ [![Code style: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
6
6
  [![Test coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tomasfarias/81ef37701aa088d18db8a58ce07c79c7/raw/covbadge.json)](https://github.com/tomasfarias/airflow-dbt-python/actions)
7
7
  [![Documentation](https://readthedocs.org/projects/airflow-dbt-python/badge/?version=latest)](https://airflow-dbt-python.readthedocs.io/en/latest/?badge=latest)
8
8
 
@@ -3,4 +3,4 @@
3
3
  __author__ = "Tomás Farías Santana"
4
4
  __copyright__ = "Copyright 2021 Tomás Farías Santana"
5
5
  __title__ = "airflow-dbt-python"
6
- __version__ = "3.0.4"
6
+ __version__ = "3.1.0"
@@ -492,3 +492,38 @@ class DbtSparkHook(DbtConnectionHook):
492
492
  ),
493
493
  ]
494
494
  conn_extra_params = []
495
+
496
+
497
+ class DbtTrinoHook(DbtConnectionHook):
498
+ """A hook to interact with dbt using a Trino connection."""
499
+
500
+ conn_type = "trino"
501
+ hook_name = "dbt Trino Hook"
502
+ airflow_conn_types = (conn_type,)
503
+
504
+ conn_params = [
505
+ "host",
506
+ DbtConnectionParam("schema", default="public"),
507
+ DbtConnectionParam("login", "user"),
508
+ "password",
509
+ DbtConnectionParam("port", default=443),
510
+ ]
511
+
512
+ conn_extra_params = [
513
+ DbtConnectionParam("type", default="trino"),
514
+ DbtConnectionParam("method", default="none"),
515
+ DbtConnectionParam("http_scheme", default="https"),
516
+ DbtConnectionParam("verify", default=True),
517
+ DbtConnectionParam("database", "catalog", "hive"),
518
+ "catalog",
519
+ "host",
520
+ "port",
521
+ DbtConnectionParam("user", "user"),
522
+ "password",
523
+ "schema",
524
+ "session_properties",
525
+ "http_headers",
526
+ "role",
527
+ "client_tags",
528
+ "source",
529
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airflow-dbt-python
3
- Version: 3.0.4
3
+ Version: 3.1.0
4
4
  Summary: A collection of Airflow operators, hooks, and utilities to execute dbt commands
5
5
  Author-email: Tomás Farías Santana <tomas@tomasfarias.dev>
6
6
  License-Expression: MIT
@@ -51,7 +51,7 @@ Dynamic: license-file
51
51
 
52
52
  [![PyPI version](https://img.shields.io/pypi/v/airflow-dbt-python?style=plastic)](https://pypi.org/project/airflow-dbt-python/)
53
53
  [![CI testing](https://github.com/tomasfarias/airflow-dbt-python/actions/workflows/ci.yaml/badge.svg)](https://github.com/tomasfarias/airflow-dbt-python/actions)
54
- [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
54
+ [![Code style: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
55
55
  [![Test coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tomasfarias/81ef37701aa088d18db8a58ce07c79c7/raw/covbadge.json)](https://github.com/tomasfarias/airflow-dbt-python/actions)
56
56
  [![Documentation](https://readthedocs.org/projects/airflow-dbt-python/badge/?version=latest)](https://airflow-dbt-python.readthedocs.io/en/latest/?badge=latest)
57
57
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "airflow-dbt-python"
3
- version = "3.0.4"
3
+ version = "3.1.0"
4
4
  description = "A collection of Airflow operators, hooks, and utilities to execute dbt commands"
5
5
  authors = [{ name = "Tomás Farías Santana", email = "tomas@tomasfarias.dev" }]
6
6
  license = "MIT"