bigeye-cli 0.3.53__tar.gz → 0.3.54__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.
- bigeye_cli-0.3.54/PKG-INFO +195 -0
- bigeye_cli-0.3.54/bigeye_cli/CLI_DOCS.md +174 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/deltas/deltas_commands.py +2 -2
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/lineage/lineage_commands.py +6 -27
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/pyproject.toml +3 -3
- bigeye_cli-0.3.53/PKG-INFO +0 -1758
- bigeye_cli-0.3.53/bigeye_cli/CLI_DOCS.md +0 -1737
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/LICENSE +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/__main__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/__version__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/bigconfig/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/bigconfig/bigconfig_commands.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/bigconfig/bigconfig_options.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/catalog/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/catalog/catalog_commands.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/collections/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/collections/collection_commands.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/configure/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/configure/configure_commands.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/deltas/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/enums.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/exceptions/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/exceptions/exceptions.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/functions.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/global_options.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/issues/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/issues/issue_commands.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/lineage/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/metric/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/metric/metric_commands.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/model/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/model/cicd_conf.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/model/github_report.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/model/vendor_report.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/workspace/__init__.py +0 -0
- {bigeye_cli-0.3.53 → bigeye_cli-0.3.54}/bigeye_cli/workspace/workspace_commands.py +0 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: bigeye-cli
|
|
3
|
+
Version: 0.3.54
|
|
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.74,<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
|
+
|
|
22
|
+
# **Bigeye CLI**
|
|
23
|
+
Version: 0.3.54
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
**Setting up your local/build environment**
|
|
27
|
+
Mac with Pyenv
|
|
28
|
+
|
|
29
|
+
1. Install [brew](https://brew.sh/)
|
|
30
|
+
2. Install [pyenv](https://formulae.brew.sh/formula/pyenv)
|
|
31
|
+
3. Install python and define a default global:
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
pyenv install 3.9.13
|
|
35
|
+
pyenv global 3.9.13
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Conda
|
|
39
|
+
Install [conda](https://conda.io/projects/conda/en/latest/user-guide/install/index.html)
|
|
40
|
+
Create environment with python3.9 or greater
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
conda create -n bigeye_env python=3.9
|
|
44
|
+
conda activate bigeye_env
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Linux
|
|
48
|
+
Most linux distributes include a default python distribution and we recommend using that default.
|
|
49
|
+
|
|
50
|
+
**Installing Bigeye-CLI**
|
|
51
|
+
|
|
52
|
+
You can install the Bigeye-CLI from your command line with the following command:
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
pip3 install bigeye-cli
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Configuration
|
|
59
|
+
|
|
60
|
+
Before using the Bigeye CLI, you will need to configure your Bigeye credentials and workspaces. You can do this in the following ways:
|
|
61
|
+
|
|
62
|
+
- Configuration Command
|
|
63
|
+
- Environment Variables
|
|
64
|
+
- Credentials and Configuration Files
|
|
65
|
+
|
|
66
|
+
### Configuration Command
|
|
67
|
+
The quickest way to get started using the Bigeye CLI is to run the `bigeye configure` command. This command will walk you through the options to establish default credentials and configurations for the Bigeye CLI.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
```console
|
|
71
|
+
$ bigeye configure
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Using the bigeye configure command, there are two ways to authenticate: basic authentication and browser authentication.
|
|
75
|
+
|
|
76
|
+
#### Basic Authentication
|
|
77
|
+
|
|
78
|
+
If you select basic authentication, the CLI will prompt you to enter your Bigeye username and password. This will create a default credential file at ~/.bigeye/credentials. This credential will be used for all CLI commands
|
|
79
|
+
unless an environment variable is explicitly provided.
|
|
80
|
+
|
|
81
|
+
#### Browser Authentication
|
|
82
|
+
|
|
83
|
+
Alternatively, you can use browser authentication (Linux/Mac OS only). Login to your bigeye workspace on a Chrome, Chromium or
|
|
84
|
+
Firefox browser. Run **bigeye configure** and select browser_auth when prompted in the CLI and follow the
|
|
85
|
+
instructions. If you use Chrome profiles, make sure to specify the profile email address you are logged into.
|
|
86
|
+
|
|
87
|
+
Note: Your authentication will only be valid so long as your browser session is active. Not supported with SSO enabled.
|
|
88
|
+
|
|
89
|
+
### Environment Variables
|
|
90
|
+
|
|
91
|
+
You can create an environment variable for your workspace credential and configuration files, this is helpful if you would like to store your credential and configuration files some place other than their default locations (~/.bigeye). You can do this by adding the following to your ~/.bashrc or ~/.zshrc file. Please review the format of these files in the below sections.
|
|
92
|
+
|
|
93
|
+
```shell
|
|
94
|
+
export BIGEYE_API_CRED_FILE=/some/path/to/credentials.ini
|
|
95
|
+
export BIGEYE_API_CONFIG_FILE=/some/path/to/config.ini
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Credentials and Configuration Files
|
|
99
|
+
|
|
100
|
+
Lastly, if you want to specify the credential per command, you can always pass a -b parameter with the file path for the desired credential. You can pass a -c parameter with the file path for the desired configuration.
|
|
101
|
+
|
|
102
|
+
_Sample credentials file:_
|
|
103
|
+
|
|
104
|
+
```ini Text
|
|
105
|
+
[DEFAULT]
|
|
106
|
+
base_url = https://app.bigeye.com
|
|
107
|
+
user = some_user@bigeye.com
|
|
108
|
+
password = fakepassword1234
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
_Sample configuration file:_
|
|
112
|
+
|
|
113
|
+
```ini
|
|
114
|
+
[DEFAULT]
|
|
115
|
+
workspace_id = 123
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
#### Configuration Options
|
|
119
|
+
|
|
120
|
+
The configuration files can help to simplify other CLI commands by defining common options in one file. See
|
|
121
|
+
the table below for the complete list of configuration options.
|
|
122
|
+
|
|
123
|
+
| **Key** | **Description** | **Type** | **Example** |
|
|
124
|
+
| ---------------------- | --------------------------------------------------------------------------------------------------- | ------------- | -------------------------------------- |
|
|
125
|
+
| workspace_id | The id for the workspace [Required] | Int | 123 |
|
|
126
|
+
| use_default_credential | Whether or not a unique credential is required for this workspace. Default: True | Bool | True |
|
|
127
|
+
| bigconfig_input_path | The path(s) to bigconfig files that are used for the given workspace. | List[strings] | path/bigconfig.yml,path2/bigconfig.yml |
|
|
128
|
+
| bigconfig_output_path | The path used to output bigconfig PLAN reports and FIXME files. | String | output/bigconfig_reports/ |
|
|
129
|
+
| bigconfig_strict_mode | API errors cause an exception if True. (Validation errors still cause an exception). Default: False | Bool | False |
|
|
130
|
+
| bigconfig_auto_approve | Bigconfig applies should be allowed to run without excplit plan approvals. Default: False | Bool | False |
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
The configuration options above can be manually set directly in your config.ini files or you can utilize the below command to set the config values.
|
|
134
|
+
|
|
135
|
+
```console
|
|
136
|
+
$ bigeye configure set <setting_key> <value> [OPTIONAL WORKSPACE]
|
|
137
|
+
$ bigeye configure set bigconfig_input_path path/bigconfig.yml,path2/bigconfig -w data-science
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
To view the current value of any specific configuration you can either open the config.ini file or utilize the below command.
|
|
141
|
+
|
|
142
|
+
```console
|
|
143
|
+
$ bigeye configure get <setting_key> [OPTIONAL WORKSPACE]
|
|
144
|
+
$ bigeye configure get bigconfig_input_path -w data-science
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Multi-Workspace Support
|
|
148
|
+
|
|
149
|
+
The credential and configuration files are designed to allow Bigeye CLI users to easily switch between their Bigeye workspaces. Each file enforces the idea of a `DEFAULT` section. All subsequent CLI commands will inherit the properties defined in the `DEFAULT`section unless they are directed otherwise. Every command in the Bigeye CLI has the ability to provide a `--workspace` (`-w`) option to override the use of the default workspace.
|
|
150
|
+
|
|
151
|
+
To setup a non-default workspace, run the following command:
|
|
152
|
+
|
|
153
|
+
```console
|
|
154
|
+
$ bigeye configure -w data-science
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Or, open up the files and manually edit them based on your setup. Here are some samples.
|
|
158
|
+
|
|
159
|
+
_Sample configuration file with multiple workspaces:_
|
|
160
|
+
|
|
161
|
+
```ini
|
|
162
|
+
[DEFAULT]
|
|
163
|
+
workspace_id = 123
|
|
164
|
+
bigconfig_input_path = absolute_path/bigconfig.yml,absolute_path2/bigconfig.yml
|
|
165
|
+
bigconfig_output_path = absolute_path/output/
|
|
166
|
+
|
|
167
|
+
[workspace data-science]
|
|
168
|
+
workspace_id = 234
|
|
169
|
+
use_default_credential = True
|
|
170
|
+
bigconfig_input_path = absolute_path/ds/bigconfig.yml,absolute_path2/ds/bigconfig.yml
|
|
171
|
+
|
|
172
|
+
[workspace dev]
|
|
173
|
+
workspace_id = 100
|
|
174
|
+
use_default_credential = False
|
|
175
|
+
bigconfig_auto_approve = True
|
|
176
|
+
bigconfig_input_path = absolute_path/bigconfig.yml,absolute_path2/bigconfig.yml
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
_Sample credentials file with multiple workspaces:_
|
|
180
|
+
|
|
181
|
+
```ini
|
|
182
|
+
[DEFAULT]
|
|
183
|
+
base_url = https://app.bigeye.com
|
|
184
|
+
user = some_user@bigeye.com
|
|
185
|
+
password = fakepassword1234
|
|
186
|
+
|
|
187
|
+
[dev]
|
|
188
|
+
base_url = https://app.bigeye.com
|
|
189
|
+
user = some_user@bigeye.com
|
|
190
|
+
password = fakepassword1234
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**Note:** Most use cases will only require you to have a single `DEFAULT` credential that all workspaces can utilize. Running the `bigeye configure -w <workspace-name>` command for a non-default workspace will prompt you to inherit the credentials from default or create a new set of credentials. A workspace credential is only required if the `use_default_credential` setting is set to False in the configuration of the corresponding workspace.
|
|
194
|
+
|
|
195
|
+
# CLI Documentation
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# **Bigeye CLI**
|
|
2
|
+
Version: 0.3.54
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
**Setting up your local/build environment**
|
|
6
|
+
Mac with Pyenv
|
|
7
|
+
|
|
8
|
+
1. Install [brew](https://brew.sh/)
|
|
9
|
+
2. Install [pyenv](https://formulae.brew.sh/formula/pyenv)
|
|
10
|
+
3. Install python and define a default global:
|
|
11
|
+
|
|
12
|
+
```text
|
|
13
|
+
pyenv install 3.9.13
|
|
14
|
+
pyenv global 3.9.13
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Conda
|
|
18
|
+
Install [conda](https://conda.io/projects/conda/en/latest/user-guide/install/index.html)
|
|
19
|
+
Create environment with python3.9 or greater
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
conda create -n bigeye_env python=3.9
|
|
23
|
+
conda activate bigeye_env
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Linux
|
|
27
|
+
Most linux distributes include a default python distribution and we recommend using that default.
|
|
28
|
+
|
|
29
|
+
**Installing Bigeye-CLI**
|
|
30
|
+
|
|
31
|
+
You can install the Bigeye-CLI from your command line with the following command:
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
pip3 install bigeye-cli
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Configuration
|
|
38
|
+
|
|
39
|
+
Before using the Bigeye CLI, you will need to configure your Bigeye credentials and workspaces. You can do this in the following ways:
|
|
40
|
+
|
|
41
|
+
- Configuration Command
|
|
42
|
+
- Environment Variables
|
|
43
|
+
- Credentials and Configuration Files
|
|
44
|
+
|
|
45
|
+
### Configuration Command
|
|
46
|
+
The quickest way to get started using the Bigeye CLI is to run the `bigeye configure` command. This command will walk you through the options to establish default credentials and configurations for the Bigeye CLI.
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
```console
|
|
50
|
+
$ bigeye configure
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Using the bigeye configure command, there are two ways to authenticate: basic authentication and browser authentication.
|
|
54
|
+
|
|
55
|
+
#### Basic Authentication
|
|
56
|
+
|
|
57
|
+
If you select basic authentication, the CLI will prompt you to enter your Bigeye username and password. This will create a default credential file at ~/.bigeye/credentials. This credential will be used for all CLI commands
|
|
58
|
+
unless an environment variable is explicitly provided.
|
|
59
|
+
|
|
60
|
+
#### Browser Authentication
|
|
61
|
+
|
|
62
|
+
Alternatively, you can use browser authentication (Linux/Mac OS only). Login to your bigeye workspace on a Chrome, Chromium or
|
|
63
|
+
Firefox browser. Run **bigeye configure** and select browser_auth when prompted in the CLI and follow the
|
|
64
|
+
instructions. If you use Chrome profiles, make sure to specify the profile email address you are logged into.
|
|
65
|
+
|
|
66
|
+
Note: Your authentication will only be valid so long as your browser session is active. Not supported with SSO enabled.
|
|
67
|
+
|
|
68
|
+
### Environment Variables
|
|
69
|
+
|
|
70
|
+
You can create an environment variable for your workspace credential and configuration files, this is helpful if you would like to store your credential and configuration files some place other than their default locations (~/.bigeye). You can do this by adding the following to your ~/.bashrc or ~/.zshrc file. Please review the format of these files in the below sections.
|
|
71
|
+
|
|
72
|
+
```shell
|
|
73
|
+
export BIGEYE_API_CRED_FILE=/some/path/to/credentials.ini
|
|
74
|
+
export BIGEYE_API_CONFIG_FILE=/some/path/to/config.ini
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Credentials and Configuration Files
|
|
78
|
+
|
|
79
|
+
Lastly, if you want to specify the credential per command, you can always pass a -b parameter with the file path for the desired credential. You can pass a -c parameter with the file path for the desired configuration.
|
|
80
|
+
|
|
81
|
+
_Sample credentials file:_
|
|
82
|
+
|
|
83
|
+
```ini Text
|
|
84
|
+
[DEFAULT]
|
|
85
|
+
base_url = https://app.bigeye.com
|
|
86
|
+
user = some_user@bigeye.com
|
|
87
|
+
password = fakepassword1234
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
_Sample configuration file:_
|
|
91
|
+
|
|
92
|
+
```ini
|
|
93
|
+
[DEFAULT]
|
|
94
|
+
workspace_id = 123
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
#### Configuration Options
|
|
98
|
+
|
|
99
|
+
The configuration files can help to simplify other CLI commands by defining common options in one file. See
|
|
100
|
+
the table below for the complete list of configuration options.
|
|
101
|
+
|
|
102
|
+
| **Key** | **Description** | **Type** | **Example** |
|
|
103
|
+
| ---------------------- | --------------------------------------------------------------------------------------------------- | ------------- | -------------------------------------- |
|
|
104
|
+
| workspace_id | The id for the workspace [Required] | Int | 123 |
|
|
105
|
+
| use_default_credential | Whether or not a unique credential is required for this workspace. Default: True | Bool | True |
|
|
106
|
+
| bigconfig_input_path | The path(s) to bigconfig files that are used for the given workspace. | List[strings] | path/bigconfig.yml,path2/bigconfig.yml |
|
|
107
|
+
| bigconfig_output_path | The path used to output bigconfig PLAN reports and FIXME files. | String | output/bigconfig_reports/ |
|
|
108
|
+
| bigconfig_strict_mode | API errors cause an exception if True. (Validation errors still cause an exception). Default: False | Bool | False |
|
|
109
|
+
| bigconfig_auto_approve | Bigconfig applies should be allowed to run without excplit plan approvals. Default: False | Bool | False |
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
The configuration options above can be manually set directly in your config.ini files or you can utilize the below command to set the config values.
|
|
113
|
+
|
|
114
|
+
```console
|
|
115
|
+
$ bigeye configure set <setting_key> <value> [OPTIONAL WORKSPACE]
|
|
116
|
+
$ bigeye configure set bigconfig_input_path path/bigconfig.yml,path2/bigconfig -w data-science
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
To view the current value of any specific configuration you can either open the config.ini file or utilize the below command.
|
|
120
|
+
|
|
121
|
+
```console
|
|
122
|
+
$ bigeye configure get <setting_key> [OPTIONAL WORKSPACE]
|
|
123
|
+
$ bigeye configure get bigconfig_input_path -w data-science
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Multi-Workspace Support
|
|
127
|
+
|
|
128
|
+
The credential and configuration files are designed to allow Bigeye CLI users to easily switch between their Bigeye workspaces. Each file enforces the idea of a `DEFAULT` section. All subsequent CLI commands will inherit the properties defined in the `DEFAULT`section unless they are directed otherwise. Every command in the Bigeye CLI has the ability to provide a `--workspace` (`-w`) option to override the use of the default workspace.
|
|
129
|
+
|
|
130
|
+
To setup a non-default workspace, run the following command:
|
|
131
|
+
|
|
132
|
+
```console
|
|
133
|
+
$ bigeye configure -w data-science
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Or, open up the files and manually edit them based on your setup. Here are some samples.
|
|
137
|
+
|
|
138
|
+
_Sample configuration file with multiple workspaces:_
|
|
139
|
+
|
|
140
|
+
```ini
|
|
141
|
+
[DEFAULT]
|
|
142
|
+
workspace_id = 123
|
|
143
|
+
bigconfig_input_path = absolute_path/bigconfig.yml,absolute_path2/bigconfig.yml
|
|
144
|
+
bigconfig_output_path = absolute_path/output/
|
|
145
|
+
|
|
146
|
+
[workspace data-science]
|
|
147
|
+
workspace_id = 234
|
|
148
|
+
use_default_credential = True
|
|
149
|
+
bigconfig_input_path = absolute_path/ds/bigconfig.yml,absolute_path2/ds/bigconfig.yml
|
|
150
|
+
|
|
151
|
+
[workspace dev]
|
|
152
|
+
workspace_id = 100
|
|
153
|
+
use_default_credential = False
|
|
154
|
+
bigconfig_auto_approve = True
|
|
155
|
+
bigconfig_input_path = absolute_path/bigconfig.yml,absolute_path2/bigconfig.yml
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
_Sample credentials file with multiple workspaces:_
|
|
159
|
+
|
|
160
|
+
```ini
|
|
161
|
+
[DEFAULT]
|
|
162
|
+
base_url = https://app.bigeye.com
|
|
163
|
+
user = some_user@bigeye.com
|
|
164
|
+
password = fakepassword1234
|
|
165
|
+
|
|
166
|
+
[dev]
|
|
167
|
+
base_url = https://app.bigeye.com
|
|
168
|
+
user = some_user@bigeye.com
|
|
169
|
+
password = fakepassword1234
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Note:** Most use cases will only require you to have a single `DEFAULT` credential that all workspaces can utilize. Running the `bigeye configure -w <workspace-name>` command for a non-default workspace will prompt you to inherit the credentials from default or create a new set of credentials. A workspace credential is only required if the `use_default_credential` setting is set to False in the configuration of the corresponding workspace.
|
|
173
|
+
|
|
174
|
+
# CLI Documentation
|
|
@@ -96,7 +96,7 @@ def suggest_deltas(
|
|
|
96
96
|
target_selector[1]
|
|
97
97
|
)
|
|
98
98
|
matching_target_tables = (
|
|
99
|
-
lineage_controller.
|
|
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.
|
|
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
|
|
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
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
version = "0.3.54"
|
|
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.
|
|
22
|
+
bigeye-sdk = "^0.4.74"
|
|
23
23
|
rich = "^12.4.4"
|
|
24
24
|
PyGithub = '^1.57'
|
|
25
25
|
|
|
@@ -31,7 +31,7 @@ mypy = "^1.1.1"
|
|
|
31
31
|
|
|
32
32
|
[tool.poe.tasks]
|
|
33
33
|
pre_build = []
|
|
34
|
-
pre_publish = ["clean"
|
|
34
|
+
pre_publish = ["clean"]
|
|
35
35
|
post_publish = ["clean"]
|
|
36
36
|
|
|
37
37
|
[tool.poe.poetry_hooks]
|