bigeye-cli 0.8.6__tar.gz → 0.9.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 (36) hide show
  1. bigeye_cli-0.8.6/bigeye_cli/CLI_DOCS.md → bigeye_cli-0.9.0/PKG-INFO +21 -43
  2. bigeye_cli-0.8.6/PKG-INFO → bigeye_cli-0.9.0/bigeye_cli/CLI_DOCS.md +1 -63
  3. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/catalog/catalog_commands.py +0 -82
  4. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/catalog/custom_repo_commands.py +1 -11
  5. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/pyproject.toml +2 -2
  6. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/LICENSE +0 -0
  7. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/__init__.py +0 -0
  8. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/__main__.py +0 -0
  9. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/__version__.py +0 -0
  10. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/bigconfig/__init__.py +0 -0
  11. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/bigconfig/bigconfig_commands.py +0 -0
  12. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/bigconfig/bigconfig_options.py +0 -0
  13. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/catalog/__init__.py +0 -0
  14. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/collections/__init__.py +0 -0
  15. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/collections/collection_commands.py +0 -0
  16. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/configure/__init__.py +0 -0
  17. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/configure/configure_commands.py +0 -0
  18. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/deltas/__init__.py +0 -0
  19. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/deltas/deltas_commands.py +0 -0
  20. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/enums.py +0 -0
  21. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/exceptions/__init__.py +0 -0
  22. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/exceptions/exceptions.py +0 -0
  23. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/functions.py +0 -0
  24. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/global_options.py +0 -0
  25. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/issues/__init__.py +0 -0
  26. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/issues/issue_commands.py +0 -0
  27. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/lineage/__init__.py +0 -0
  28. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/lineage/lineage_commands.py +0 -0
  29. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/metric/__init__.py +0 -0
  30. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/metric/metric_commands.py +0 -0
  31. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/model/__init__.py +0 -0
  32. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/model/cicd_conf.py +0 -0
  33. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/model/github_report.py +0 -0
  34. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/model/vendor_report.py +0 -0
  35. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/workspace/__init__.py +0 -0
  36. {bigeye_cli-0.8.6 → bigeye_cli-0.9.0}/bigeye_cli/workspace/workspace_commands.py +0 -0
@@ -1,5 +1,24 @@
1
+ Metadata-Version: 2.1
2
+ Name: bigeye-cli
3
+ Version: 0.9.0
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.11.0,<4.0.0
10
+ Classifier: License :: Other/Proprietary License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Requires-Dist: PyGithub (>=1.59.1,<2.0.0)
15
+ Requires-Dist: bigeye-sdk (>=0.11.15,<0.12.0)
16
+ Requires-Dist: click (>=8.1.8,<9.0.0)
17
+ Requires-Dist: rich (>=14.1.0,<15.0.0)
18
+ Description-Content-Type: text/markdown
19
+
1
20
  # **Bigeye CLI**
2
- Version: 0.8.6
21
+ Version: 0.9.0
3
22
  ## Installation
4
23
 
5
24
  **Setting up your local/build environment**
@@ -690,7 +709,6 @@ $ bigeye catalog [OPTIONS] COMMAND [ARGS]...
690
709
 
691
710
  **Commands**:
692
711
 
693
- * `regen-autometrics`: Regenerates Autometrics by warehouse id OR... (DEPRECATED)
694
712
  * `delete-metrics`: Delete metrics in a warehouse id, by...
695
713
  * `rebuild`: Rebuilds/Reprofiles a source by warehouse...
696
714
  * `get-table-info`: Outputs table info to a file for an entire...
@@ -698,7 +716,6 @@ $ bigeye catalog [OPTIONS] COMMAND [ARGS]...
698
716
  * `run-metrics`: Runs metrics by warehouse id, schema...
699
717
  * `add-source`: Adds a source to specified Bigeye workspace.
700
718
  * `delete-source`: Delete a source from specified Bigeye...
701
- * `backfill-autothresholds`: Backfills autothresholds by warehouse id,...
702
719
  * `backfill-metrics`: Backfills metrics by warehouse id, schema...
