An open API service indexing awesome lists of open source software.

https://github.com/m4tx/pytftp

TFTP client and server implementation in Python
https://github.com/m4tx/pytftp

python tftp

Last synced: 11 months ago
JSON representation

TFTP client and server implementation in Python

Awesome Lists containing this project

README

          

# pyTFTP
TFTP (Trivial File Transfer Protocol) client and server implementation
in Python.

## Features
RFCs supported:
* 1350 - The TFTP Protocol (Revision 2)
* 2347 - TFTP Option Extension
* 2348 - TFTP Blocksize Option
* 7440 - TFTP Windowsize Option

Additional features:
* Block ID rollover for sending large files

Limitations:
* Only octet transfer mode is supported
* Timeouts will work incorrectly in case of a malicious client sending invalid
packets (after receiving an invalid packet, the timeout timer will be reset)

## Requirements
* Python 3.6+

## Usage
Client:
```
client.py -g [port]
```
Use `-p` instead of `-g` to upload (`--put`) the file instead of downloading
(`--get`).

Server:
```
server.py [-p ]
```

There is also `--help` option available that explains all the options
available, such as block and window size for the client and disabling uploads
for the server.