Installation¶
Basic Installation¶
Install Truthound using pip:
This installs the core package with all essential features including:
- Polars for high-performance data processing
- PyYAML for configuration files
- Rich for beautiful console output
- Typer for the CLI interface
Optional Dependencies¶
Truthound provides optional extras for specific use cases:
Reports (HTML)¶
Enables HTML report generation with Jinja2.
PDF Export¶
Enables PDF export with WeasyPrint.
System Libraries Required
WeasyPrint requires system libraries (Pango, Cairo, etc.) that pip cannot install.
You must install them before running pip install truthound[pdf]:
# macOS
brew install pango cairo gdk-pixbuf libffi
# Ubuntu/Debian
sudo apt-get install libpango-1.0-0 libpangocairo-1.0-0 \
libgdk-pixbuf2.0-0 libffi-dev shared-mime-info
# Fedora/RHEL
sudo dnf install pango gdk-pixbuf2 libffi-devel
Without these, you'll get: Error: cannot load library 'libpango-1.0-0'
See Data Docs Guide for full instructions including Docker and Windows.
Drift Detection¶
Enables statistical drift detection with SciPy.
Anomaly Detection¶
Enables ML-based anomaly detection with scikit-learn.
Cloud Storage¶
# AWS S3
pip install truthound[s3]
# Google Cloud Storage
pip install truthound[gcs]
# Azure Blob Storage
pip install truthound[azure]
# All cloud providers + database
pip install truthound[stores]
Database¶
Enables SQLAlchemy-based database storage for validation results.
Streaming¶
# Kafka
pip install truthound[kafka]
# or equivalently:
pip install truthound[streaming]
# All async datasources (Kafka, MongoDB, Elasticsearch)
pip install truthound[async-datasources]
Enables Kafka streaming support with aiokafka.
Kinesis Support
Kinesis adapter uses aiobotocore which is included in the core package via boto3.
NoSQL Databases¶
# MongoDB
pip install truthound[mongodb]
# Elasticsearch
pip install truthound[elasticsearch]
# All NoSQL
pip install truthound[nosql]
Performance Optimization¶
Includes xxhash for faster cache fingerprint generation (~10x faster).
Dashboard (Web UI)¶
For the web-based dashboard and API server, install the separate truthound-dashboard package:
Then start the server:
See the truthound-dashboard repository for more details.
Full Installation¶
Install all optional dependencies:
Development¶
For development with testing tools:
Verification¶
Verify your installation:
Troubleshooting¶
Common Issues¶
ModuleNotFoundError: No module named 'truthound'¶
Ensure you've installed Truthound:
Permission Errors¶
Use a virtual environment:
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows
pip install truthound
Polars Installation Issues¶
Polars requires a Rust-compatible system. On older systems: