On this page
  1. ftplib.FTP
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

ftplib.FTP

Prev: ftplib.error_temp | Up: ftplib | Next: ftplib.FTP_TLS
Rel: ftplib.error_perm, ftplib.error_proto, ftplib.error_reply, ftplib.error_temp
Ref: docs.python.org — ftplib.FTP
Tags: #public #python3 #stdlib #ftplib


Import

import ftplib
from ftplib import FTP

Signature & Overview

ftplib.FTP(host='', user='', passwd='', acct='', timeout=<object object at 0x1040b4980>, source_address=None, *, encoding='utf-8')

An FTP client class.

Methods & Attributes

Usage

import ftplib

# Plaintext FTP client (avoid on untrusted networks; prefer FTP_TLS or SFTP)
ftp = ftplib.FTP()
assert ftp.port == 21

Gotchas

REPL Inspect

from ftplib import FTP
help(FTP)

Linked from

Related notes