47 lines
2.1 KiB
Markdown
47 lines
2.1 KiB
Markdown
# Citorrent
|
|
|
|
A simple, convenient, portable, and efficient torrent client.
|
|
|
|
## Tech Stack
|
|
- **Language**: Python 3.10+
|
|
- **Core Engine**: `libtorrent`
|
|
- **GUI**: `PySide6` (Qt for Python)
|
|
- **Database**: `SQLite`
|
|
- **Testing**: `pytest`
|
|
|
|
## Roadmap & Tasks
|
|
|
|
### Phase 1: Core Torrent Logic (TDD)
|
|
- [x] Task 1.1: Setup project structure and environment.
|
|
- [x] Task 1.2: Implement basic `TorrentSession` wrapper for libtorrent.
|
|
- [x] Task 1.3: Implement Magnet link adding functionality.
|
|
- [x] Task 1.4: Implement `.torrent` file loading.
|
|
- [x] Task 1.5: Track download progress and status updates.
|
|
|
|
### Phase 2: Data Persistence (TDD)
|
|
- [x] Task 2.1: Design SQLite schema for torrents and settings.
|
|
- [x] Task 2.2: Implement `DatabaseManager` for saving/loading torrent list.
|
|
- [x] Task 2.3: Implement settings persistence (paths, limits).
|
|
|
|
### Phase 3: GUI Development (TDD/Iterative)
|
|
- [x] Task 3.1: Create main window layout with PySide6.
|
|
- [x] Task 3.2: Implement torrent list view (updating in real-time).
|
|
- [x] Task 3.3: Add "Add Torrent" dialog (Magnet/File).
|
|
- [x] Task 3.4: Integrate Core and Data layers into the GUI via signals/slots.
|
|
- [x] Task 3.5: Implement QSS styling for a modern look & feel.
|
|
- [x] Task 3.6: Add application icons and visual assets.
|
|
|
|
### Phase 4: Portability & Polishing
|
|
- [x] Task 4.1: Implement portable mode (config files in app directory).
|
|
- [ ] Task 4.2: Optimize memory and CPU usage.
|
|
- [x] Task 4.3: Configure PyInstaller/Nuitka (.spec file) for a clean build.
|
|
- [x] Task 4.4: Bundle into a single executable with embedded assets.
|
|
|
|
## Development Notes
|
|
- Follow TDD: Write tests first, then implementation.
|
|
- Use subagents for parallel work on Core, Data, and GUI modules.
|
|
- UI widgets are named using `setObjectName` (e.g., `btnAddTorrent`, `TorrentTable`) to facilitate modern styling via QSS in Phase 3.5.
|
|
- DatabaseManager uses SQLite with two tables: 'torrents' (for torrent metadata) and 'settings' (key-value store for application configuration). Row factory is used to return results as dictionaries for easier access.
|
|
- Used Python 3.12 because libtorrent had DLL load issues on Python 3.8 in this environment.
|
|
|