bigeye-cli 0.3.62__tar.gz → 0.3.63__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.62 → bigeye_cli-0.3.63}/PKG-INFO +3 -2
  2. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/bigconfig/bigconfig_commands.py +9 -3
  3. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/configure/configure_commands.py +23 -13
  4. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/pyproject.toml +3 -3
  5. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/LICENSE +0 -0
  6. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/CLI_DOCS.md +0 -0
  7. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/__init__.py +0 -0
  8. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/__main__.py +0 -0
  9. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/__version__.py +0 -0
  10. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/bigconfig/__init__.py +0 -0
  11. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/bigconfig/bigconfig_options.py +0 -0
  12. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/catalog/__init__.py +0 -0
  13. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/catalog/catalog_commands.py +0 -0
  14. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/collections/__init__.py +0 -0
  15. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/collections/collection_commands.py +0 -0
  16. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/configure/__init__.py +0 -0
  17. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/deltas/__init__.py +0 -0
  18. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/deltas/deltas_commands.py +0 -0
  19. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/enums.py +0 -0
  20. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/exceptions/__init__.py +0 -0
  21. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/exceptions/exceptions.py +0 -0
  22. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/functions.py +0 -0
  23. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/global_options.py +0 -0
  24. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/issues/__init__.py +0 -0
  25. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/issues/issue_commands.py +0 -0
  26. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/lineage/__init__.py +0 -0
  27. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/lineage/lineage_commands.py +0 -0
  28. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/metric/__init__.py +0 -0
  29. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/metric/metric_commands.py +0 -0
  30. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/model/__init__.py +0 -0
  31. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/model/cicd_conf.py +0 -0
  32. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/model/github_report.py +0 -0
  33. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/model/vendor_report.py +0 -0
  34. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/workspace/__init__.py +0 -0
  35. {bigeye_cli-0.3.62 → bigeye_cli-0.3.63}/bigeye_cli/workspace/workspace_commands.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bigeye-cli
3
- Version: 0.3.62
3
+ Version: 0.3.63
4
4
  Summary: Bigeye CLI offers developer tools for maintaining your developer workspace.
5
5
  Home-page: https://docs.bigeye.com/docs
6
6
  License: Proprietary
@@ -12,8 +12,9 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.9
13
13
  Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
15
16
  Requires-Dist: PyGithub (>=1.57,<2.0)
16
- Requires-Dist: bigeye-sdk (>=0.4.83,<0.5.0)
17
+ Requires-Dist: bigeye-sdk (>=0.4.84,<0.5.0)
17
18
  Requires-Dist: click (>=8.0.4,<9.0.0)
18
19
  Requires-Dist: rich (>=12.4.4,<13.0.0)
19
20
  Description-Content-Type: text/markdown
@@ -147,6 +147,8 @@ def export(
147
147
  name="Sample", description="SDK Generated"
148
148
  )
149
149
 
150
+ final_metric_ids: List[int] = []
151
+
150
152
  # Require at least 1 option to be specified
151
153
  if not collection_id and not table_id and not metric_ids:
