CLI
kedro_aim.framework.cli.cli
kedro_aim.framework.cli.cli.KedroClickGroup
Bases: click.Group
The main entry point for the Kedro CLI.
Source code in kedro_aim/framework/cli/cli.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
kedro_aim.framework.cli.cli.KedroClickGroup.get_command(ctx, cmd_name)
Get a click command by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ctx |
Context
|
The click context. |
required |
cmd_name |
str
|
The name of the command. |
required |
Returns:
Type | Description |
---|---|
Optional[click.Command]
|
The click command with the given name. |
Source code in kedro_aim/framework/cli/cli.py
44 45 46 47 48 49 50 51 52 53 54 55 |
|
kedro_aim.framework.cli.cli.KedroClickGroup.list_commands(ctx)
List the names of all commands.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ctx |
Context
|
The click context. |
required |
Returns:
Type | Description |
---|---|
List[str]
|
A list of command names. |
Source code in kedro_aim/framework/cli/cli.py
31 32 33 34 35 36 37 38 39 40 41 42 |
|
kedro_aim.framework.cli.cli.KedroClickGroup.reset_commands()
Reset the commands to the default ones.
Source code in kedro_aim/framework/cli/cli.py
22 23 24 25 26 27 28 29 |
|
kedro_aim.framework.cli.cli.aim_commands()
Use aim-specific commands inside kedro project.
Source code in kedro_aim/framework/cli/cli.py
64 65 66 67 |
|
kedro_aim.framework.cli.cli.commands()
Kedro plugin for interactions with aim.
Source code in kedro_aim/framework/cli/cli.py
58 59 60 61 |
|
kedro_aim.framework.cli.cli.init(env, force, silent)
Updates the template of a kedro project.
Running this command is mandatory to use kedro-aim. This adds "conf/base/aim.yml": This is a configuration file used for run parametrization when calling "kedro run" command.
Source code in kedro_aim/framework/cli/cli.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
|
kedro_aim.framework.cli.cli.ui(env, port, host)
Start the aim UI.
Opens the aim user interface with the project-specific settings of aim.yml. This interface enables to browse and compares runs.
Source code in kedro_aim/framework/cli/cli.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
|
kedro_aim.framework.cli.cli_utils
kedro_aim.framework.cli.cli_utils.render_jinja_template(src, is_cookiecutter=False, **kwargs)
Render a template file and replace tis jinja's tags.
This functions enable to copy a file and render the tags (identified by
{{ my_tag }}
) with the values provided in kwargs.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
src |
Union[str, Path]
|
The path to the template which should be rendered |
required |
is_cookiecutter |
bool
|
If the template is a cookiecutter template |
False
|
**kwargs |
Any
|
Extra arguments to be passed to the template |
{}
|
Returns:
Type | Description |
---|---|
str
|
A string that contains all the files with replaced tags. |
Source code in kedro_aim/framework/cli/cli_utils.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
kedro_aim.framework.cli.cli_utils.write_jinja_template(src, dst, **kwargs)
Write a template file and replace tis jinja's tags.
Write a template file and replace tis jinja's tags (identified by {{ my_tag }}
)
with the values provided in kwargs.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
src |
Union[str, Path]
|
Path to the template which should be rendered |
required |
dst |
Union[str, Path]
|
Path where the rendered template should be saved |
required |
**kwargs |
Any
|
Extra arguments to be passed to the template |
{}
|
Source code in kedro_aim/framework/cli/cli_utils.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|