Files
Citorrent/README.md

2.1 KiB

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)

  • Task 1.1: Setup project structure and environment.
  • Task 1.2: Implement basic TorrentSession wrapper for libtorrent.
  • Task 1.3: Implement Magnet link adding functionality.
  • Task 1.4: Implement .torrent file loading.
  • Task 1.5: Track download progress and status updates.

Phase 2: Data Persistence (TDD)

  • Task 2.1: Design SQLite schema for torrents and settings.
  • Task 2.2: Implement DatabaseManager for saving/loading torrent list.
  • Task 2.3: Implement settings persistence (paths, limits).

Phase 3: GUI Development (TDD/Iterative)

  • Task 3.1: Create main window layout with PySide6.
  • Task 3.2: Implement torrent list view (updating in real-time).
  • Task 3.3: Add "Add Torrent" dialog (Magnet/File).
  • Task 3.4: Integrate Core and Data layers into the GUI via signals/slots.
  • Task 3.5: Implement QSS styling for a modern look & feel.
  • Task 3.6: Add application icons and visual assets.

Phase 4: Portability & Polishing

  • Task 4.1: Implement portable mode (config files in app directory).
  • Task 4.2: Optimize memory and CPU usage.
  • Task 4.3: Configure PyInstaller/Nuitka (.spec file) for a clean build.
  • 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.