Real-world benchmarks for Dirghayu dependencies:
| Operation | pip | uv | Speedup |
|---|---|---|---|
| Fresh install (requirements.txt) | 2-5 minutes | 5-10 seconds | 15-30x faster |
| Install PyTorch + deps | 90 seconds | 3 seconds | 30x faster |
| Install pandas + deps | 25 seconds | 1 second | 25x faster |
| Resolve conflicts | 45 seconds | 2 seconds | 22x faster |
| Cache hit install | 30 seconds | <1 second | 30x+ faster |
- Written in Rust - Compiled, not interpreted like pip
- Parallel downloads - Downloads multiple packages simultaneously
- Smart caching - Reuses previously downloaded packages
- Faster dependency resolution - Uses modern SAT solver
- Optimized I/O - Efficient disk and network operations
# pip error:
ERROR: Could not find a version that satisfies the requirement...
# uv error (more helpful):
error: Failed to download `torch==2.0.0`
Caused by: No matching distribution found for torch==2.0.0
Available versions: 2.0.1, 2.1.0, 2.1.1
Hint: Try `torch>=2.0.1`# Replace pip commands with uv pip
pip install package → uv pip install package
pip freeze → uv pip freeze
pip list → uv pip list# uv can also manage Python versions
uv python install 3.11
uv python list# Create venv with uv
uv venv
# Activate and install
source .venv/bin/activate # Linux/macOS
.venv\Scripts\activate # Windows
uv pip install -r requirements.txtInstalling Dirghayu full stack:
- PyTorch (500MB)
- Pandas + NumPy (200MB)
- BioPython + pysam (100MB)
- FastAPI + uvicorn (50MB)
- Other dependencies (150MB)
Total: ~1GB of packages
| Tool | Time | Network Usage |
|---|---|---|
| pip | 4-5 minutes | 1.2GB (no cache reuse) |
| uv | 10-15 seconds | 1GB (smart caching) |
# Switching between branches with different deps
git checkout feature-branch
uv pip sync requirements.txt # 2 seconds
# vs
git checkout feature-branch
pip install -r requirements.txt # 90 seconds# GitHub Actions runtime
- name: Install dependencies (pip)
run: pip install -r requirements.txt
# Takes: 2-3 minutes
- name: Install dependencies (uv)
run: |
pip install uv
uv pip install -r requirements.txt
# Takes: 15-20 seconds (including uv install!)Savings: 2-3 minutes per CI run × 20 runs/day = 40-60 minutes/day saved
# 1. Install uv
# Windows (PowerShell):
irm https://astral.sh/uv/install.ps1 | iex
# macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
# 2. Install Dirghayu dependencies
uv pip install -r requirements.txt
# Done! ✓# Everyone on the team installs uv once
# Then uses uv instead of pip for all projects
# Fresh clone
git clone https://github.com/your-org/dirghayu
cd dirghayu
uv pip install -r requirements.txt # 10 seconds
# vs traditional
git clone https://github.com/your-org/dirghayu
cd dirghayu
pip install -r requirements.txt # 3-4 minutesGenomics packages often have large compiled extensions:
- PyTorch with CUDA: 2GB+
- TensorFlow: 500MB+
- NumPy/SciPy: 100MB each
uv handles these efficiently:
- Parallel download of multiple wheels
- Smart caching (download once, use forever)
- Fast verification (no re-downloading)
Genomics projects have complex dependencies:
torch 2.0 requires numpy < 1.25
pandas 2.0 requires numpy >= 1.23
scikit-learn requires scipy >= 1.5
uv resolves conflicts faster:
- pip: 30-60 seconds to resolve
- uv: 1-3 seconds to resolve
- Free tier: 2,000 minutes/month
- Cost per additional minute: $0.008
Savings with uv:
- 2 minutes saved per run
- 100 runs/month
- 200 minutes saved = $1.60/month
- For teams: $20-50/month saved
- Average developer cost: $60/hour
- 5 minutes saved per day per developer
- 20 working days/month
- 100 minutes = 1.67 hours saved/month
- $100/developer/month in time savings
For a 5-person genomics team:
- Time saved: 8+ hours/month
- Money saved: $500-600/month (developer time + CI)
- Frustration saved: Priceless
Install uv. It's a no-brainer.
- uv Documentation: https://docs.astral.sh/uv/
- uv GitHub: https://github.com/astral-sh/uv
- Comparison: https://docs.astral.sh/uv/pip/compatibility/