bigeye-cli 0.3.69__tar.gz → 0.5.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 (35) hide show
  1. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/PKG-INFO +12 -11
  2. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/CLI_DOCS.md +8 -5
  3. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/bigconfig/bigconfig_commands.py +61 -42
  4. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/bigconfig/bigconfig_options.py +7 -1
  5. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/lineage/lineage_commands.py +10 -1
  6. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/pyproject.toml +2 -2
  7. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/LICENSE +0 -0
  8. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/__init__.py +0 -0
  9. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/__main__.py +0 -0
  10. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/__version__.py +0 -0
  11. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/bigconfig/__init__.py +0 -0
  12. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/catalog/__init__.py +0 -0
  13. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/catalog/catalog_commands.py +0 -0
  14. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/collections/__init__.py +0 -0
  15. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/collections/collection_commands.py +0 -0
  16. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/configure/__init__.py +0 -0
  17. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/configure/configure_commands.py +0 -0
  18. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/deltas/__init__.py +0 -0
  19. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/deltas/deltas_commands.py +0 -0
  20. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/enums.py +0 -0
  21. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/exceptions/__init__.py +0 -0
  22. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/exceptions/exceptions.py +0 -0
  23. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/functions.py +0 -0
  24. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/global_options.py +0 -0
  25. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/issues/__init__.py +0 -0
  26. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/issues/issue_commands.py +0 -0
  27. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/lineage/__init__.py +0 -0
  28. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/metric/__init__.py +0 -0
  29. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/metric/metric_commands.py +0 -0
  30. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/model/__init__.py +0 -0
  31. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/model/cicd_conf.py +0 -0
  32. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/model/github_report.py +0 -0
  33. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/model/vendor_report.py +0 -0
  34. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/workspace/__init__.py +0 -0
  35. {bigeye_cli-0.3.69 → bigeye_cli-0.5.0}/bigeye_cli/workspace/workspace_commands.py +0 -0
@@ -1,7 +1,8 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.1
2
2
  Name: bigeye-cli
3
- Version: 0.3.69
3
+ Version: 0.5.0
4
4
  Summary: Bigeye CLI offers developer tools for maintaining your developer workspace.
5
+ Home-page: https://docs.bigeye.com/docs
5
6
  License: Proprietary
6
7
  Author: Bigeye
7
8
  Author-email: support@bigeye.com
@@ -11,17 +12,14 @@ Classifier: Programming Language :: Python :: 3
11
12
  Classifier: Programming Language :: Python :: 3.9
12
13
  Classifier: Programming Language :: Python :: 3.10
13
14
  Classifier: Programming Language :: Python :: 3.11
14
- Classifier: Programming Language :: Python :: 3.12
15
- Classifier: Programming Language :: Python :: 3.13
16
15
  Requires-Dist: PyGithub (>=1.57,<2.0)
17
- Requires-Dist: bigeye-sdk (>=0.4.84,<0.5.0)
16
+ Requires-Dist: bigeye-sdk (>=0.6.0,<0.7.0)
18
17
  Requires-Dist: click (>=8.0.4,<9.0.0)
19
18
  Requires-Dist: rich (>=12.4.4,<13.0.0)
20
- Project-URL: Homepage, https://docs.bigeye.com/docs
21
19
  Description-Content-Type: text/markdown
22
20
 
23
21
  # **Bigeye CLI**
24
- Version: 0.3.69
22
+ Version: 0.5.0
25
23
  ## Installation
26
24
 
27
25
  **Setting up your local/build environment**
@@ -632,9 +630,10 @@ $ bigeye bigconfig plan [OPTIONS]
632
630
  * `-op, --output_path TEXT`: Output path where reports and fixme files will be saved. If no output path is defined then current working directory will be used.
633
631
  * `-psn, --purge_source_name TEXT`: List of source names to purge E.g. -psn source_1 -psn source_2.
634
632
  * `-purge_all, --purge_all_sources`: Purge all sources: True or False.
635
- * `-nq, --no_queue`: Don&#x27;t submit to queue: True or False.
633
+ * `-nq, --no_queue`: Don&#x27;t submit to queue: True or False. [DEPRECATED]
636
634
  * `-r, --recursive`: Search all input directories recursively.
