Environment Setup¶
Installation¶
Unique Toolkit is available on PyPI and can be installed using pip/poetry or uv:
We highly recommend using a virtual environment to install Unique Toolkit.
Minimal Project Setup¶
Here we use uv to setup a minimal project. In the terminal use
to create a project which results in
then we change into the folder and add the unique_toolkit as a dependency
Setting up Examples¶
If you want to explore the examples within a project you can download them using the following code
this will download all the examples from the documentation into a folder called examples.
Setting up Secrets for Examples
The following secrets must be set up in a file with the name unique.env at the root of the project.
Environment File Locations (Click to expand)
The toolkit automatically searches for your unique.env file in the following locations (in order of priority):
1. Custom Location (Highest Priority)¶
Set the UNIQUE_ENV_FILE environment variable to specify a custom location:
2. Current Working Directory¶
unique.env in the directory where you run your script.
3. User Configuration Directory (Recommended)¶
The toolkit follows operating system conventions for configuration files:
Linux/Unix¶
macOS¶
Alternative for macOS
You can also use the Linux-style path on macOS: ~/.config/unique/unique.env
Windows¶
These secrets can be obtained by inspecting you Personal API Key section that can be found when clicking onto your account in the top right corner of the frontend

On clicking onto the personal api key button the following popup appears

and the secrets must be used according to the following table into the environment variables
| Toolkit Secret Variable | Platform Secret Name | Example |
|---|---|---|
| UNIQUE_AUTH_COMPANY_ID | Company ID | 346386357988860534 |
| UNIQUE_AUTH_USER_ID | User ID | 347188092944093062 |
| UNIQUE_APP_ID | App ID | app_iaii8qhvt5j80wo9i4wmwqqc |
| UNIQUE_APP_KEY | Api Key | ukey_<redacted> |
The UNIQUE_API_BASE_URL can be obtained from your admin and the current UNIQUE_API_VERSION is 2023-12-06.