Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TracingInsights/tif1/llms.txt
Use this file to discover all available pages before exploring further.
Basic Installation
Install tif1 via pip:Requirements: Python 3.10 or higher
Optional Dependencies
tif1 supports optional features through extra dependencies:- Development
- Polars Backend
- All Extras
Install development tools for contributing to tif1:Includes:
pytest- Testing framework with xdist for parallel executionpytest-cov- Code coverage reportingpytest-benchmark- Performance benchmarkingruff- Fast Python linter and formatterty- Type checkinghypothesis- Property-based testing
Using uv (Recommended)
For faster, more reliable installations, use uv:Why uv?
uv is 10-100x faster than pip and provides better dependency resolution. Perfect for data science workflows.Verify Installation
Verify that tif1 is installed correctly:Expected Output
Expected Output
Configuration
Configuration File (.tif1rc)
tif1 supports optional configuration via a.tif1rc file in your home directory:
Maximum number of retry attempts for failed HTTP requests
Enable Pydantic validation for all data payloads (slower but safer)
DataFrame backend:
"pandas" or "polars"Enable SQLite caching for faster repeated access
Directory for SQLite cache database
Runtime Configuration
You can also configure tif1 programmatically:Environment Setup
Jupyter Notebook
tif1 works seamlessly in Jupyter notebooks with rich HTML display:Command Line Interface
tif1 includes a CLI tool for quick data exploration:tif1 --help for full CLI documentation.
Cache Directory
On first use, tif1 creates a cache directory:The cache can grow to several hundred MB depending on usage. Clear it periodically with
cache.clear() if needed.Managing Cache
Network Configuration
Proxy Support
tif1 usesniquests which respects standard HTTP proxy environment variables:
Firewall Considerations
tif1 fetches data from:- Primary:
cdn.jsdelivr.net(jsDelivr CDN) - Fallback: Additional CDN sources
Logging
Enable debug logging to troubleshoot issues:logging.DEBUG- Verbose output including HTTP requests and cache operationslogging.INFO- General information about data fetchinglogging.WARNING- Warnings and retries (default)logging.ERROR- Errors only
Troubleshooting
ImportError: No module named 'tif1'
ImportError: No module named 'tif1'
Ensure tif1 is installed in the correct Python environment:
NetworkError: Failed to fetch data
NetworkError: Failed to fetch data
Check your internet connection and firewall settings. Enable debug logging:
DataNotFoundError
DataNotFoundError
Verify the event and session names:
Slow Performance
Slow Performance
First access is slower as data is fetched and cached. Subsequent access is fast:
Next Steps
Quick Start Guide
Build your first F1 data analysis script
API Reference
Explore the complete API documentation