SDKs
Python
Python SDK Setup Guide for Tensor One
Get started with setting up your Tensor One projects using Python. Depending on your project's needs, the Python SDK allows for flexible and powerful interaction with the Tensor One platform.
1. Install the Tensor One SDK
It's recommended to use a Python virtual environment to manage dependencies and avoid conflicts between projects.
Create a Virtual Environment
Linux & macOS:
python3 -m venv env
source env/bin/activate
Windows:
python -m venv env
env\Scripts\activate
Install the SDK
Run the following command:
python -m pip install tensorone
2. Verify Installation
Check the installed version of the Tensor One SDK:
pip show tensorone
Example output:
tensorone==1.6.1
3. Set Your API Key
To authenticate with the Tensor One platform, set your API key securely using environment variables.
import tensorone
import os
tensorone.api_key = os.getenv("TENSORONE_API_KEY")
Note: Do not hardcode your API key into your source code. Use environment variables or a secure secrets manager.
Now that the Tensor One Python SDK is installed and configured, you're ready to build and interact with the platform!