637
635
  * `-strict, --strict_mode`: API errors cause an exception if True. (Validation errors still cause an exception)
636
+ * `-n, --namespace TEXT`: The namespace for the deployment. (This must match across all files or namespace should not be set in files)
638
637
  * `-cicd, --cicd_report`: Add the report to a pull request. (Github only)
639
638
  * `--help`: Show this message and exit.
640
639
 
@@ -658,10 +657,11 @@ $ bigeye bigconfig apply [OPTIONS]
658
657
  * `-op, --output_path TEXT`: Output path where reports and fixme files will be saved. If no output path is defined then current working directory will be used.
659
658
  * `-psn, --purge_source_name TEXT`: List of source names to purge E.g. -psn source_1 -psn source_2.
660
659
  * `-purge_all, --purge_all_sources`: Purge all sources: True or False.
661
- * `-nq, --no_queue`: Don&#x27;t submit to queue: True or False.
660
+ * `-nq, --no_queue`: Don&#x27;t submit to queue: True or False. [DEPRECATED]
662
661
  * `-r, --recursive`: Search all input directories recursively.
663
662
  * `-strict, --strict_mode`: API errors cause an exception if True. (Validation errors still cause an exception)
664
663
  * `-auto_approve, --auto_approve`: Explicit plan approval is not needed prior to execution.
664
+ * `-n, --namespace TEXT`: The namespace for the deployment. (This must match across all files or namespace should not be set in files)
665
665
  * `--help`: Show this message and exit.
666
666
 
667
667
  ## `bigeye bigconfig export`
@@ -680,6 +680,7 @@ $ bigeye bigconfig export [OPTIONS]
680
680
  * `-c, --config_file TEXT`: Bigeye CLI Configuration File Path [env var: BIGEYE_API_CONFIG_FILE]
681
681
  * `-w, --workspace TEXT`: Name of the workspace configuration. [env var: BIGEYE_WORKSPACE; default: DEFAULT]
682
682
  * `-op, --output_path TEXT`: Output path where reports and fixme files will be saved. If no output path is defined then current working directory will be used.
683
+ * `-n, --namespace TEXT`: The namespace for the deployment. (This must match across all files or namespace should not be set in files)
683
684
  * `-cid, --collection_id INTEGER`: Collection ID of metrics to be exported.
684
685
  * `-tid, --table_id INTEGER`: Table ID of metrics to be exported.
685
686
  * `-mid, --metric_id INTEGER`: Metric ID of metrics to be exported.
@@ -1066,7 +1067,7 @@ $ bigeye catalog upsert-template [OPTIONS]
1066
1067
  * `-sn, --source_name TEXT`: The name of the source where the template will be defined
1067
1068
  * `-tn, --name TEXT`: The user defined name of the template
1068
1069
  * `-tb, --body TEXT`: The string to define the template
1069
- * `-rt, --returns [BOOLEAN|NUMERIC]`: The data type returned by the template; i.e. NUMERIC, BOOLEAN
1070
+ * `-rt, --returns [SimpleFieldType.BOOLEAN|SimpleFieldType.NUMERIC]`: The data type returned by the template; i.e. NUMERIC, BOOLEAN
1070
1071
  * `-p, --params TEXT`: A list of key/value pairs for parameters; ex. -p column=COLUMN_REFERENCE -p table=STRING
1071
1072
  * `-tf, --template_file TEXT`: A file containing a template definition.
1072
1073
  * `--help`: Show this message and exit.
@@ -1406,7 +1407,7 @@ $ bigeye metric dbt-tests-to-metrics [OPTIONS]
1406
1407
  * `-sf, --schema_file TEXT`: The path to the dbt schema file [required]
1407
1408
  * `-auto, --use_auto`: Use autothresholds over default constant
1408
1409
  * `-bigconfig, --to_bigconfig`: Convert the dbt tests to bigconfig.
