source: rtems-tools/tester/rt/tftpy/__init__.py @ f24e116

5
Last change on this file since f24e116 was f24e116, checked in by Chris Johns <chrisj@…>, on 11/07/18 at 03:58:17

tester: Update the Python TFTP server to fix Python3 issues.

Updated to af2f2fe89a3bf45748b78703820efb0986a8207a.
Repo is https://github.com/msoulier/tftpy.git

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