This repository has been archived on 2023-10-10. You can view files and clone it, but cannot push or open issues/pull-requests.
khepri-tftpy/tftpy/__init__.py

25 lines
774 B
Python

"""
This library implements the tftp protocol, based on rfc 1350.
http://www.faqs.org/rfcs/rfc1350.html
At the moment it implements only a client class, but will include a server,
with support for variable block sizes.
As a client of tftpy, this is the only module that you should need to import
directly. The TftpClient and TftpServer classes can be reached through it.
"""
import sys
# Make sure that this is at least Python 2.3
verlist = sys.version_info
if not (verlist[0] > 2 or (verlist[0] == 2 and verlist[1] >= 3)):
raise AssertionError, "Requires at least Python 2.3"
from TftpShared import *
from TftpPacketTypes import *
from TftpPacketFactory import *
from TftpClient import *
from TftpServer import *
from TftpContexts import *
from TftpStates import *