Skip to content

Python SDK

The lateste version of the AskAnna SDK is publised on PyPi:

PyPi AskAnna

Install

When working on a local project, we advice you to use a virtual environment and install the AskAnna package in this environment: https://docs.python.org/3/tutorial/venv.html

You can install the latest version of AskAnna via:

pip install askanna

Upgrade

If you want to upgrade to the latest version of AskAnna you can run:

pip install askanna --upgrade

Login

To be able to interact with the AskAnna platform, you first need to login. After installing the AskAnna package, you can login via the command line:

askanna login

Or in your Python code:

from askanna.gateways.auth import AuthGateway

auth = AuthGateway()
auth.login(email="{EMAIL}", password="{PASSWORD}")

Modules

In AskAnna the following modules are available: