Installation
Get Tracium set up in your Python project in minutes.
Requirements
- Python >=3.10 or higher
- pip (Python package installer)
Install from PyPI
The recommended way to install Tracium is via pip:
pip install traciumOr with a specific version:
pip install tracium==1.5.2Environment Setup
Set your Tracium API key as an environment variable:
# Linux/macOSexport TRACIUM_API_KEY="your_api_key_here"
# Windows (PowerShell)$env:TRACIUM_API_KEY="your_api_key_here"
# Windows (CMD)set TRACIUM_API_KEY=your_api_key_hereOr use a .env file with python-dotenv:
.envbash
# .envTRACIUM_API_KEY=your_api_key_hereIf you use a .env file, install and load it at startup:
pip install python-dotenvapp.pypython
123456from dotenv import load_dotenv
load_dotenv()
import traciumtracium.trace()Verify Installation
Run this command to verify everything is set up correctly:
pip show tracium