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 tracium

Or with a specific version:

pip install tracium==1.5.2

Environment Setup

Set your Tracium API key as an environment variable:

# Linux/macOS
export 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_here

Or use a .env file with python-dotenv:

.envbash
# .env
TRACIUM_API_KEY=your_api_key_here

If you use a .env file, install and load it at startup:

pip install python-dotenv
app.pypython
1
2
3
4
5
6
from dotenv import load_dotenv
load_dotenv()
import tracium
tracium.trace()

Verify Installation

Run this command to verify everything is set up correctly:

pip show tracium