ftplib

The ftplib module is used to implement the client side of the FTP protocol. It’s rarely necessary to use this module directly because the urllib and urllib2 modules provide a higher-level interface. However, this 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 module, it may be helpful to know some of the details of the FTP protocol, which is described in Internet RFC 959.

A single class is defined for establishing an FTP connection:

						FTP([host
						[,
						user,
						passwd]])

Creates an object representing an FTP connection. host is a string specifying a hostname. user and passwd optionally specify a username and password. If used, both arguments must be supplied together. ...

Get Python: Essential Reference, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.