bigeye-cli 0.4.0__tar.gz → 0.5.1__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.4.0 → bigeye_cli-0.5.1}/PKG-INFO +13 -12
  2. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/CLI_DOCS.md +6 -3
  3. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/bigconfig/bigconfig_commands.py +53 -40
  4. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/bigconfig/bigconfig_options.py +6 -0
  5. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/lineage/lineage_commands.py +10 -1
  6. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/pyproject.toml +5 -5
  7. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/LICENSE +0 -0
  8. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/__init__.py +0 -0
  9. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/__main__.py +0 -0
  10. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/__version__.py +0 -0
  11. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/bigconfig/__init__.py +0 -0
  12. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/catalog/__init__.py +0 -0
  13. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/catalog/catalog_commands.py +0 -0
  14. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/collections/__init__.py +0 -0
  15. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/collections/collection_commands.py +0 -0
  16. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/configure/__init__.py +0 -0
  17. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/configure/configure_commands.py +0 -0
  18. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/deltas/__init__.py +0 -0
  19. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/deltas/deltas_commands.py +0 -0
  20. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/enums.py +0 -0
  21. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/exceptions/__init__.py +0 -0
  22. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/exceptions/exceptions.py +0 -0
  23. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/functions.py +0 -0
  24. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/global_options.py +0 -0
  25. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/issues/__init__.py +0 -0
  26. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/issues/issue_commands.py +0 -0
  27. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/lineage/__init__.py +0 -0
  28. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/metric/__init__.py +0 -0
  29. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/metric/metric_commands.py +0 -0
  30. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/model/__init__.py +0 -0
  31. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/model/cicd_conf.py +0 -0
  32. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/model/github_report.py +0 -0
  33. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/model/vendor_report.py +0 -0
  34. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/bigeye_cli/workspace/__init__.py +0 -0
  35. {bigeye_cli-0.4.0 → bigeye_cli-0.5.1}/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.4.0
3
+ Version: 0.5.1
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
- Requires-Dist: PyGithub (>=1.57,<2.0)
17
- Requires-Dist: bigeye-sdk (>=0.5.0,<0.6.0)
18
- Requires-Dist: click (>=8.0.4,<9.0.0)
19
- Requires-Dist: rich (>=12.4.4,<13.0.0)
20
- Project-URL: Homepage, https://docs.bigeye.com/docs
15
+ Requires-Dist: PyGithub (>=1.59.1,<2.0.0)
16
+ Requires-Dist: bigeye-sdk (>=0.6.0,<0.7.0)
17
+ Requires-Dist: click (>=8.1.8,<9.0.0)
18
+ Requires-Dist: rich (>=14.1.0,<15.0.0)
21
19
  Description-Content-Type: text/markdown
22
20
 
23
21
  # **Bigeye CLI**
24
- Version: 0.4.0
22
+ Version: 0.5.1
25
23
  ## Installation
26
24
 
27
25
  **Setting up your local/build environment**
@@ -635,6 +633,7 @@ $ bigeye bigconfig plan [OPTIONS]
635
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
 
@@ -662,6 +661,7 @@ $ bigeye bigconfig apply [OPTIONS]
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.
@@ -768,7 +769,7 @@ $ bigeye catalog delete-metrics [OPTIONS]
768
769
  * `-wid, --warehouse_id INTEGER`: Warehouse ID
769
770
  * `-sn, --schema_name TEXT`: List of Schema Names. E.g. -sn schema_1 -sn schema_2.
770
771
  * `-tid, --table_id INTEGER`: Table IDs. E.g. -tid 123 -tid 124
