> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Guide to install Atoti

[`atoti`](../api/atoti) and its [plugins](https://docs.activeviam.com/engine/python-sdk/6.2/getting_started/plugins.md) are available on [PyPI](https://pypi.org/project/atoti) and can thus be installed with package managers such as [uv](https://docs.astral.sh/uv):

```bash theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
uv add atoti
```

or [pip](https://pip.pypa.io):

```bash theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
pip install atoti
```

## Advanced

### ActiveViam repository

Installing Atoti Python SDK packages with PyPI is the easiest way but they can also be downloaded from ActiveViam's repository by configuring `https://activeviam.jfrog.io/artifactory/api/pypi/pypi/simple/` as an [extra-index-url](https://docs.astral.sh/uv/reference/settings/#extra-index-url).

### Client and server parts

[`atoti`](../api/atoti) and its [plugins](https://docs.activeviam.com/engine/python-sdk/6.2/getting_started/plugins.md) have up to two parts:

* a server part, starting and running the Atoti session.
* a client part, providing the Python API to interact with the session.

For instance, with the [DirectQuery JDBC plugin](../api/atoti_directquery_jdbc):

```mermaid theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
flowchart LR
    subgraph client["Client part"]
        atoti-client["atoti-client"]
        atoti-client-directquery-jdbc["atoti-client-directquery-jdbc"]
    end

    subgraph server["Server part"]
        atoti-server["atoti-server"]
        atoti-server-directquery-jdbc["atoti-server-directquery-jdbc"]
    end

    database[("External database")]

    client -- "controls" --> server
    server -- "queries" --> database
```

`atoti` installs both parts and its extras install both parts of the corresponding plugins.
For instance, `atoti[directquery-jdbc]` installs the four packages above.
Some plugins, such as [`spring-boot-admin`](../api/atoti_spring_boot_admin), have no Python API and thus only have a server part.

The parts can also be installed separately: see [client only](#client-only), [server only](#server-only), and [custom JDK](#custom-jdk).

### Client only

Since `atoti-client` extras only install the client part of [plugins](https://docs.activeviam.com/engine/python-sdk/6.2/getting_started/plugins.md), the session to [connect](https://docs.activeviam.com/engine/python-sdk/6.2/api/atoti.Session.connect.md) to must provide the server part of these plugins.

```bash theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
uv add atoti-client
```

Or, with the [`JupyterLab extension`](../api/atoti_jupyterlab) extra:

```bash theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
uv add "atoti-client[jupyterlab]"
```

### Server only

Conversely, `atoti-server` and its extras only contain the server part of Atoti and its [plugins](https://docs.activeviam.com/engine/python-sdk/6.2/getting_started/plugins.md): everything needed to start a session, without any client dependency.
This is useful, for instance, in a [Docker image](https://docs.activeviam.com/engine/python-sdk/6.2/getting_started/deployment/dockerized_deployment.md) packaging the server side of a project, to which users then [connect](https://docs.activeviam.com/engine/python-sdk/6.2/api/atoti.Session.connect.md) with `atoti-client`:

```bash theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
uv add "atoti-server[directquery-jdbc]"
```

### Custom JDK

Installing `atoti` will install [jdk4py](https://github.com/activeviam/jdk4py): a Python package embedding a JDK including all the Java modules required to run Atoti.

Projects willing to use their own JDK can skip the installation of `jdk4py`:

```bash theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
uv add atoti-client atoti-server
```

[Plugins](https://docs.activeviam.com/engine/python-sdk/6.2/getting_started/plugins.md) are then installed through the extras of both packages:

```bash theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
uv add "atoti-client[directquery-jdbc]" "atoti-server[directquery-jdbc]"
```

This requires the `JAVA_HOME` environment variable to point to a JDK >=25.

### Offline

Tools such as [pip download](https://pip.pypa.io/en/stable/cli/pip_download/) can be used to facilitate offline installation.
