Backend.AI Client SDK for Python
================================
Python 3.8 or higher is required.
You can download `its official installer from python.org
`_, or use a 3rd-party package/version manager
such as `homebrew `_, `miniconda
`_, or `pyenv
`_. It works on Linux, macOS, and Windows.
We recommend to create a virtual environment for isolated, unobtrusive installation
of the client SDK library and tools.
.. code-block:: console
$ python3 -m venv venv-backend-ai
$ source venv-backend-ai/bin/activate
(venv-backend-ai) $
Then install the client library from PyPI.
.. code-block:: console
(venv-backend-ai) $ pip install -U pip setuptools
(venv-backend-ai) $ pip install backend.ai-client
.. note::
We recommend to install the client library with the same version as the server.
You can check the server version by visiting the server's webui, click the profile icon on the top-right corner, and then click the "About Backend.AI" menu. Then install the client library with the same version as the server.
.. code-block:: console
(venv-backend-ai) $ pip install backend.ai-client==
Set your API keypair as environment variables:
.. code-block:: console
(venv-backend-ai) $ export BACKEND_ACCESS_KEY=AKIA...
(venv-backend-ai) $ export BACKEND_SECRET_KEY=...
And then try the first commands:
.. code-block:: console
(venv-backend-ai) $ backend.ai --help
...
(venv-backend-ai) $ backend.ai ps
...
Check out more details with the below table of contents.
.. toctree::
:maxdepth: 2
gsg/installation
gsg/config
cli/index
dev/index
func/index
lowlevel/index