152
154
  raise typer.BadParameter(
@@ -154,19 +156,23 @@ def export(
154
156
  "collection id (-cid), table id (-tid), or list of metric ids (-mid). "
155
157
  )
156
158
 
159
+ # Add metric ids if passed
160
+ if metric_ids:
161
+ final_metric_ids.extend(metric_ids)
162
+
157
163
  # Get existing collection if passed
158
164
  if collection_id:
159
165
  collection: SimpleCollection = SimpleCollection.from_datawatch_object(
160
166
  client.get_collection(collection_id=collection_id).collection
161
167
  )
162
- metric_ids.extend(collection.metric_ids)
168
+ final_metric_ids.extend(collection.metric_ids)
163
169
 
164
170
  # Get metrics from table if passed
165
171
  if table_id:
166
172
  metrics_from_table = client.get_metric_info_batch_post(
167
173
  table_ids=[table_id]
168
174
  ).metrics
169
- metric_ids.extend([m.metric_configuration.id for m in metrics_from_table])
175
+ final_metric_ids.extend([m.metric_configuration.id for m in metrics_from_table])
170
176
  if not metrics_from_table:
171
177
  raise typer.BadParameter(
172
178
  f"No metrics found for given table id. Please check arguments and try again."
@@ -175,7 +181,7 @@ def export(
175
181
  collection.name = metrics_from_table[0].metric_metadata.dataset_name
176
182
 
177
183
  # Pull metric information
178
- metrics: MetricInfoList = client.get_metric_info_batch_post(metric_ids=metric_ids)
184
+ metrics: MetricInfoList = client.get_metric_info_batch_post(metric_ids=final_metric_ids)
179
185
 
180
186
  if not output_path:
181
187
  output_path = client.config.bigconfig_output_path or Path.cwd()
@@ -8,10 +8,10 @@ from bigeye_cli.functions import run_enum_menu
8
8
  from bigeye_cli import global_options
9
9
 
10
10
  from bigeye_sdk.authentication.enums import AuthConfType, BrowserType
11
- from bigeye_sdk.authentication.api_authentication import BasicAPIAuth, BrowserAPIAuth, ApiAuth
11
+ from bigeye_sdk.authentication.api_authentication import BasicAPIAuth, BrowserAPIAuth, ApiAuth, APIKeyAuth
12
12
  from bigeye_sdk.authentication.config import Config
13
13
  from bigeye_sdk.client.datawatch_client import get_user_auth
14
- from bigeye_sdk.generated.com.bigeye.models.generated import Workspace
14
+ from bigeye_sdk.generated.com.bigeye.models.generated import Workspace, WorkspaceIdNameAndRole
15
15
  from bigeye_sdk.exceptions.exceptions import WorkspaceNotSetException
16
16
 
17
17
 
@@ -42,13 +42,7 @@ def configure(
42
42
  if workspace == 'DEFAULT' or not use_default_credential:
43
43
  auth_type = run_enum_menu(enum_clz=AuthConfType, default=AuthConfType.BASIC_AUTH)
44
44
 
45
- if auth_type == AuthConfType.BASIC_AUTH:
46
- base_url = Prompt.ask("Enter the Bigeye URL", default="https://app.bigeye.com")
47
- username = Prompt.ask("Enter the username")
48
- password = Prompt.ask("Enter the password", password=True)
49
- cred = BasicAPIAuth(base_url=base_url,
50
- user=username,password=password)
51
- else:
45
+ if auth_type == AuthConfType.BROWSER_AUTH:
52
46
  browser_type = run_enum_menu(enum_clz=BrowserType, default=BrowserType.CHROME)
53
47
 
54
48
  browser_profile_user_name = None
@@ -60,13 +54,25 @@ def configure(
60
54
  cred = BrowserAPIAuth(browser=browser_type, base_url=base_url,
61
55
  browser_profile_user_name=browser_profile_user_name)
62
56
 
57
+ elif auth_type == AuthConfType.API_KEY_AUTH:
58
+ base_url = Prompt.ask("Enter the Bigeye URL", default="https://app.bigeye.com")
59
+ api_key = Prompt.ask("Enter the API Key", password=True)
60
+ cred = APIKeyAuth(base_url=base_url, api_key=api_key)
61
+
62
+ else:
63
+ base_url = Prompt.ask("Enter the Bigeye URL", default="https://app.bigeye.com")
64
+ username = Prompt.ask("Enter the username")
65
+ password = Prompt.ask("Enter the password", password=True)
66
+ cred = BasicAPIAuth(base_url=base_url,
67
+ user=username,password=password)
68
+
63
69
  cred.save_as_file(auth_filename=bigeye_conf,cred=cred,workspace=workspace)
64
70
  # If inheriting from default credential then load default credential
65
71
  else:
66
72
  cred = ApiAuth.load(auth_file=bigeye_conf,workspace='DEFAULT')
67
73
 
68
74
  # Only prompt user for workspace ID if they have access to multiple workspaces
69
- accessible_workspaces: List[Workspace] = get_user_auth(cred).workspaces
75
+ accessible_workspaces: List[WorkspaceIdNameAndRole] = get_user_auth(cred).workspaces
70
76
  if len(accessible_workspaces) > 1:
71
77
  print(Text(text='\n** WORKSPACE OPTIONS **',style='bold green'))
72
78
  for wk in accessible_workspaces:
@@ -121,6 +127,7 @@ def set(
121
127
  f"Try one of the following: {str.join(', ',config_settings)}"
122
128
  )
123
129
 
130
+
124
131
  @app.command()
125
132
  def get(
126
133
  bigeye_conf: str = global_options.bigeye_conf,
@@ -153,6 +160,7 @@ def get(
153
160
  f"Try one of the following: {str.join(', ',config_settings)}"
154
161
  )
155
162
 
163
+
156
164
  @app.command()
157
165
  def list(
158
166
  bigeye_conf: str = global_options.bigeye_conf,
@@ -181,12 +189,14 @@ def list(
181
189
  table.add_column("Credential Type", justify="right", style="green")
182
190
  for key, value in config.items():
183
191
  cred_type = None
184
- if auth.get(section=key,option='browser',fallback=None):
192
+ if auth.get(section=key, option='browser', fallback=None):
185
193
  cred_type = 'Browser'
186
- elif auth.get(section=key,option='user',fallback=None):
194
+ elif auth.get(section=key, option='user', fallback=None):
187
195
  cred_type = 'Basic'
196
+ elif auth.get(section=key, option='api_key', fallback=None):
197
+ cred_type = 'Api Key'
188
198
  else:
189
199
  cred_type = 'Default'
190
200
  table.add_row(key,value.get('workspace_id'),cred_type)
191
201
 
192
- print(table)
202
+ print(table)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bigeye-cli"
3
- version = "0.3.62"
3
+ version = "0.3.63"
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.83"
22
+ bigeye-sdk = "^0.4.84"
23
23
  rich = "^12.4.4"
24
24
  PyGithub = '^1.57'
25
25
 
@@ -29,7 +29,7 @@ poethepoet = "^0.24.3"
29
29
 
30
30
  [tool.poe.tasks]
31
31
  pre_build = []
32
- pre_publish = ["clean", "docgen"]
32
+ pre_publish = ["clean"]
33
33
  post_publish = ["clean"]
34
34
 
35
35
  [tool.poe.poetry_hooks]
File without changes