703
720
  * `schedule-all-metrics`: Updates schedule for all metrics in a...
704
721
  * `unschedule-all-metrics`: Unschedule all metrics by warehouse,...
@@ -718,26 +735,6 @@ $ bigeye catalog [OPTIONS] COMMAND [ARGS]...
718
735
  * `sync-custom-repository`: Sync a custom repository from a YAML file.
719
736
  * `custom-repo`: Import and export custom repositories as...
720
737
 
721
- ## `bigeye catalog regen-autometrics`
722
-
723
- Regenerates Autometrics by warehouse id OR warehouse id and list of schema names OR list of table ids.
724
-
725
- **Usage**:
726
-
727
- ```console
728
- $ bigeye catalog regen-autometrics [OPTIONS]
729
- ```
730
-
731
- **Options**:
732
-
733
- * `-b, --bigeye_conf TEXT`: Bigeye Credential File Path [env var: BIGEYE_API_CRED_FILE]
734
- * `-c, --config_file TEXT`: Bigeye CLI Configuration File Path [env var: BIGEYE_API_CONFIG_FILE]
735
- * `-w, --workspace TEXT`: Name of the workspace configuration. [env var: BIGEYE_WORKSPACE; default: DEFAULT]
736
- * `-wid, --warehouse_id INTEGER`: Warehouse ID. If none will look for Table IDs. If value then will pull all table ids for warehouse
737
- * `-sn, --schema_name TEXT`: List of Schema Names E.g. -sn schema_1 -sn schema_2. Do not include warehouse name -- GREENE_HOMES_DEMO_STANDARD.CONFORMED is fully qualified and CONFORMED is the schema name.
738
- * `-tid, --table_id INTEGER`: List of Table IDs. E.g. -tid 123 -tid 124
739
- * `--help`: Show this message and exit.
740
-
741
738
  ## `bigeye catalog delete-metrics`
742
739
 
743
740
  Delete metrics in a warehouse id, by schema names, or by table_ids. Also, can filter by multipe
@@ -884,26 +881,6 @@ $ bigeye catalog delete-source [OPTIONS]
884
881
  * `-wid, --warehouse_id INTEGER`: The ID of the warehouse to delete.
885
882
  * `--help`: Show this message and exit.
886
883
 
887
- ## `bigeye catalog backfill-autothresholds`
888
-
889
- Backfills autothresholds by warehouse id, schema names, and/or table ids.
890
-
891
- **Usage**:
892
-
893
- ```console
894
- $ bigeye catalog backfill-autothresholds [OPTIONS]
895
- ```
896
-
897
- **Options**:
898
-
899
- * `-b, --bigeye_conf TEXT`: Bigeye Credential File Path [env var: BIGEYE_API_CRED_FILE]
900
- * `-c, --config_file TEXT`: Bigeye CLI Configuration File Path [env var: BIGEYE_API_CONFIG_FILE]
901
- * `-w, --workspace TEXT`: Name of the workspace configuration. [env var: BIGEYE_WORKSPACE; default: DEFAULT]
902
- * `-wid, --warehouse_id INTEGER`: Warehouse ID
903
- * `-sn, --schema_name TEXT`: List of Schema Names. E.g. -sn schema_1 -sn schema_2.
904
- * `-tid, --table_id INTEGER`: Table IDs. E.g. -tid 123 -tid 124
905
- * `--help`: Show this message and exit.
906
-
907
884
  ## `bigeye catalog backfill-metrics`
908
885
 
909
886
  Backfills metrics by warehouse id, schema names, and/or table ids.
@@ -2030,3 +2007,4 @@ $ bigeye lineage export-end-to-end [OPTIONS]
2030
2007
  * `-o, --output TEXT`: Output .csv path. Defaults to end_to_end_&lt;root&gt;.csv in the current directory.
2031
2008
  * `--help`: Show this message and exit.
2032
2009
 
2010
+
@@ -1,24 +1,5 @@
1
- Metadata-Version: 2.1
2
- Name: bigeye-cli
3
- Version: 0.8.6
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.11.0,<4.0.0
10
- Classifier: License :: Other/Proprietary License
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.11
13
- Classifier: Programming Language :: Python :: 3.12
14
- Requires-Dist: PyGithub (>=1.59.1,<2.0.0)
15
- Requires-Dist: bigeye-sdk (>=0.11.3,<0.12.0)
16
- Requires-Dist: click (>=8.1.8,<9.0.0)
17
- Requires-Dist: rich (>=14.1.0,<15.0.0)
18
- Description-Content-Type: text/markdown
19
-
20
1
  # **Bigeye CLI**
21
- Version: 0.8.6
2
+ Version: 0.9.0
22
3
  ## Installation
23
4
 
24
5
  **Setting up your local/build environment**
@@ -709,7 +690,6 @@ $ bigeye catalog [OPTIONS] COMMAND [ARGS]...
709
690
 
710
691
  **Commands**:
711
692
 
712
- * `regen-autometrics`: Regenerates Autometrics by warehouse id OR... (DEPRECATED)
713
693
  * `delete-metrics`: Delete metrics in a warehouse id, by...
714
694
  * `rebuild`: Rebuilds/Reprofiles a source by warehouse...
715
695
  * `get-table-info`: Outputs table info to a file for an entire...
@@ -717,7 +697,6 @@ $ bigeye catalog [OPTIONS] COMMAND [ARGS]...
717
697
  * `run-metrics`: Runs metrics by warehouse id, schema...
718
698
  * `add-source`: Adds a source to specified Bigeye workspace.
719
699
  * `delete-source`: Delete a source from specified Bigeye...
720
- * `backfill-autothresholds`: Backfills autothresholds by warehouse id,...
721
700
  * `backfill-metrics`: Backfills metrics by warehouse id, schema...
722
701
  * `schedule-all-metrics`: Updates schedule for all metrics in a...
723
702
  * `unschedule-all-metrics`: Unschedule all metrics by warehouse,...
@@ -737,26 +716,6 @@ $ bigeye catalog [OPTIONS] COMMAND [ARGS]...
737
716
  * `sync-custom-repository`: Sync a custom repository from a YAML file.
738
717
  * `custom-repo`: Import and export custom repositories as...
739
718
 
740
- ## `bigeye catalog regen-autometrics`
741
-
742
- Regenerates Autometrics by warehouse id OR warehouse id and list of schema names OR list of table ids.
743
-
744
- **Usage**:
745
-
746
- ```console
747
- $ bigeye catalog regen-autometrics [OPTIONS]
748
- ```
749
-
750
- **Options**:
751
-
752
- * `-b, --bigeye_conf TEXT`: Bigeye Credential File Path [env var: BIGEYE_API_CRED_FILE]
753
- * `-c, --config_file TEXT`: Bigeye CLI Configuration File Path [env var: BIGEYE_API_CONFIG_FILE]
754
- * `-w, --workspace TEXT`: Name of the workspace configuration. [env var: BIGEYE_WORKSPACE; default: DEFAULT]
755
- * `-wid, --warehouse_id INTEGER`: Warehouse ID. If none will look for Table IDs. If value then will pull all table ids for warehouse
756
- * `-sn, --schema_name TEXT`: List of Schema Names E.g. -sn schema_1 -sn schema_2. Do not include warehouse name -- GREENE_HOMES_DEMO_STANDARD.CONFORMED is fully qualified and CONFORMED is the schema name.
757
- * `-tid, --table_id INTEGER`: List of Table IDs. E.g. -tid 123 -tid 124
758
- * `--help`: Show this message and exit.
759
-
760
719
  ## `bigeye catalog delete-metrics`
761
720
 
762
721
  Delete metrics in a warehouse id, by schema names, or by table_ids. Also, can filter by multipe
@@ -903,26 +862,6 @@ $ bigeye catalog delete-source [OPTIONS]
903
862
  * `-wid, --warehouse_id INTEGER`: The ID of the warehouse to delete.
904
863
  * `--help`: Show this message and exit.
905
864
 
