5
Line | |
---|
1 | # vim: ts=4 sw=4 et ai: |
---|
2 | # -*- coding: utf8 -*- |
---|
3 | """ |
---|
4 | This library implements the tftp protocol, based on rfc 1350. |
---|
5 | http://www.faqs.org/rfcs/rfc1350.html |
---|
6 | At the moment it implements only a client class, but will include a server, |
---|
7 | with support for variable block sizes. |
---|
8 | |
---|
9 | As a client of tftpy, this is the only module that you should need to import |
---|
10 | directly. The TftpClient and TftpServer classes can be reached through it. |
---|
11 | """ |
---|
12 | |
---|
13 | |
---|
14 | import sys |
---|
15 | |
---|
16 | # Make sure that this is at least Python 2.7 |
---|
17 | required_version = (2, 7) |
---|
18 | if sys.version_info < required_version: |
---|
19 | raise ImportError("Requires at least Python 2.7") |
---|
20 | |
---|
21 | from .TftpShared import * |
---|
22 | from . import TftpPacketTypes |
---|
23 | from . import TftpPacketFactory |
---|
24 | from .TftpClient import TftpClient |
---|
25 | from .TftpServer import TftpServer |
---|
26 | from . import TftpContexts |
---|
27 | from . import TftpStates |
---|
Note: See
TracBrowser
for help on using the repository browser.