The torrent streaming library that powers torrent-dl.
- Sequential download for video streaming
- MOOV atom detection for optimal playback
- Configurable download strategies
- Daemon mode support
pip install -r requirements.txt# Set up development environment
./scripts/setup-dev.sh
# Activate virtual environment
source venv/bin/activate
# Run validation checks
./scripts/validate.shpyflix/
├── torrent/ # Core torrent handling
│ ├── moov.py # Video MOOV atom detection
│ └── strategy.py # Download strategy engine
├── utils/ # Utility modules
├── docs/ # Documentation (see below)
├── scripts/ # Automation scripts
└── tests/ # Test suite
This repository follows a documentation-first approach:
| Directory | Purpose |
|---|---|
| docs/specs/ | Technical specifications |
| docs/adrs/ | Architecture Decision Records |
| docs/architecture/ | System diagrams |
| docs/agent-instructions/ | AI agent protocols |
Before making changes, read:
- Write/update specification in
docs/specs/ - Write tests alongside implementation
- Run
./scripts/validate.sh - Update documentation
See LICENSE for details.