Dutch Analytics - Xenia documentation

Model deployment quickstart using CLI

Deploy your first model in Xenia using the Xenia CLI.

Installation

Install the Xenia CLI using PIP.

pip install git+https://github.com/DutchAnalytics/xenia-cli.git

To check the version of your installation, use:

xenia --version

Authentication

Sign in to Xenia via the CLI. If you want to use a service user token (api token) to sign in, please add the --token option.

# to authenticate with email and password:
xenia signin

# to authenticate with a service user token:
xenia signin --token

You will be asked for the API endpoint you want to use. The default API endpoint is the latest compatible version of the API. Press enter to use the default.
Then you will be prompted to fill in your credentials (email + password, or API token if you used the --token option). If you use your email and password to authenticate, a temporary access token is generated in the background, which provides you access for 3 hours.

To check if you are authorized, use:

xenia status

If you use your email and password to authenticate, your email will automatically be stored as default user. To check the current user, use:

xenia user

To sign out, use:

xenia signout

MNIST tutorial

The first step is to download a prepared model and sample input image. You can do this by either clicking on the links, or using a curl command in your terminal.

curl -X GET https://storage.googleapis.com/da-xenia/example-model-package/mnist_model_package.zip -o mnist_model_package.zip
curl -X GET https://storage.googleapis.com/da-xenia/example-model-package/1.jpg -o 1.jpg

Updated 19 days ago

Model deployment quickstart using CLI


Deploy your first model in Xenia using the Xenia CLI.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.