906
- ## `bigeye catalog backfill-autothresholds`
907
-
908
- Backfills autothresholds by warehouse id, schema names, and/or table ids.
909
-
910
- **Usage**:
911
-
912
- ```console
913
- $ bigeye catalog backfill-autothresholds [OPTIONS]
914
- ```
915
-
916
- **Options**:
917
-
918
- * `-b, --bigeye_conf TEXT`: Bigeye Credential File Path [env var: BIGEYE_API_CRED_FILE]
919
- * `-c, --config_file TEXT`: Bigeye CLI Configuration File Path [env var: BIGEYE_API_CONFIG_FILE]
920
- * `-w, --workspace TEXT`: Name of the workspace configuration. [env var: BIGEYE_WORKSPACE; default: DEFAULT]
921
- * `-wid, --warehouse_id INTEGER`: Warehouse ID
922
- * `-sn, --schema_name TEXT`: List of Schema Names. E.g. -sn schema_1 -sn schema_2.
923
- * `-tid, --table_id INTEGER`: Table IDs. E.g. -tid 123 -tid 124
924
- * `--help`: Show this message and exit.
925
-
926
865
  ## `bigeye catalog backfill-metrics`
927
866
 
928
867
  Backfills metrics by warehouse id, schema names, and/or table ids.
@@ -2049,4 +1988,3 @@ $ bigeye lineage export-end-to-end [OPTIONS]
2049
1988
  * `-o, --output TEXT`: Output .csv path. Defaults to end_to_end_&lt;root&gt;.csv in the current directory.
2050
1989
  * `--help`: Show this message and exit.
2051
1990
 
2052
-
@@ -59,7 +59,6 @@ from bigeye_cli.functions import (
59
59
  write_debug_queries,
60
60
  write_metric_templates, write_yaml_templates, write_virtual_tables,
61
61
  )
62
- from bigeye_sdk.functions.metric_functions import has_auto_threshold
63
62
  from bigeye_sdk.functions.core_py_functs import int_enum_enum_list_joined
64
63
  from bigeye_sdk.model.schema_change import SourceSchemaChange
65
64
 