771
- * `-m, --metric_type TEXT`: Delete by name of the metric type.UNDEFINED_PREDEFINED_METRIC_NAME, PERCENT_NULL, COUNT_NULL, PERCENT_EMPTY_STRING, COUNT_EMPTY_STRING, PERCENT_UNIQUE, PERCENT_VALUE_IN_LIST, AVERAGE, MIN, MAX, SUM, COUNT_ROWS, COUNT_DISTINCT, HOURS_SINCE_MAX_DATE, HOURS_SINCE_MAX_TIMESTAMP, COUNT_TRUE, PERCENT_TRUE, COUNT_FALSE, PERCENT_FALSE, COUNT_USA_PHONE, PERCENT_USA_PHONE, COUNT_USA_ZIP_CODE, PERCENT_USA_ZIP_CODE, PERCENT_UUID, COUNT_TIMESTAMP_STRING, PERCENT_TIMESTAMP_STRING, COUNT_DUPLICATES, COUNT_USA_STATE_CODE, PERCENT_USA_STATE_CODE, VARIANCE, SKEW, KURTOSIS, GEOMETRIC_MEAN, HARMONIC_MEAN, COUNT_UUID, COUNT_CUSIP, PERCENT_CUSIP, COUNT_SEDOL, PERCENT_SEDOL, COUNT_ISIN, PERCENT_ISIN, COUNT_LEI, PERCENT_LEI, COUNT_FIGI, PERCENT_FIGI, COUNT_PERM_ID, PERCENT_PERM_ID, COUNT_NAN, PERCENT_NAN, COUNT_LONGITUDE, PERCENT_LONGITUDE, COUNT_LATITUDE, PERCENT_LATITUDE, COUNT_NOT_IN_FUTURE, PERCENT_NOT_IN_FUTURE, COUNT_DATE_NOT_IN_FUTURE, PERCENT_DATE_NOT_IN_FUTURE, MEDIAN, PERCENTILE, COUNT_NOT_NULL, STRING_LENGTH_AVERAGE, STRING_LENGTH_MIN, STRING_LENGTH_MAX, COUNT_SSN, PERCENT_SSN, COUNT_EMAIL, PERCENT_EMAIL, ROWS_INSERTED, HOURS_SINCE_LAST_LOAD, COUNT_READ_QUERIES, PERCENT_NOT_NULL, FRESHNESS, VOLUME, FRESHNESS_DATA, VOLUME_DATA, COUNT_VALUE_IN_LIST
772
+ * `-m, --metric_type TEXT`: Delete by name of the metric type.UNDEFINED_PREDEFINED_METRIC_NAME, PERCENT_NULL, COUNT_NULL, PERCENT_EMPTY_STRING, COUNT_EMPTY_STRING, PERCENT_UNIQUE, PERCENT_VALUE_IN_LIST, AVERAGE, MIN, MAX, SUM, COUNT_ROWS, COUNT_DISTINCT, HOURS_SINCE_MAX_DATE, HOURS_SINCE_MAX_TIMESTAMP, COUNT_TRUE, PERCENT_TRUE, COUNT_FALSE, PERCENT_FALSE, COUNT_USA_PHONE, PERCENT_USA_PHONE, COUNT_USA_ZIP_CODE, PERCENT_USA_ZIP_CODE, PERCENT_UUID, COUNT_TIMESTAMP_STRING, PERCENT_TIMESTAMP_STRING, COUNT_DUPLICATES, COUNT_USA_STATE_CODE, PERCENT_USA_STATE_CODE, VARIANCE, SKEW, KURTOSIS, GEOMETRIC_MEAN, HARMONIC_MEAN, COUNT_UUID, COUNT_CUSIP, PERCENT_CUSIP, COUNT_SEDOL, PERCENT_SEDOL, COUNT_ISIN, PERCENT_ISIN, COUNT_LEI, PERCENT_LEI, COUNT_FIGI, PERCENT_FIGI, COUNT_PERM_ID, PERCENT_PERM_ID, COUNT_NAN, PERCENT_NAN, COUNT_LONGITUDE, PERCENT_LONGITUDE, COUNT_LATITUDE, PERCENT_LATITUDE, COUNT_NOT_IN_FUTURE, PERCENT_NOT_IN_FUTURE, COUNT_DATE_NOT_IN_FUTURE, PERCENT_DATE_NOT_IN_FUTURE, MEDIAN, PERCENTILE, COUNT_NOT_NULL, STRING_LENGTH_AVERAGE, STRING_LENGTH_MIN, STRING_LENGTH_MAX, COUNT_SSN, PERCENT_SSN, COUNT_EMAIL, PERCENT_EMAIL, ROWS_INSERTED, HOURS_SINCE_LAST_LOAD, COUNT_READ_QUERIES, PERCENT_NOT_NULL, FRESHNESS, VOLUME, FRESHNESS_DATA, VOLUME_DATA, COUNT_VALUE_IN_LIST, PERCENT_DISTINCT, PERCENT_DUPLICATES, HOURS_SINCE_MAX_STRING
772
773
  * `--help`: Show this message and exit.
773
774
 
774
775
  ## `bigeye catalog rebuild`
@@ -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.4.0
2
+ Version: 0.5.1
3
3
  ## Installation
4
4
 
5
5
  **Setting up your local/build environment**
@@ -613,6 +613,7 @@ $ bigeye bigconfig plan [OPTIONS]
613
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
 
@@ -640,6 +641,7 @@ $ bigeye bigconfig apply [OPTIONS]
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.
@@ -746,7 +749,7 @@ $ bigeye catalog delete-metrics [OPTIONS]
746
749
  * `-wid, --warehouse_id INTEGER`: Warehouse ID
747
750
  * `-sn, --schema_name TEXT`: List of Schema Names. E.g. -sn schema_1 -sn schema_2.
748
751
  * `-tid, --table_id INTEGER`: Table IDs. E.g. -tid 123 -tid 124
