The Python ftplib module

To know more about the ftplib module, you can query the official documentation:

http://docs.python.org/library/ftplib.html

ftplib is a native library in Python that allows for connection with FTP servers and for the execution of commands on those servers. It is designed to create FTP clients with few lines of code and to perform admin server routines.

It can be used to create scripts that automate certain tasks or perform dictionary attacks against an FTP server. In addition, it supports encrypted connections with TLS, using the utilities defined in the FTP_TLS class.

In this screen capture, we can see the execution of the help command over the ftplib module:

Get Mastering Python for Networking and Security 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.