- Review and reorganize the code into classes, modules and directories
- Add docstrings (possible can later generate docs from them)
Possible project structure:
bitTorrent_client/
__init__.py
core/
torrent.py
peer.py
piece.py
...
network/
tracker_client.py
peer_connection.py
storage/
file_writer.py
cli/
main.py
utils/
constants.py
helpers.py
test_data/
test_file1.iso.torrent
test_file2.iso.torrent
Possible project structure: