bigeye-cli 0.3.53__tar.gz → 0.3.55__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 (35) hide show
  1. bigeye_cli-0.3.53/bigeye_cli/CLI_DOCS.md → bigeye_cli-0.3.55/PKG-INFO +49 -2
  2. bigeye_cli-0.3.53/PKG-INFO → bigeye_cli-0.3.55/bigeye_cli/CLI_DOCS.md +27 -23
  3. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/deltas/deltas_commands.py +2 -2
  4. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/lineage/lineage_commands.py +6 -27
  5. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/pyproject.toml +3 -5
  6. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/LICENSE +0 -0
  7. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/__init__.py +0 -0
  8. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/__main__.py +0 -0
  9. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/__version__.py +0 -0
  10. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/bigconfig/__init__.py +0 -0
  11. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/bigconfig/bigconfig_commands.py +0 -0
  12. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/bigconfig/bigconfig_options.py +0 -0
  13. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/catalog/__init__.py +0 -0
  14. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/catalog/catalog_commands.py +0 -0
  15. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/collections/__init__.py +0 -0
  16. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/collections/collection_commands.py +0 -0
  17. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/configure/__init__.py +0 -0
  18. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/configure/configure_commands.py +0 -0
  19. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/deltas/__init__.py +0 -0
  20. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/enums.py +0 -0
  21. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/exceptions/__init__.py +0 -0
  22. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/exceptions/exceptions.py +0 -0
  23. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/functions.py +0 -0
  24. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/global_options.py +0 -0
  25. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/issues/__init__.py +0 -0
  26. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/issues/issue_commands.py +0 -0
  27. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/lineage/__init__.py +0 -0
  28. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/metric/__init__.py +0 -0
  29. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/metric/metric_commands.py +0 -0
  30. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/model/__init__.py +0 -0
  31. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/model/cicd_conf.py +0 -0
  32. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/model/github_report.py +0 -0
  33. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/model/vendor_report.py +0 -0
  34. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/workspace/__init__.py +0 -0
  35. {bigeye_cli-0.3.53 → bigeye_cli-0.3.55}/bigeye_cli/workspace/workspace_commands.py +0 -0
@@ -1,5 +1,26 @@
1
+ Metadata-Version: 2.1
2
+ Name: bigeye-cli
3
+ Version: 0.3.55
4
+ Summary: Bigeye CLI offers developer tools for maintaining your developer workspace.
5
+ Home-page: https://docs.bigeye.com/docs
6
+ License: Proprietary
7
+ Author: Bigeye
8
+ Author-email: support@bigeye.com
9
+ Requires-Python: >=3.9.0,<4.0.0
10
+ Classifier: License :: Other/Proprietary License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Requires-Dist: PyGithub (>=1.57,<2.0)
17
+ Requires-Dist: bigeye-sdk (>=0.4.75,<0.5.0)
18
+ Requires-Dist: click (>=8.0.4,<9.0.0)
19
+ Requires-Dist: rich (>=12.4.4,<13.0.0)
20
+ Description-Content-Type: text/markdown
21
+
1
22
  # **Bigeye CLI**
2
- Version: 0.3.52
23
+ Version: 0.3.55
3
24
  ## Installation
4
25
 
5
26
  **Setting up your local/build environment**
@@ -656,6 +677,7 @@ $ bigeye catalog [OPTIONS] COMMAND [ARGS]...
656
677
  * `get-metric-info`: Outputs metric info to a file.
657
678
  * `get-metric-queries`: Gets the debug queries for all metrics by...
658
679
  * `get-table-info`: Outputs table info to a file for an entire...
680
+ * `ingest-dbt-core-run-info`: Ingest manifest.json and run_results.json...
659
681
  * `ingest-owners-from-dbt`: Ingest table owners from dbt manifest.json...
660
682
  * `rebuild`: Rebuilds/Reprofiles a source by warehouse...
