Skip to main content

AskAnna CLI is part of the AskAnna platform to kickstart your data science projects

Project description

AskAnna CLI

The AskAnna CLI offers a command-line interface to the AskAnna platform. It simplifies the communication with the AskAnna platform and provides facilities for supporting every part of a data science project.

Documentation

For the latest version check the AskAnna Documentation.

Quickstart

Install AskAnna

pip install askanna

Login to askanna

askanna login

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

When used in a CI, one can configure authentication by setting an environment variable:

export AA_REMOTE=https://beta-api.askanna.eu/v1/
export AA_TOKEN={{ API TOKEN }}

The API token can be found in the created .askanna.yml file or in the curl information on a job run page in the AskAnna platform.

How to push your package to AskAnna

First add a askanna.yml file to the main directory of your project. In AskAnna create a project, copy the push-target and add it to the askanna.yml file.

Next run askanna push and your code will be uploaded to the project in AskAnna.

You can also push code from a CI environment. This requires the following environment variables to be set:

export AA_TOKEN={{ API TOKEN }}

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Make a new release

We use bumpversion to bump the version number of a release:

# upgrade version by 0.0.x
bumpversion patch

# upgrade version by 0.x.0
bumpversion minor

# upgrade version by x.0.0
bumpversion major

Credits

Tools used in rendering this package:

History

0.4.2 (2020-12-22)

  • Fix issue in askanna init which now generates a valid askanna.yml project config file
  • Improvements regarding feedback and error messages when something goes wrong
  • Fix issues regarding generating AskAnna config file

0.4.1 (2020-12-01)

  • Use Python to create a tmp directory so it works on all Python supported platforms

0.4.0 (2020-11-26)

  • Adding variable management for CLI
  • Drop support for Python 3.5 because we use dataclasses
  • Reorganisation of CLI setup in the code base to prepare for SDK development
  • Reorganize how authentication and requests are made for all API communication
  • Adding logout for CLI

0.3.1 (2020-10-23)

  • Improve artifact download to be more reliable in case of download failures

0.3.0 (2020-07-31)

  • Changed askanna artifact to askanna artifact add
  • Adding askanna artifact get
  • Adding askanna variable list to get a list of variables in askanna
  • Adding askanna variable change to modify the value of a variable

0.2.0 (2020-07-23)

  • A default confirm question to confirm that you want to replace the current code package
  • Added askanna push --force to skip the confirm question
  • Added an optional argument to push add a message askanna push -m "push message"
  • If no push messages provided, but a commit message is available, use the last commit message
  • Changing how .askanna.yml is created
  • Adding AskAnna functions for running in job
  • Adding first test to check on push-target
  • Download payload with CLI

0.1.0 (2019-12-05)

  • First commit to repo
  • Basic function to do askanna login
  • First version of askanna package

Project details


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.4.2.tar.gz (28.4 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.4.2-py2.py3-none-any.whl (34.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: askanna-0.4.2.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for askanna-0.4.2.tar.gz
Algorithm Hash digest
SHA256 1e3914fbfae0fe758830ffe10b86e75305909a2cc3955f95ede54bf4ec04725f
MD5 5c8dc3d829232671807954e0ad88d019
BLAKE2b-256 95bcdd648bab2cda329eb46f2c4cc2a9b23e765c649db21b46fd16845c827a58

See more details on using hashes here.

File details

Details for the file askanna-0.4.2-py2.py3-none-any.whl.

File metadata

  • Download URL: askanna-0.4.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 34.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for askanna-0.4.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4602fd66131e91b2a9fe5fcc70cb8c892be24e3ba214c4916b21b2b4a0e69000
MD5 dd265323e92ade77aabcd9e8f0003fec
BLAKE2b-256 f918a18fbad677590be5e2c99cdc83841b1940ea78f16f2cfef9829c68ee774f

See more details on using hashes here.

Supported by

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