from tftpy.TftpServer import TftpServer
TftpServer( 'tftp' ).listen( 'localhost', 8069 )
Which serves up the files in the 'tftp' directory on port 8069 (69 is the standard tftp port). To download an existing file from the server:
from tftpy.TftpClient import TftpClientwhich should download the file "exists" from the server to the file 'downloaded.txt' (as long as the file exists).
TftpClient( 'localhost',8069).download( 'exists', 'downloaded.txt' )


>>> from tftpy.TftpServer import TftpServer
>>> TftpServer( 'tftp' ).listen( 'localhost', 69 )
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/pymodules/python2.6/tftpy/TftpServer.py", line 36, in _init_
raise TftpException, "The tftproot does not exist."
tftpy.TftpShared.TftpException: The tftproot does not exist.
>>>
Similarly, you've told it to listen on port 69, which is a privileged port (admin-only), using port 8069 would likely work better for a non-admin user.