749
- * `-m, --metric_type TEXT`: Delete by name of the metric type.UNDEFINED_PREDEFINED_METRIC_NAME, PERCENT_NULL, COUNT_NULL, PERCENT_EMPTY_STRING, COUNT_EMPTY_STRING, PERCENT_UNIQUE, PERCENT_VALUE_IN_LIST, AVERAGE, MIN, MAX, SUM, COUNT_ROWS, COUNT_DISTINCT, HOURS_SINCE_MAX_DATE, HOURS_SINCE_MAX_TIMESTAMP, COUNT_TRUE, PERCENT_TRUE, COUNT_FALSE, PERCENT_FALSE, COUNT_USA_PHONE, PERCENT_USA_PHONE, COUNT_USA_ZIP_CODE, PERCENT_USA_ZIP_CODE, PERCENT_UUID, COUNT_TIMESTAMP_STRING, PERCENT_TIMESTAMP_STRING, COUNT_DUPLICATES, COUNT_USA_STATE_CODE, PERCENT_USA_STATE_CODE, VARIANCE, SKEW, KURTOSIS, GEOMETRIC_MEAN, HARMONIC_MEAN, COUNT_UUID, COUNT_CUSIP, PERCENT_CUSIP, COUNT_SEDOL, PERCENT_SEDOL, COUNT_ISIN, PERCENT_ISIN, COUNT_LEI, PERCENT_LEI, COUNT_FIGI, PERCENT_FIGI, COUNT_PERM_ID, PERCENT_PERM_ID, COUNT_NAN, PERCENT_NAN, COUNT_LONGITUDE, PERCENT_LONGITUDE, COUNT_LATITUDE, PERCENT_LATITUDE, COUNT_NOT_IN_FUTURE, PERCENT_NOT_IN_FUTURE, COUNT_DATE_NOT_IN_FUTURE, PERCENT_DATE_NOT_IN_FUTURE, MEDIAN, PERCENTILE, COUNT_NOT_NULL, STRING_LENGTH_AVERAGE, STRING_LENGTH_MIN, STRING_LENGTH_MAX, COUNT_SSN, PERCENT_SSN, COUNT_EMAIL, PERCENT_EMAIL, ROWS_INSERTED, HOURS_SINCE_LAST_LOAD, COUNT_READ_QUERIES, PERCENT_NOT_NULL, FRESHNESS, VOLUME, FRESHNESS_DATA, VOLUME_DATA, COUNT_VALUE_IN_LIST
752
+ * `-m, --metric_type TEXT`: Delete by name of the metric type.UNDEFINED_PREDEFINED_METRIC_NAME, PERCENT_NULL, COUNT_NULL, PERCENT_EMPTY_STRING, COUNT_EMPTY_STRING, PERCENT_UNIQUE, PERCENT_VALUE_IN_LIST, AVERAGE, MIN, MAX, SUM, COUNT_ROWS, COUNT_DISTINCT, HOURS_SINCE_MAX_DATE, HOURS_SINCE_MAX_TIMESTAMP, COUNT_TRUE, PERCENT_TRUE, COUNT_FALSE, PERCENT_FALSE, COUNT_USA_PHONE, PERCENT_USA_PHONE, COUNT_USA_ZIP_CODE, PERCENT_USA_ZIP_CODE, PERCENT_UUID, COUNT_TIMESTAMP_STRING, PERCENT_TIMESTAMP_STRING, COUNT_DUPLICATES, COUNT_USA_STATE_CODE, PERCENT_USA_STATE_CODE, VARIANCE, SKEW, KURTOSIS, GEOMETRIC_MEAN, HARMONIC_MEAN, COUNT_UUID, COUNT_CUSIP, PERCENT_CUSIP, COUNT_SEDOL, PERCENT_SEDOL, COUNT_ISIN, PERCENT_ISIN, COUNT_LEI, PERCENT_LEI, COUNT_FIGI, PERCENT_FIGI, COUNT_PERM_ID, PERCENT_PERM_ID, COUNT_NAN, PERCENT_NAN, COUNT_LONGITUDE, PERCENT_LONGITUDE, COUNT_LATITUDE, PERCENT_LATITUDE, COUNT_NOT_IN_FUTURE, PERCENT_NOT_IN_FUTURE, COUNT_DATE_NOT_IN_FUTURE, PERCENT_DATE_NOT_IN_FUTURE, MEDIAN, PERCENTILE, COUNT_NOT_NULL, STRING_LENGTH_AVERAGE, STRING_LENGTH_MIN, STRING_LENGTH_MAX, COUNT_SSN, PERCENT_SSN, COUNT_EMAIL, PERCENT_EMAIL, ROWS_INSERTED, HOURS_SINCE_LAST_LOAD, COUNT_READ_QUERIES, PERCENT_NOT_NULL, FRESHNESS, VOLUME, FRESHNESS_DATA, VOLUME_DATA, COUNT_VALUE_IN_LIST, PERCENT_DISTINCT, PERCENT_DUPLICATES, HOURS_SINCE_MAX_STRING
750
753
  * `--help`: Show this message and exit.
