Install
Install the Stratix Python SDK from the LayerLens package registry.
Requirements
Python 3.8 or higher
pip
Install
pip install layerlens --extra-index-url https://sdk.layerlens.ai/packageVerify
import layerlens
print(layerlens.__version__)You should see 1.3.0 (or later).
Set your API key
Get an API key from stratix.layerlens.ai/settings/api-keys. Then export:
export LAYERLENS_STRATIX_API_KEY="your-api-key"Or pass it explicitly when creating the client:
from layerlens import Stratix
client = Stratix(api_key="your-api-key")Virtual environment (recommended)
Upgrade
Dependencies installed
httpx— HTTP clientpydantic— data validationrequests— file upload (presigned S3 URLs)
Where to next
Last updated
Was this helpful?