The AskAnna CLI offers a command line interface to the AskAnna platform. With the Python SDK you can run AskAnna functions directly from your Python script. The CLI & Python SDK simplifies the communication with the AskAnna platform and provides facilities for supporting every part of a data science project.
For the latest information check the AskAnna Documentation. Or open directly the documentation for:
pip install askannapip install -U askannaaskanna loginThis will create a .askanna.yml in your home directory.
When the AskAnna CLI & Python SDK is used in for example a CI/CD, one can configure authentication by setting an environment variable:
export AA_REMOTE=https://beta-api.askanna.eu
export AA_TOKEN={{ API TOKEN }}The API token can be found in the created ~/.askanna.yml file after you logged in with askanna login.
Run the innit-command on the main directory of your project. The command will create a new project on AskAnna and will
add a askanna.yml file to your local project directory. In the askanna.yml file you can configure jobs. For more
information, see the askanna.yml documentation.
askanna initIf you want to start a project from scratch (or a template), you can run the create-command.
askanna createWith the push-command your code will be uploaded to the project in AskAnna.
askanna pushTo track metrics for your runs, you can use the function track_metric. For more information, see the
metrics documentation.
from askanna import track_metric
track_metric("name", "value")To track variables for your runs, you can use the function track_variable. For more information, see the
variables documentation.
from askanna import track_variable
track_variable("name", "value")