Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 1 | \chapter{Internet and WWW Services} |
Guido van Rossum | 86cb092 | 1995-03-20 12:59:56 +0000 | [diff] [blame] | 2 | \nodename{Internet and WWW} |
Fred Drake | 710c035 | 1998-02-18 15:47:17 +0000 | [diff] [blame] | 3 | \label{www} |
Guido van Rossum | a8db1df | 1995-02-16 16:29:46 +0000 | [diff] [blame] | 4 | \index{WWW} |
Guido van Rossum | 470be14 | 1995-03-17 16:07:09 +0000 | [diff] [blame] | 5 | \index{Internet} |
| 6 | \index{World-Wide Web} |
Guido van Rossum | a8db1df | 1995-02-16 16:29:46 +0000 | [diff] [blame] | 7 | |
| 8 | The modules described in this chapter provide various services to |
| 9 | World-Wide Web (WWW) clients and/or services, and a few modules |
| 10 | related to news and email. They are all implemented in Python. Some |
| 11 | of these modules require the presence of the system-dependent module |
Fred Drake | a809064 | 1998-01-13 19:10:02 +0000 | [diff] [blame] | 12 | \code{sockets}\refbimodindex{socket}, which is currently only fully |
| 13 | supported on \UNIX{} and Windows NT. Here is an overview: |
Guido van Rossum | a8db1df | 1995-02-16 16:29:46 +0000 | [diff] [blame] | 14 | |
| 15 | \begin{description} |
| 16 | |
Guido van Rossum | d6304d0 | 1995-02-27 17:51:26 +0000 | [diff] [blame] | 17 | \item[cgi] |
| 18 | --- Common Gateway Interface, used to interpret forms in server-side |
| 19 | scripts. |
| 20 | |
Guido van Rossum | a8db1df | 1995-02-16 16:29:46 +0000 | [diff] [blame] | 21 | \item[urllib] |
| 22 | --- Open an arbitrary object given by URL (requires sockets). |
| 23 | |
| 24 | \item[httplib] |
| 25 | --- HTTP protocol client (requires sockets). |
| 26 | |
| 27 | \item[ftplib] |
| 28 | --- FTP protocol client (requires sockets). |
| 29 | |
| 30 | \item[gopherlib] |
| 31 | --- Gopher protocol client (requires sockets). |
| 32 | |
Fred Drake | e28fb67 | 1998-04-24 20:08:28 +0000 | [diff] [blame] | 33 | \item[poplib] |
| 34 | --- POP3 protocol client (requires sockets). |
| 35 | |
Fred Drake | 1e0f8bf | 1998-04-11 04:27:07 +0000 | [diff] [blame] | 36 | \item[imaplib] |
| 37 | --- IMAP4 protocol client (requires sockets). |
| 38 | |
Guido van Rossum | a8db1df | 1995-02-16 16:29:46 +0000 | [diff] [blame] | 39 | \item[nntplib] |
| 40 | --- NNTP protocol client (requires sockets). |
| 41 | |
Guido van Rossum | a40d643 | 1998-06-28 17:58:06 +0000 | [diff] [blame^] | 42 | \item[smtplib] |
| 43 | --- SMTP protocol client (requires sockets). |
| 44 | |
Guido van Rossum | a8db1df | 1995-02-16 16:29:46 +0000 | [diff] [blame] | 45 | \item[urlparse] |
| 46 | --- Parse a URL string into a tuple (addressing scheme identifier, network |
| 47 | location, path, parameters, query string, fragment identifier). |
| 48 | |
Guido van Rossum | a8db1df | 1995-02-16 16:29:46 +0000 | [diff] [blame] | 49 | \item[sgmllib] |
| 50 | --- Only as much of an SGML parser as needed to parse HTML. |
| 51 | |
Fred Drake | e1980ed | 1996-10-09 14:36:54 +0000 | [diff] [blame] | 52 | \item[htmllib] |
Guido van Rossum | 2974f0f | 1997-11-18 15:30:40 +0000 | [diff] [blame] | 53 | --- A parser for HTML documents. |
| 54 | |
| 55 | \item[xmllib] |
| 56 | --- A parser for XML documents. |
Fred Drake | e1980ed | 1996-10-09 14:36:54 +0000 | [diff] [blame] | 57 | |
Fred Drake | 08d301e | 1996-10-08 21:54:06 +0000 | [diff] [blame] | 58 | \item[formatter] |
| 59 | --- Generic output formatter and device interface. |
| 60 | |
Guido van Rossum | a8db1df | 1995-02-16 16:29:46 +0000 | [diff] [blame] | 61 | \item[rfc822] |
Fred Drake | c589124 | 1998-02-09 19:16:20 +0000 | [diff] [blame] | 62 | --- Parse \rfc{822} style mail headers. |
Guido van Rossum | a8db1df | 1995-02-16 16:29:46 +0000 | [diff] [blame] | 63 | |
| 64 | \item[mimetools] |
| 65 | --- Tools for parsing MIME style message bodies. |
| 66 | |
Guido van Rossum | a40d643 | 1998-06-28 17:58:06 +0000 | [diff] [blame^] | 67 | \item[multifile] |
| 68 | --- Make each part of a MIME multipart message ``feel'' like a regular file. |
| 69 | |
Fred Drake | 4b3f031 | 1996-12-13 22:04:31 +0000 | [diff] [blame] | 70 | \item[binhex] |
| 71 | --- Encode and decode files in binhex4 format. |
| 72 | |
| 73 | \item[uu] |
| 74 | --- Encode and decode files in uuencode format. |
| 75 | |
| 76 | \item[binascii] |
| 77 | --- Tools for converting between binary and various ascii-encoded binary |
| 78 | representation |
| 79 | |
| 80 | \item[xdrlib] |
Fred Drake | c589124 | 1998-02-09 19:16:20 +0000 | [diff] [blame] | 81 | --- The External Data Representation Standard as described in \rfc{1014}, |
Fred Drake | 4b3f031 | 1996-12-13 22:04:31 +0000 | [diff] [blame] | 82 | written by Sun Microsystems, Inc. June 1987. |
| 83 | |
Guido van Rossum | 20af95b | 1997-03-25 22:01:35 +0000 | [diff] [blame] | 84 | \item[mailcap] |
Fred Drake | c589124 | 1998-02-09 19:16:20 +0000 | [diff] [blame] | 85 | --- Mailcap file handling. See \rfc{1524}. |
Guido van Rossum | 20af95b | 1997-03-25 22:01:35 +0000 | [diff] [blame] | 86 | |
Fred Drake | 7c68ab2 | 1998-05-19 19:13:01 +0000 | [diff] [blame] | 87 | \item[mimetypes] |
| 88 | --- Mapping of filename extensions to MIME types. |
| 89 | |
Guido van Rossum | e76b7a8 | 1997-04-27 21:25:52 +0000 | [diff] [blame] | 90 | \item[base64] |
| 91 | --- Encode/decode binary files using the MIME base64 encoding. |
| 92 | |
| 93 | \item[quopri] |
| 94 | --- Encode/decode binary files using the MIME quoted-printable encoding. |
| 95 | |
Guido van Rossum | b40f2a7 | 1997-06-02 17:34:40 +0000 | [diff] [blame] | 96 | \item[SocketServer] |
| 97 | --- A framework for network servers. |
| 98 | |
| 99 | \item[mailbox] |
| 100 | --- Read various mailbox formats. |
| 101 | |
Guido van Rossum | fd16ca4 | 1997-07-30 22:05:07 +0000 | [diff] [blame] | 102 | \item[mimify] |
| 103 | --- Mimification and unmimification of mail messages. |
| 104 | |
Guido van Rossum | 1f35977 | 1997-12-30 23:42:27 +0000 | [diff] [blame] | 105 | \item[BaseHTTPServer] |
| 106 | --- Basic HTTP server (base class for SimpleHTTPServer and CGIHTTPServer). |
| 107 | |
Guido van Rossum | a8db1df | 1995-02-16 16:29:46 +0000 | [diff] [blame] | 108 | \end{description} |