internet application programming his describes modules related to internet application protocols including httpxml-rpcftpand smtp web programming topics such as cgi scripting are covered in "web programming modules related to dealing with common internet-related data formats are covered in "internet data handling and encoding the organization of network-related library modules is one area where there are significant differences between python and in the interest of looking forwardthis assumes the python library organization because it is more logical howeverthe functionality provided by the library modules is virtually identical between python versions as of this writing when applicablepython module names are noted in each section ftplib the ftplib module implements the client side of the ftp protocol it' rarely necessary to use this module directly because the urllib package provides higher-level interface howeverthis module may still be useful if you want to have more control over the low-level details of an ftp connection in order to use this moduleit may be helpful to know some of the details of the ftp protocol which is described in internet rfc single class is defined for establishing an ftp connectionftp([host [user [passwd [acct [timeout]]]]]creates an object representing an ftp connection host is string specifying host name userpasswdand acct optionally specify usernamepasswordand account if no arguments are giventhe connect(and login(methods must be called explicitly to initiate the actual connection if host is givenconnect(is automatically invoked if userpasswdand acct are givenlogin(is invoked timeout is timeout period in seconds an instance of ftp has the following methodsf abort(attempts to abort file transfer that is in progress this may or may not work depending the remote server lib fl ff