661
683
  * `regen-autometrics`: Regenerates Autometrics by warehouse id OR...
@@ -917,6 +939,30 @@ $ bigeye catalog get-table-info [OPTIONS]
917
939
  * `-op, --output_path TEXT`: File to write the failed metric configurations to. [required]
918
940
  * `--help`: Show this message and exit.
919
941
 
942
+ ## `bigeye catalog ingest-dbt-core-run-info`
943
+
944
+ Ingest manifest.json and run_results.json from different dbt commands.
945
+
946
+ **Usage**:
947
+
948
+ ```console
949
+ $ bigeye catalog ingest-dbt-core-run-info [OPTIONS]
950
+ ```
951
+
952
+ **Options**:
953
+
954
+ * `-b, --bigeye_conf TEXT`: Bigeye Credential File Path [env var: BIGEYE_API_CRED_FILE]
955
+ * `-c, --config_file TEXT`: Bigeye CLI Configuration File Path [env var: BIGEYE_API_CONFIG_FILE]
956
+ * `-w, --workspace TEXT`: Name of the workspace configuration. [env var: BIGEYE_WORKSPACE; default: DEFAULT]
957
+ * `-tp, --target_path TEXT`: The path to the target directory created with dbt run, build, and test commands. [default: ./target]
958
+ * `-pn, --project_name TEXT`: The name of the dbt project. Will attempt to parse from metadata section of manifest.json, if not present
959
+ * `-jn, --job_name TEXT`: The name of the dbt job.
960
+ * `-jid, --job_run_id TEXT`: The ID of the dbt job run.
961
+ * `-purl, --project_url TEXT`: The URL of the project.
962
+ * `-jurl, --job_url TEXT`: The URL of the job.
963
+ * `-jrurl, --job_run_url TEXT`: The URL of the job run.
964
+ * `--help`: Show this message and exit.
965
+
920
966
  ## `bigeye catalog ingest-owners-from-dbt`
921
967
 
922
968
  Ingest table owners from dbt manifest.json file.
@@ -1717,7 +1763,7 @@ $ bigeye lineage delete-relation [OPTIONS]
1717
1763
 
1718
1764
  ## `bigeye lineage infer-relations`
1719
1765
 
1720
- Given an upstream and downstream path, infers lineage based on table names and creates the relationships.
1766
+ Given an upstream and downstream path, infers lineage based on table/column names and creates the edges.
1721
1767
 
1722
1768
  **Usage**:
1723
1769
 
@@ -1735,3 +1781,4 @@ $ bigeye lineage infer-relations [OPTIONS]
1735
1781
  * `-mt, --match_type [strict|fuzzy]`: How to match tables between the source and target destinations. Strict will only create relations if table names match exactly, Fuzzy will attempt to create relations using a fuzzy match. [default: MatchType.STRICT]
1736
1782
  * `--help`: Show this message and exit.
1737
1783
 
1784
+
@@ -1,25 +1,5 @@
1
- Metadata-Version: 2.1
2
- Name: bigeye-cli
3
- Version: 0.3.53
4
- Summary: Bigeye CLI offers developer tools for maintaining your developer workspace.
5
- Home-page: https://docs.bigeye.com/docs
6
- License: Proprietary
7
- Author: Bigeye
8
- Author-email: support@bigeye.com
9
- Requires-Python: >=3.9.0,<4.0.0
10
- Classifier: License :: Other/Proprietary License
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.9
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.11
15
- Requires-Dist: PyGithub (>=1.57,<2.0)
16
- Requires-Dist: bigeye-sdk (>=0.4.73,<0.5.0)
17
- Requires-Dist: click (>=8.0.4,<9.0.0)
18
- Requires-Dist: rich (>=12.4.4,<13.0.0)
19
- Description-Content-Type: text/markdown
20
-
21
1
  # **Bigeye CLI**
22
- Version: 0.3.52
2
+ Version: 0.3.55
23
3
  ## Installation
24
4
 
25
5
  **Setting up your local/build environment**
@@ -676,6 +656,7 @@ $ bigeye catalog [OPTIONS] COMMAND [ARGS]...
676
656
  * `get-metric-info`: Outputs metric info to a file.
677
657
  * `get-metric-queries`: Gets the debug queries for all metrics by...
678
658
  * `get-table-info`: Outputs table info to a file for an entire...
659
+ * `ingest-dbt-core-run-info`: Ingest manifest.json and run_results.json...
679
660
  * `ingest-owners-from-dbt`: Ingest table owners from dbt manifest.json...
680
661
  * `rebuild`: Rebuilds/Reprofiles a source by warehouse...
681
662
  * `regen-autometrics`: Regenerates Autometrics by warehouse id OR...
@@ -937,6 +918,30 @@ $ bigeye catalog get-table-info [OPTIONS]
937
918
  * `-op, --output_path TEXT`: File to write the failed metric configurations to. [required]
938
919
  * `--help`: Show this message and exit.
939
920
 
921
+ ## `bigeye catalog ingest-dbt-core-run-info`
922
+
923
+ Ingest manifest.json and run_results.json from different dbt commands.
924
+
925
+ **Usage**:
926
+
927
+ ```console
928
+ $ bigeye catalog ingest-dbt-core-run-info [OPTIONS]
929
+ ```
930
+
931
+ **Options**:
932
+
933
+ * `-b, --bigeye_conf TEXT`: Bigeye Credential File Path [env var: BIGEYE_API_CRED_FILE]
934
+ * `-c, --config_file TEXT`: Bigeye CLI Configuration File Path [env var: BIGEYE_API_CONFIG_FILE]
935
+ * `-w, --workspace TEXT`: Name of the workspace configuration. [env var: BIGEYE_WORKSPACE; default: DEFAULT]
936
+ * `-tp, --target_path TEXT`: The path to the target directory created with dbt run, build, and test commands. [default: ./target]
937
+ * `-pn, --project_name TEXT`: The name of the dbt project. Will attempt to parse from metadata section of manifest.json, if not present
938
+ * `-jn, --job_name TEXT`: The name of the dbt job.
939
+ * `-jid, --job_run_id TEXT`: The ID of the dbt job run.
940
+ * `-purl, --project_url TEXT`: The URL of the project.
941
+ * `-jurl, --job_url TEXT`: The URL of the job.
942
+ * `-jrurl, --job_run_url TEXT`: The URL of the job run.
943
+ * `--help`: Show this message and exit.
944
+
940
945
  ## `bigeye catalog ingest-owners-from-dbt`
941
946
 
942
947
  Ingest table owners from dbt manifest.json file.
@@ -1737,7 +1742,7 @@ $ bigeye lineage delete-relation [OPTIONS]
1737
1742
 
1738
1743
  ## `bigeye lineage infer-relations`
1739
1744
 
1740
- Given an upstream and downstream path, infers lineage based on table names and creates the relationships.
1745
+ Given an upstream and downstream path, infers lineage based on table/column names and creates the edges.
1741
1746
 
1742
1747
  **Usage**:
1743
1748
 
@@ -1755,4 +1760,3 @@ $ bigeye lineage infer-relations [OPTIONS]
1755
1760
  * `-mt, --match_type [strict|fuzzy]`: How to match tables between the source and target destinations. Strict will only create relations if table names match exactly, Fuzzy will attempt to create relations using a fuzzy match. [default: MatchType.STRICT]
1756
1761
  * `--help`: Show this message and exit.
1757
1762
 
1758
-
@@ -96,7 +96,7 @@ def suggest_deltas(
96
96
  target_selector[1]
97
97
  )
