Skip to content

rats_e2e.aml.cli

Convenience cli application to help run the example aml jobs.

Each subcommand in this cli will execute an example job that is defined in rats_e2e.aml.

$ python -m rats_e2e.aml.cli --help
Usage: python -m rats_e2e.aml.cli [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  basic-job  Submit the [rats_e2e.aml.basic][] application as an aml job.

__all__ = ['Application', 'main'] module-attribute

Application(app)

Bases: apps.AppContainer, cli.Container, apps.PluginMixin

Source code in rats/apps/_app_containers.py
def __init__(self, app: Container) -> None:
    self._app = app

execute()

Register our cli commands and run them using click.

Source code in src/rats_e2e/aml/cli/_app.py
def execute(self) -> None:
    """Register our cli commands and run them using click."""
    apps.run(apps.AppBundle(app_plugin=logs.ConfigureApplication))
    cli.create_group(click.Group("rats-e2e.apps"), self)()

main()

Source code in src/rats_e2e/aml/cli/_app.py
def main() -> None:
    apps.run_plugin(Application)