Norman James | 8b2b722 | 2015-10-08 07:01:38 -0500 | [diff] [blame] | 1 | """ |
| 2 | This library implements the tftp protocol, based on rfc 1350. |
| 3 | http://www.faqs.org/rfcs/rfc1350.html |
| 4 | At the moment it implements only a client class, but will include a server, |
| 5 | with support for variable block sizes. |
| 6 | |
| 7 | As a client of tftpy, this is the only module that you should need to import |
| 8 | directly. The TftpClient and TftpServer classes can be reached through it. |
| 9 | """ |
| 10 | |
| 11 | import sys |
| 12 | |
| 13 | # Make sure that this is at least Python 2.3 |
| 14 | required_version = (2, 3) |
| 15 | if sys.version_info < required_version: |
| 16 | raise ImportError, "Requires at least Python 2.3" |
| 17 | |
| 18 | from tftpy.TftpShared import * |
| 19 | from tftpy.TftpPacketTypes import * |
| 20 | from tftpy.TftpPacketFactory import * |
| 21 | from tftpy.TftpClient import * |
| 22 | from tftpy.TftpServer import * |
| 23 | from tftpy.TftpContexts import * |
| 24 | from tftpy.TftpStates import * |
| 25 | |