And local file urls urlparse python parses url string into components
Operation |
|
|
---|---|---|
|
|
|
Commonly Used Library Modules
Following are summaries of some of the more commonly used modules in the Python Internet modules set. This is just a rep-resentative sample; see the Python Library Reference for a more complete list.
Internet Modules and Tools | 173
cgi
Server-side CGI script support: cgi.FieldStorage parses the input stream; cgi.escape applies HTML escape conventions to output streams. To parse and access form
information: | after | a | CGI | script | calls |
---|
returns | file | with | read | methods; | also |
---|
ftplib
FTP (file transfer protocol) modules. ftplib provides in-terfaces for Internet file transfers in Python programs. Af-ter ftp=ftplib.FTP('sitename'), ftp has methods for login, changing directories, fetching/storing files and listings, etc. Supports binary and text transfers; works on any ma-chine with Python and an Internet connection.poplib, imaplib, smtplib
POP, IMAP (mail fetch), and SMTP (mail send) protocol modules.