Skip to main content

AskAnna CLI & Python SDK

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.

PyPI Python License Documentation

Documentation

For the latest information check the AskAnna Documentation. Or open directly the documentation for:

Quickstart

Install AskAnna

pip install askanna

Update AskAnna

pip install -U askanna

Login to AskAnna

askanna login

This will create a .askanna.yml in your home directory.

Authorization token

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.

How to push code to AskAnna

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 init

If you want to start a project from scratch (or a template), you can run the create-command.

askanna create

With the push-command your code will be uploaded to the project in AskAnna.

askanna push

Track metrics

To 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")

Track variables

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")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

askanna-0.24.0.tar.gz (55.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

askanna-0.24.0-py3-none-any.whl (92.2 kB view details)

Uploaded Python 3

File details

Details for the file askanna-0.24.0.tar.gz.

File metadata

  • Download URL: askanna-0.24.0.tar.gz
  • Upload date:
  • Size: 55.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for askanna-0.24.0.tar.gz
Algorithm Hash digest
SHA256 cab751f3564bb95663bd8dda5a394ec4c8e09ff1499c046bcb060ad413bafa30
MD5 4bdfcd1d2525d0d1335d77497bcd36a2
BLAKE2b-256 fbbf3f5fb7544e54b2ab001a1259e0079d5f17d3aa2235303a278dc9925ea2af

See more details on using hashes here.

File details

Details for the file askanna-0.24.0-py3-none-any.whl.

File metadata

  • Download URL: askanna-0.24.0-py3-none-any.whl
  • Upload date:
  • Size: 92.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for askanna-0.24.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47147b5dde4e5d385e1382e0c8be1c3bf4fc3d5f39056fe00d7724ee82347f39
MD5 9df6d29e4fd381c8fc8f2030ac90454b
BLAKE2b-256 87fd0d9dafcbfc6917ee2507fd2f0ba10360e78fc6339139dea9b8f9ee1cce84

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.24.0 This release

2 files

0.23.0

2 files

0.22.0

2 files

0.21.0

2 files

0.20.0

2 files

0.19.2

2 files

0.19.1

2 files

0.19.0

2 files

0.18.0

2 files

0.17.0

2 files

0.16.0

2 files

0.15.0

2 files

0.14.1

2 files

0.14.0

2 files

0.13.1

2 files

0.13.0

2 files

0.12.2

2 files

0.12.1

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page