1409
- * `-op, --output_path TEXT`: Output path where bigconfig file will be saved. If no output path is defined then current working directory will be used. Requires --to_bigconfig to be true. [default: /Users/christian/Projects/semantic-data-platform/bigeye-integrations/bigeye-cli]
1410
+ * `-op, --output_path TEXT`: Output path where bigconfig file will be saved. If no output path is defined then current working directory will be used. Requires --to_bigconfig to be true. [default: /home/runner/work/semantic-data-platform/semantic-data-platform/bigeye-integrations/bigeye-cli]
1410
1411
  * `--help`: Show this message and exit.
1411
1412
 
1412
1413
  # `bigeye issues`
@@ -1,5 +1,5 @@
1
1
  # **Bigeye CLI**
2
- Version: 0.3.69
2
+ Version: 0.5.0
3
3
  ## Installation
4
4
 
5
5
  **Setting up your local/build environment**
@@ -610,9 +610,10 @@ $ bigeye bigconfig plan [OPTIONS]
610
610
  * `-op, --output_path TEXT`: Output path where reports and fixme files will be saved. If no output path is defined then current working directory will be used.
611
611
  * `-psn, --purge_source_name TEXT`: List of source names to purge E.g. -psn source_1 -psn source_2.
612
612
  * `-purge_all, --purge_all_sources`: Purge all sources: True or False.
613
- * `-nq, --no_queue`: Don&#x27;t submit to queue: True or False.
613
+ * `-nq, --no_queue`: Don&#x27;t submit to queue: True or False. [DEPRECATED]
614
614
  * `-r, --recursive`: Search all input directories recursively.
615
615
  * `-strict, --strict_mode`: API errors cause an exception if True. (Validation errors still cause an exception)
616
+ * `-n, --namespace TEXT`: The namespace for the deployment. (This must match across all files or namespace should not be set in files)
616
617
  * `-cicd, --cicd_report`: Add the report to a pull request. (Github only)
617
618
  * `--help`: Show this message and exit.
618
619
 
@@ -636,10 +637,11 @@ $ bigeye bigconfig apply [OPTIONS]
636
637
  * `-op, --output_path TEXT`: Output path where reports and fixme files will be saved. If no output path is defined then current working directory will be used.
637
638
  * `-psn, --purge_source_name TEXT`: List of source names to purge E.g. -psn source_1 -psn source_2.
638
639
  * `-purge_all, --purge_all_sources`: Purge all sources: True or False.
639
- * `-nq, --no_queue`: Don&#x27;t submit to queue: True or False.
640
+ * `-nq, --no_queue`: Don&#x27;t submit to queue: True or False. [DEPRECATED]
640
641
  * `-r, --recursive`: Search all input directories recursively.
641
642
  * `-strict, --strict_mode`: API errors cause an exception if True. (Validation errors still cause an exception)
642
643
  * `-auto_approve, --auto_approve`: Explicit plan approval is not needed prior to execution.
644
+ * `-n, --namespace TEXT`: The namespace for the deployment. (This must match across all files or namespace should not be set in files)
643
645
  * `--help`: Show this message and exit.
644
646
 
645
647
  ## `bigeye bigconfig export`
@@ -658,6 +660,7 @@ $ bigeye bigconfig export [OPTIONS]
658
660
  * `-c, --config_file TEXT`: Bigeye CLI Configuration File Path [env var: BIGEYE_API_CONFIG_FILE]
659
661
  * `-w, --workspace TEXT`: Name of the workspace configuration. [env var: BIGEYE_WORKSPACE; default: DEFAULT]
660
662
  * `-op, --output_path TEXT`: Output path where reports and fixme files will be saved. If no output path is defined then current working directory will be used.
663
+ * `-n, --namespace TEXT`: The namespace for the deployment. (This must match across all files or namespace should not be set in files)
661
664
  * `-cid, --collection_id INTEGER`: Collection ID of metrics to be exported.
662
665
  * `-tid, --table_id INTEGER`: Table ID of metrics to be exported.
663
666
  * `-mid, --metric_id INTEGER`: Metric ID of metrics to be exported.
@@ -1044,7 +1047,7 @@ $ bigeye catalog upsert-template [OPTIONS]
1044
1047
  * `-sn, --source_name TEXT`: The name of the source where the template will be defined
1045
1048
  * `-tn, --name TEXT`: The user defined name of the template