@@ -75,49 +74,6 @@ would include metrics batched at any of these levels.
75
74
  """
76
75
 
77
76
 
78
- @app.command(deprecated=True)
79
- def regen_autometrics(
80
- bigeye_conf: str = global_options.bigeye_conf,
81
- config_file: str = global_options.config_file,
82
- workspace: str = global_options.workspace,
83
- warehouse_id: int = typer.Option(
84
- None,
85
- "--warehouse_id",
86
- "-wid",
87
- help="Warehouse ID. If none will look for Table IDs. If value then will pull all table ids for "
88
- "warehouse",
89
- ),
90
- schema_names: Optional[List[str]] = typer.Option(
91
- None,
92
- "--schema_name",
93
- "-sn",
94
- help="List of Schema Names E.g. -sn schema_1 -sn schema_2. Do not include warehouse name -- "
95
- "GREENE_HOMES_DEMO_STANDARD.CONFORMED is fully qualified and CONFORMED is the schema name.",
96
- ),
97
- table_ids: Optional[List[int]] = typer.Option(
98
- None, "--table_id", "-tid", help="List of Table IDs. E.g. -tid 123 -tid 124"
99
- ),
100
- ):
101
- """Regenerates Autometrics by warehouse id OR warehouse id and list of schema names OR list of table ids."""
102
- log.warning(build_deprecation_message("bigeye catalog regen_autometrics"))
103
- client = cli_client_factory(bigeye_conf, config_file, workspace)
104
-
105
- if not table_ids:
106
- table_ids = client.get_table_ids(
107
- warehouse_id=[warehouse_id], schemas=schema_names
108
- )
109
-
110
- if table_ids:
111
- log.info(f"Regenerating autometrics on: {table_ids}")
112
- for tid in table_ids:
113
- client.regen_autometrics(table_id=tid)
114
- else:
115
- raise Exception(
116
- "Could not identify table_ids to run. Provide either a valid list of table ids OR a valid "
117
- "warehouse ID OR a valid warehouse ID and list of valid schema names"
118
- )
119
-
120
-
121
77
  @app.command()
122
78
  def delete_metrics(
123
79
  bigeye_conf: str = global_options.bigeye_conf,
@@ -407,44 +363,6 @@ def delete_source(
407
363
  client.delete_source(warehouse_id)
408
364
 
409
365
 
410
- @app.command()
411
- def backfill_autothresholds(
412
- bigeye_conf: str = global_options.bigeye_conf,
413
- config_file: str = global_options.config_file,
414
- workspace: str = global_options.workspace,
415
- warehouse_id: int = typer.Option(
416
- None, "--warehouse_id", "-wid", help="Warehouse ID"
417
- ),
418
- schema_names: Optional[List[str]] = typer.Option(
419
- None,
420
- "--schema_name",
421
- "-sn",
422
- help="List of Schema Names. E.g. -sn schema_1 -sn schema_2.",
423
- ),
424
- table_ids: Optional[List[int]] = typer.Option(
425
- None, "--table_id", "-tid", help="Table IDs. E.g. -tid 123 -tid 124"
426
- ),
427
- ):
428
- """Backfills autothresholds by warehouse id, schema names, and/or table ids."""
429
- client = cli_client_factory(bigeye_conf, config_file, workspace)
430
-
431
- mil: MetricInfoList = client.get_metric_info_batch_post(
432
- warehouse_ids=[warehouse_id], table_ids=table_ids
433
- )
434
- if schema_names:
435
- mil.metrics = [
436
- m for m in mil.metrics if m.metric_metadata.schema_name in schema_names
437
- ]
438
-
439
- mids = [
440
- m.metric_configuration.id
441
- for m in mil.metrics
442
- if has_auto_threshold(m.metric_configuration.thresholds)
443
- ]
444
-
445
- client.backfill_autothresholds(metric_ids=mids)
446
-
447
-
448
366
  @app.command()
449
367
  def backfill_metrics(
450
368
  bigeye_conf: str = global_options.bigeye_conf,
@@ -7,16 +7,13 @@ import typer
7
7
  from bigeye_cli import global_options
8
8
  from bigeye_cli.functions import cli_client_factory
9
9
  from bigeye_sdk.controller.custom_repository_controller import CustomRepositoryController
10
- from bigeye_sdk.generated.com.bigeye.models.generated import DataNodeType
11
10
  from bigeye_sdk.log import get_logger
12
11
  from bigeye_sdk.model.custom_repository_excel import (
13
12
  SHEET_EDGES,
14
13
  CustomRepoWorkbook,
15
- EdgeEndpointType,
16
14
  WorkbookValidationError,
17
15
  build_config,
18
16
  iter_path_endpoints,
19
- parse_catalog_path,
20
17
  read_workbook,
21
18
  validate_workbook,
22
19
  write_workbook,
@@ -79,14 +76,7 @@ def _resolve_paths(
79
76
  # resolution below is a cache lookup rather than several API calls each.
80
77
  controller.warm_warehouse_cache(endpoints)
81
78
  for endpoint_type, value in endpoints:
82
- if endpoint_type == EdgeEndpointType.CUSTOM.value:
83
- # CUSTOM endpoints are catalog paths into custom-repository nodes; the
84
- # type filter keeps the search off same-named warehouse/MetaCenter nodes.
85
- matches = controller.resolve_catalog_path(
86
- parse_catalog_path(value), search_type=DataNodeType.DATA_NODE_TYPE_CUSTOM
87
- )
88
- else:
89
- matches = controller.resolve_warehouse_fqn(endpoint_type, value)
79
+ matches = controller.resolve_edge_endpoint(endpoint_type, value)
90
80
  if not matches:
91
81
  errors.append(
92
82
  WorkbookValidationError(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bigeye-cli"
3
- version = "0.8.6"
3
+ version = "0.9.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.11.0"
21
21
  click = "^8.1.8"
22
- bigeye-sdk = "^0.11.3"
22
+ bigeye-sdk = "^0.11.15"
23
23
  rich = "^14.1.0"
24
24
  PyGithub = '^1.59.1'
25
25
 
File without changes