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
- Host: GitHub
- URL: https://github.com/m4tx/pytftp
- Owner: m4tx
- License: mit
- Created: 2018-02-27T18:59:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T19:02:20.000Z (over 8 years ago)
- Last Synced: 2025-04-04T18:05:23.492Z (about 1 year ago)
- Topics: python, tftp
- Language: Python
- Size: 16.6 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.