Config
set_google_application_credentials(json_path)
Receives the json_path credentials as a parameter,move the file to the configuration directory and update its path in the configuration file
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
json_path |
str
|
json_path credentials |
required |
Source code in terminal_translator/config.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
set_project_id(credential)
Receives the project-id as a parameter and puts it in the configuration file
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
credential |
str
|
project-id |
required |
Source code in terminal_translator/config.py
45 46 47 48 49 50 51 52 53 54 55 56 | |