1046
1049
  * `-tb, --body TEXT`: The string to define the template
1047
- * `-rt, --returns [BOOLEAN|NUMERIC]`: The data type returned by the template; i.e. NUMERIC, BOOLEAN
1050
+ * `-rt, --returns [SimpleFieldType.BOOLEAN|SimpleFieldType.NUMERIC]`: The data type returned by the template; i.e. NUMERIC, BOOLEAN
1048
1051
  * `-p, --params TEXT`: A list of key/value pairs for parameters; ex. -p column=COLUMN_REFERENCE -p table=STRING
1049
1052
  * `-tf, --template_file TEXT`: A file containing a template definition.
1050
1053
  * `--help`: Show this message and exit.
@@ -1384,7 +1387,7 @@ $ bigeye metric dbt-tests-to-metrics [OPTIONS]
1384
1387
  * `-sf, --schema_file TEXT`: The path to the dbt schema file [required]
1385
1388
  * `-auto, --use_auto`: Use autothresholds over default constant
1386
1389
  * `-bigconfig, --to_bigconfig`: Convert the dbt tests to bigconfig.
1387
- * `-op, --output_path TEXT`: Output path where bigconfig file will be saved. If no output path is defined then current working directory will be used. Requires --to_bigconfig to be true. [default: /Users/christian/Projects/semantic-data-platform/bigeye-integrations/bigeye-cli]
1390
+ * `-op, --output_path TEXT`: Output path where bigconfig file will be saved. If no output path is defined then current working directory will be used. Requires --to_bigconfig to be true. [default: /home/runner/work/semantic-data-platform/semantic-data-platform/bigeye-integrations/bigeye-cli]
1388
1391
  * `--help`: Show this message and exit.
1389
1392
 
1390
1393
  # `bigeye issues`
@@ -26,22 +26,23 @@ File should contain commands relating to deploying Bigconfig files.
26
26
 
27
27
  @app.command()
28
28
  def plan(
29
- bigeye_conf: str = global_options.bigeye_conf,
30
- config_file: str = global_options.config_file,
31
- workspace: str = global_options.workspace,
32
- input_path: Optional[List[str]] = bigconfig_options.input_path,
33
- output_path: str = bigconfig_options.output_path,
34
- purge_source_names: Optional[List[str]] = bigconfig_options.purge_source_names,
35
- purge_all_sources: bool = bigconfig_options.purge_all_sources,
36
- no_queue: bool = bigconfig_options.no_queue,
37
- recursive: bool = bigconfig_options.recursive,
38
- strict_mode: bool = bigconfig_options.strict_mode,
39
- cicd: bool = typer.Option(
40
- False,
41
- "--cicd_report",
42
- "-cicd",
43
- help="Add the report to a pull request. (Github only)",
44
- ),
29
+ bigeye_conf: str = global_options.bigeye_conf,
30
+ config_file: str = global_options.config_file,
31
+ workspace: str = global_options.workspace,
32
+ input_path: Optional[List[str]] = bigconfig_options.input_path,
33
+ output_path: str = bigconfig_options.output_path,
34
+ purge_source_names: Optional[List[str]] = bigconfig_options.purge_source_names,
35
+ purge_all_sources: bool = bigconfig_options.purge_all_sources,
36
+ no_queue: bool = bigconfig_options.no_queue,
37
+ recursive: bool = bigconfig_options.recursive,
38
+ strict_mode: bool = bigconfig_options.strict_mode,
39
+ namespace: Optional[str] = bigconfig_options.namespace,
40
+ cicd: bool = typer.Option(
41
+ False,
42
+ "--cicd_report",
43
+ "-cicd",
44
+ help="Add the report to a pull request. (Github only)",
45
+ ),
45
46
  ):
46
47
  """Executes a plan for purging sources or processing bigconfig files in the input path/current
47
48
  working directory."""
