> ## 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.

# Upgrade from Community Edition

> Getting a license and setting it up to unlock all the Atoti features

Some Atoti features are not available in the community edition.
You need to get a license and set it up to unlock the following features:

* [Atoti Intelligence](../api/atoti_ai)
* [Security](https://docs.activeviam.com/engine/python-sdk/6.2/guides/secure_a_session.md)
* [DirectQuery](https://docs.activeviam.com/engine/python-sdk/6.2/guides/query_an_external_database.md)
* [Distribution](https://docs.activeviam.com/engine/python-sdk/6.2/guides/scale_with_distribution.md)
* [App extension](https://docs.activeviam.com/engine/python-sdk/6.2/guides/extend_the_app.md)
* [Internationalization](https://docs.activeviam.com/engine/python-sdk/6.2/api/atoti.config.I18nConfig.md)
* [Built-in HTTPS](https://docs.activeviam.com/engine/python-sdk/6.2/api/atoti.config.security.HttpsConfig.md)

## Requesting an evaluation license

If you are not yet an ActiveViam customer and want to evaluate the full version of Atoti, you can request an evaluation license.

Once your request is approved, you will get back an email containing a license key.

To set up this license key, store it in an [environment variable](https://en.wikipedia.org/wiki/Environment_variable) named `ATOTI_LICENSE`.

For instance: `ATOTI_LICENSE="A8/nqkXXOMy9uf1EdQ472F…"`

## Using your ActiveViam customer license

If you are already an ActiveViam customer, you can use the license file that has been provided to you (named `AtotiLicense.lic` for instance).

Copy this file in a directory of the computer where you will be running Atoti and store its path in an [environment variable](https://en.wikipedia.org/wiki/Environment_variable) named `ATOTI_LICENSE`.

For instance: `ATOTI_LICENSE="C:\Users\…\AtotiLicense.lic"`

## Declaring the ATOTI\_LICENSE environment variable

The best way to declare the `ATOTI_LICENSE` environment variable is at the OS level since that makes it available to all the programs.

If you cannot do this, there are some alternatives:

* In Google Colab or similar services, declare the variable through secrets:

  ![Colab secrets](https://mintcdn.com/activeviam/0O2WinbFW-AXLRE1/engine/python-sdk/6.2/getting_started/__resources__/upgrade_from_community_edition/colab_secrets.png?fit=max\&auto=format\&n=0O2WinbFW-AXLRE1\&q=85\&s=3dcb14f6905fe641e6aa25b9859682f9)

* Use [dotenv](https://pypi.org/project/python-dotenv) to declare the variable in a `.env` file

* As a last resort, inline the variable in the Python script:

  ```python theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
  import os

  os.environ["ATOTI_LICENSE"] = "A8/nqkXXOMy9uf1EdQ472F…"

  import atoti as tt

  session = tt.Session.start()

  ...
  ```

## Converting a license file to a license key

If you have a license file but prefer the portability of a license key, you can do the conversion with this script:

```python theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
from base64 import b64encode
from pathlib import Path

license_file_path = Path.home() / "downloads" / "atoti.lic"
print(b64encode(license_file_path.read_bytes()).decode())
```

## Testing the license setup

You can test that the license key/file is valid and has been set up correctly by running the following script:

```python theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
import os

import atoti as tt

assert "ATOTI_LICENSE" in os.environ, (
    "Atoti license key not found, try restarting the Python process"
)

session = tt.Session.start()
```
