Skip to main content

A project for building a custom file transfer protocol over TCP.

Project description

Taha File Protocol

Taha File Protocol or TFP, is a learning project for building a custom file transfer protocol over TCP using Python.

The goal is to understand how application protocols are made

What This Project Does

TFP lets one computer send a file to another computer using a simple custom protocol.

It supports:

  • TCP socket communication
  • Custom packet headers
  • Message types such as HELLO, FILE_INFO, FILE_CHUNK, FILE_END, and ACK
  • File transfer in chunks
  • SHA-256 checksum verification
  • Command-line sender and receiver tools

Project Structure

TahaFileProtocol/
  tfp/
    protocol.py
    sender.py
    receiver.py
    checksum.py
    __init__.py
  tests/
    test_protocol.py
  pyproject.toml
  README.md
  LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taha_file_protocol-0.2.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taha_file_protocol-0.2.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file taha_file_protocol-0.2.0.tar.gz.

File metadata

  • Download URL: taha_file_protocol-0.2.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for taha_file_protocol-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1324c63e49312045f1b50509af0f89b980d93ec7b2a436b005cd847c9b677b15
MD5 495f6e80e3b83b05f6686dcf4072b0fe
BLAKE2b-256 fd2101bf0eb610e03d44693aefb764b30887fb4d8f4bea63f16aaf1ad559e643

See more details on using hashes here.

File details

Details for the file taha_file_protocol-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for taha_file_protocol-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48114641bec18572a760d1d64b7ce5add6a5bc5d6cdfd161f06ce291956ea8a8
MD5 92116a422c472a45528b0b5a408f4cd9
BLAKE2b-256 de3ab3bf8aa4d23a7ac60de436618c5f525384d2f24845efbe7999b47e1540a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page