O'Reilly logo

Python: Essential Reference, Third Edition by David Beazley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required