751
754
 
752
755
  ## `bigeye catalog rebuild`
@@ -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,6 +64,7 @@ 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:
67
70
  if no_queue:
@@ -74,6 +77,7 @@ def plan(
74
77
  apply=False,
75
78
  recursive=recursive,
76
79
  strict_mode=strict_mode,
80
+ namespace=namespace
77
81
  )
78
82
  if cicd:
79
83
  gh_report = GitHubReport(github_token=os.environ["GITHUB_TOKEN"])
@@ -82,17 +86,18 @@ def plan(
82
86
 
83
87
  @app.command()
84
88
  def apply(
85
- bigeye_conf: str = global_options.bigeye_conf,
86
- config_file: str = global_options.config_file,
87
- workspace: str = global_options.workspace,
88
- input_path: Optional[List[str]] = bigconfig_options.input_path,
89
- output_path: str = bigconfig_options.output_path,
90
- purge_source_names: Optional[List[str]] = bigconfig_options.purge_source_names,
91
- purge_all_sources: bool = bigconfig_options.purge_all_sources,
92
- no_queue: bool = bigconfig_options.no_queue,
93
- recursive: bool = bigconfig_options.recursive,
94
- strict_mode: bool = bigconfig_options.strict_mode,
95
- 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
96
101
  ):
97
102
  """Applies a purge of deployed metrics or applies Bigconfig files from the input path/current working directory to
98
103
  the Bigeye workspace."""
@@ -107,6 +112,7 @@ def apply(
107
112
  output_path = client.config.bigconfig_output_path or Path.cwd()
108
113
  strict_mode = strict_mode or client.config.bigconfig_strict_mode
109
114
  auto_approve = auto_approve or client.config.bigconfig_auto_approve
115
+ namespace = namespace or client.config.bigconfig_namespace
110
116
 
111
117
  if purge_source_names or purge_all_sources:
112
118
  mc.execute_purge(
@@ -114,6 +120,7 @@ def apply(
114
120
  purge_all_sources=purge_all_sources,
115
121
  output_path=output_path,
116
122
  apply=True,
123
+ namespace=namespace
117
124
  )
118
125
  else:
119
126
  if no_queue:
@@ -127,24 +134,26 @@ def apply(
127
134
  recursive=recursive,
128
135
  strict_mode=strict_mode,
129
136
  auto_approve=auto_approve,
137
+ namespace=namespace
130
138
  )
131
139
 
132
140
 
133
141
  @app.command()
134
142
  def export(
135
- bigeye_conf: str = global_options.bigeye_conf,
136
- config_file: str = global_options.config_file,
137
- workspace: str = global_options.workspace,
138
- output_path: str = bigconfig_options.output_path,
139
- collection_id: int = typer.Option(
140
- None, "--collection_id", "-cid", help="Collection ID of metrics to be exported."
141
- ),
142
- table_id: int = typer.Option(
143
- None, "--table_id", "-tid", help="Table ID of metrics to be exported."
144
- ),
145
- metric_ids: List[int] = typer.Option(
146
- None, "--metric_id", "-mid", help="Metric ID of metrics to be exported."
147
- ),
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
+ ),
148
157
  ):
149
158
  """Exports existing metrics into a valid Bigconfig file."""
150
159
 
@@ -190,6 +199,10 @@ def export(
190
199
  # Pull metric information
191
200
  metrics: MetricInfoList = client.get_metric_info_batch_post(metric_ids=final_metric_ids)
192
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
+
193
206
  if not output_path:
194
207
  output_path = client.config.bigconfig_output_path or Path.cwd()
195
208
 
@@ -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.4.0"
3
+ version = "0.5.1"
4
4
  description = "Bigeye CLI offers developer tools for maintaining your developer workspace."
5
5
  license = "Proprietary"
6
6
  authors = ["Bigeye <support@bigeye.com>"]
@@ -18,10 +18,10 @@ bigeye = "bigeye_cli.__main__:app"
18
18
 
19
19
  [tool.poetry.dependencies]
20
20
  python = "^3.9.0"
21
- click = "^8.0.4"
22
- bigeye-sdk = "^0.5.0"
23
- rich = "^12.4.4"
24
- PyGithub = '^1.57'
21
+ click = "^8.1.8"
22
+ bigeye-sdk = "^0.6.0"
23
+ rich = "^14.1.0"
24
+ PyGithub = '^1.59.1'
25
25
 
26
26
  [tool.poetry.group.dev.dependencies]
27
27
  poethepoet = "^0.24.3"
File without changes