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
Credits
Tools used in rendering this package:
- Cookiecutter: https://github.com/audreyr/cookiecutter
cookiecutter-pypackage
: https://github.com/audreyr/cookiecutter-pypackage
History
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
toaskanna 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for askanna-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05b819b8ad5fc76b299f7efc203aead39f3e9704782ed3a928d5b8cb1e2ae57b |
|
MD5 | aa1e29536674b569763de0ba52790a3c |
|
BLAKE2b-256 | d12cc17327ae2532501724690495ca90c13a363e1c5a917638d7651484948f58 |