Requirements
- Python: 3.10 or higher
- OS: Windows, macOS, or Linux
Quick Install
Choose your package manager
tifone is available on PyPI and can be installed with your favorite package manager.Configuration
Environment Variables
You can configuretif1 using environment variables. These are useful for CI/CD environments.
| Variable | Description | Default |
|---|---|---|
TIF1_CACHE_DIR | Path to the cache directory | ~/.tif1/cache |
TIF1_LIB | Default data lib (pandas or polars) | pandas |
TIF1_ENABLE_CACHE | Enable or disable caching (true/false) | true |
TIF1_ULTRA_COLD_START | Enable ultra-low latency mode | false |
Config File (.tif1rc)
For permanent settings, create a.tif1rc (JSON) file in your home directory:
Advanced Troubleshooting
HTTP/2 SSL Errors
HTTP/2 SSL Errors
tif1 uses niquests for HTTP/2 support. If you encounter SSL errors, ensure your system’s openssl is up to date and that your certificate store is correctly configured.SQLite Database Locking
SQLite Database Locking
If you see “database is locked” errors, it usually means multiple processes are trying to write to the cache simultaneously.
tif1 uses WAL mode to mitigate this, but extremely high concurrency on slow disks may still trigger it.Polars Version Mismatch
Polars Version Mismatch
Ensure you are using
polars>=1.36.0 to avoid compatibility issues with tif1’s categorical optimization.Related Pages
Quickstart
Start using tif1
Configuration
Configure tif1
Troubleshooting
Solve common issues
Environment Variables
Configure via env vars