98
98
  matching_target_tables = (
99
- lineage_controller.infer_relationships_from_lists_of_tables(
99
+ lineage_controller.infer_relationships_from_lists(
100
100
  target_1_tables, target_2_tables
101
101
  )
102
102
  )
@@ -104,7 +104,7 @@ def suggest_deltas(
104
104
  mtt[0].name: mtt[1] for mtt in matching_target_tables
105
105
  }
106
106
 
107
- matching_tables = lineage_controller.infer_relationships_from_lists_of_tables(
107
+ matching_tables = lineage_controller.infer_relationships_from_lists(
108
108
  upstream=upstream_tables, downstream=target_1_tables, match_type=match_type
109
109
  )
110
110
 
@@ -1,7 +1,6 @@
1
1
  from typing import Optional
2
2
 
3
3
  import typer
4
- from rich.progress import track
5
4
 
6
5
 
7
6
  from bigeye_cli.exceptions.exceptions import InvalidEntityException
@@ -160,35 +159,15 @@ def infer_relations(
160
159
  , case_sensitive=False
161
160
  )
162
161
  ):
163
- """Given an upstream and downstream path, infers lineage based on table names and creates the relationships."""
162
+ """Given an upstream and downstream path, infers lineage based on table/column names and creates the edges."""
164
163
  client = cli_client_factory(bigeye_conf, config_file, workspace)
165
164
  lineage_controller = LineageController(client)
166
165
 
167
- upstream_tables = lineage_controller.get_tables_from_selector(
168
- selector=upstream_selector
169
- )
170
- downstream_tables = lineage_controller.get_tables_from_selector(
171
- selector=downstream_selector
172
- )
173
-
174
- matching_tables = lineage_controller.infer_relationships_from_lists_of_tables(upstream=upstream_tables,
175
- downstream=downstream_tables,
176
- match_type=match_type)
166
+ # Get matching tables
167
+ matching_tables = lineage_controller.get_matching_tables_from_selectors(upstream_selector=upstream_selector,
168
+ downstream_selector=downstream_selector,
169
+ match_type=match_type)
177
170
 
178
171
  log.info(f'Identified {len(matching_tables)} table relationships between upstream and downstream sources.')
179
172
 
180
- count_successful_relations = 0
181
- for match in track(matching_tables, description="Creating relationships..."):
182
- upstream = match[0]
183
- downstream = match[1]
184
- try:
185
- lineage_controller.create_relation_from_tables(upstream=upstream, downstream=downstream)
186
- count_successful_relations += 1
187
- except Exception as e:
188
- log.warning(f'Failed to create relationship between upstream table: {upstream.name} and downstream table: '
189
- f'{downstream.name}. Exception: {e}')
190
-
191
- log.info(
192
- f"Successfully created {count_successful_relations} of {len(matching_tables)}"
193
- f" table relationships."
194
- )
173
+ lineage_controller.infer_column_level_lineage_from_tables(matching_tables)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bigeye-cli"
3
- version = "0.3.53"
3
+ version = "0.3.55"
4
4
  description = "Bigeye CLI offers developer tools for maintaining your developer workspace."
5
5
  license = "Proprietary"
6
6
  authors = ["Bigeye <support@bigeye.com>"]
@@ -19,19 +19,17 @@ bigeye = "bigeye_cli.__main__:app"
19
19
  [tool.poetry.dependencies]
20
20
  python = "^3.9.0"
21
21
  click = "^8.0.4"
22
- bigeye-sdk = "^0.4.73"
22
+ bigeye-sdk = "^0.4.75"
23
23
  rich = "^12.4.4"
24
24
  PyGithub = '^1.57'
25
25
 
26
26
  [tool.poetry.group.dev.dependencies]
27
27
  poethepoet = "^0.24.3"
28
- pylint = "^2.15.2"
29
- mypy = "^1.1.1"
30
28
 
31
29
 
32
30
  [tool.poe.tasks]
33
31
  pre_build = []
34
- pre_publish = ["clean", "docgen"]
32
+ pre_publish = ["clean"]
35
33
  post_publish = ["clean"]
36
34
 
37
35
  [tool.poe.poetry_hooks]
File without changes