@@ -55,6 +56,7 @@ def plan(
55
56
  if not output_path:
56
57
  output_path = client.config.bigconfig_output_path or Path.cwd()
57
58
  strict_mode = strict_mode or client.config.bigconfig_strict_mode
59
+ namespace = namespace or client.config.bigconfig_namespace
58
60
 
59
61
  if purge_source_names or purge_all_sources:
60
62
  report = mc.execute_purge(
@@ -62,15 +64,20 @@ def plan(
62
64
  purge_all_sources=purge_all_sources,
63
65
  output_path=output_path,
64
66
  apply=False,
67
+ namespace=namespace
65
68
  )
66
69
  else:
70
+ if no_queue:
71
+ log.warning(
72
+ "The --no_queue flag is deprecated. The option will be ignored now and removed in a later version."
73
+ )
67
74
  report = mc.execute_bigconfig(
68
75
  input_path=input_path,
69
76
  output_path=output_path,
70
77
  apply=False,
71
78
  recursive=recursive,
72
- no_queue=no_queue,
73
79
  strict_mode=strict_mode,
80
+ namespace=namespace
74
81
  )
75
82
  if cicd:
76
83
  gh_report = GitHubReport(github_token=os.environ["GITHUB_TOKEN"])
@@ -79,17 +86,18 @@ def plan(
79
86
 
80
87
  @app.command()
81
88
  def apply(
82
- bigeye_conf: str = global_options.bigeye_conf,
83
- config_file: str = global_options.config_file,
84
- workspace: str = global_options.workspace,
85
- input_path: Optional[List[str]] = bigconfig_options.input_path,
86
- output_path: str = bigconfig_options.output_path,
87
- purge_source_names: Optional[List[str]] = bigconfig_options.purge_source_names,
88
- purge_all_sources: bool = bigconfig_options.purge_all_sources,
89
- no_queue: bool = bigconfig_options.no_queue,
90
- recursive: bool = bigconfig_options.recursive,
91
- strict_mode: bool = bigconfig_options.strict_mode,
92
- auto_approve: bool = bigconfig_options.auto_approve,
89
+ bigeye_conf: str = global_options.bigeye_conf,
90
+ config_file: str = global_options.config_file,
91
+ workspace: str = global_options.workspace,
92
+ input_path: Optional[List[str]] = bigconfig_options.input_path,
93
+ output_path: str = bigconfig_options.output_path,
94
+ purge_source_names: Optional[List[str]] = bigconfig_options.purge_source_names,
95
+ purge_all_sources: bool = bigconfig_options.purge_all_sources,
96
+ no_queue: bool = bigconfig_options.no_queue,
97
+ recursive: bool = bigconfig_options.recursive,
98
+ strict_mode: bool = bigconfig_options.strict_mode,
99
+ auto_approve: bool = bigconfig_options.auto_approve,
100
+ namespace: Optional[str] = bigconfig_options.namespace
93
101
  ):
94
102
  """Applies a purge of deployed metrics or applies Bigconfig files from the input path/current working directory to
95
103
  the Bigeye workspace."""
@@ -104,6 +112,7 @@ def apply(
104
112
  output_path = client.config.bigconfig_output_path or Path.cwd()
105
113
  strict_mode = strict_mode or client.config.bigconfig_strict_mode
106
114
  auto_approve = auto_approve or client.config.bigconfig_auto_approve
115
+ namespace = namespace or client.config.bigconfig_namespace
107
116
 
108
117
  if purge_source_names or purge_all_sources:
109
118
  mc.execute_purge(
@@ -111,34 +120,40 @@ def apply(
111
120
  purge_all_sources=purge_all_sources,
112
121
  output_path=output_path,
113
122
  apply=True,
123
+ namespace=namespace
114
124
  )
115
125
  else:
126
+ if no_queue:
127
+ log.warning(
128
+ "The --no_queue flag is deprecated. The option will be ignored now and removed in a later version."
129
+ )
116
130
  mc.execute_bigconfig(
117
131
  input_path=input_path,
118
132
  output_path=output_path,
119
133
  apply=True,
120
- no_queue=no_queue,
121
134
  recursive=recursive,
122
135
  strict_mode=strict_mode,
123
136
  auto_approve=auto_approve,
137
+ namespace=namespace
124
138
  )
125
139
 
126
140
 
127
141
  @app.command()
128
142
  def export(
129
- bigeye_conf: str = global_options.bigeye_conf,
130
- config_file: str = global_options.config_file,
131
- workspace: str = global_options.workspace,
132
- output_path: str = bigconfig_options.output_path,
133
- collection_id: int = typer.Option(
134
- None, "--collection_id", "-cid", help="Collection ID of metrics to be exported."
135
- ),
136
- table_id: int = typer.Option(
137
- None, "--table_id", "-tid", help="Table ID of metrics to be exported."
138
- ),
139
- metric_ids: List[int] = typer.Option(
140
- None, "--metric_id", "-mid", help="Metric ID of metrics to be exported."
141
- ),
143
+ bigeye_conf: str = global_options.bigeye_conf,
144
+ config_file: str = global_options.config_file,
145
+ workspace: str = global_options.workspace,
146
+ output_path: str = bigconfig_options.output_path,
147
+ namespace: Optional[str] = bigconfig_options.namespace,
148
+ collection_id: int = typer.Option(
149
+ None, "--collection_id", "-cid", help="Collection ID of metrics to be exported."
150
+ ),
151
+ table_id: int = typer.Option(
152
+ None, "--table_id", "-tid", help="Table ID of metrics to be exported."
153
+ ),
154
+ metric_ids: List[int] = typer.Option(
155
+ None, "--metric_id", "-mid", help="Metric ID of metrics to be exported."
156
+ ),
142
157
  ):
143
158
  """Exports existing metrics into a valid Bigconfig file."""
144
159
 
@@ -184,6 +199,10 @@ def export(
184
199
  # Pull metric information
185
200
  metrics: MetricInfoList = client.get_metric_info_batch_post(metric_ids=final_metric_ids)
186
201
 
202
+ if namespace:
203
+ infos = metrics.metrics
204
+ metrics = MetricInfoList(metrics=[m for m in infos if m.metric_configuration.bigconfig_namespace == namespace])
205
+
187
206
  if not output_path:
188
207
  output_path = client.config.bigconfig_output_path or Path.cwd()
189
208
 
@@ -31,7 +31,7 @@ no_queue: bool = typer.Option(
31
31
  False
32
32
  , "--no_queue"
33
33
  , "-nq"
34
- , help="Don't submit to queue: True or False."
34
+ , help="Don't submit to queue: True or False. [DEPRECATED]"
35
35
  )
36
36
  recursive: bool = typer.Option(
37
37
  False
@@ -51,3 +51,9 @@ auto_approve: bool = typer.Option(
51
51
  , "-auto_approve"
52
52
  , help="Explicit plan approval is not needed prior to execution."
53
53
  )
54
+ namespace: Optional[str] = typer.Option(
55
+ None
56
+ , "--namespace"
57
+ , "-n"
58
+ , help="The namespace for the deployment. (This must match across all files or namespace should not be set in files)"
59
+ )
@@ -1,3 +1,4 @@
1
+ import os
1
2
  from typing import Optional, List
2
3
 
3
4
  import typer
@@ -197,7 +198,15 @@ def infer_relations(
197
198
  lineage_controller = LineageController(client)
198
199
 
199
200
  if lineage_configuration_file:
200
- lc = SimpleLineageConfigurationFile.load(lineage_configuration_file)
201
+ # First check the file extension
202
+ _, extension = os.path.splitext(lineage_configuration_file.lower())
203
+ if extension in ['.yaml', '.yml']:
204
+ lc = SimpleLineageConfigurationFile.load(lineage_configuration_file)
205
+ elif extension == '.csv':
206
+ lc = SimpleLineageConfigurationFile.load_from_csv(lineage_configuration_file)
207
+ else:
208
+ raise Exception(f"Unsupported file extension: {extension}")
209
+
201
210
  lineage_controller.infer_column_level_lineage_from_file(
202
211
  lineage_configuration_file=lc,
203
212
  purge_lineage=purge_lineage
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bigeye-cli"
3
- version = "0.3.69"
3
+ version = "0.5.0"
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,7 +19,7 @@ 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.84"
22
+ bigeye-sdk = "^0.6.0"
23
23
  rich = "^12.4.4"
24
24
  PyGithub = '^1.57'
25
25
 
File without changes