PyTor is a peer-to-peer (P2P) file-sharing client built with Python, featuring advanced socket programming and multithreading capabilities.
- Socket Programming: Robust socket-based communication between peers
- .torrent File Parsing: Full support for parsing and interpreting .torrent metadata files
- Chunk-Based Downloads: Efficient file downloading through chunk-based transfers
- Peer Discovery: Automatic discovery and management of 10+ concurrent peers
- Multithreading: Concurrent peer connections handled via multithreading
The client is designed to handle multiple simultaneous peer connections, enabling fast and efficient file downloads through parallel chunk transfers.
See required.txt for dependencies.
pip install -r required.txtpython main.pymain.py- Main entry pointb.py- Core functionality modulerp.py- Additional utilitiesrequired.txt- Python dependencies
- Implements TCP/IP socket communication for peer connections
- Handles concurrent downloads using Python's threading module
- Parses .torrent files to extract metadata and piece information
- Manages multiple simultaneous peer connections for optimal performance