aiscalator package

Submodules

aiscalator.api module

API module of the AIscalator tool.

This module presents the entrypoint to use from a python script. It is intended to be used like this, usually from an airflow DAG scripts defining an AIscalator task:

from aiscalator import api

api.jupyter_run("path/to/config.conf", "step_name")
aiscalator.api.jupyter_run(config, notebook=None, prepare_only=False, param=None, param_raw=None)[source]

Executes the step in browserless mode using papermill

Parameters
  • config (str) – path to the configuration file

  • notebook (str) – name of node to run, if None, then run the first one

  • parameters (list) – List of parameters and their values

  • prepare_only (bool) – Indicates if papermill should replace the parameters of the notebook only or it should execute all the cells too

Returns

string – the path to the output notebook resulting from the execution of this step

aiscalator.cli module

Command Line Interface of the AIscalator tool.

Using the python click package (https://click.palletsprojects.com/en/7.x/), this module defines all the entry points to the application.

Module contents

Aiscalator Module: CLI to AIscalate