blob: 143b15dae3842f5d9258a3149ab6da7c4b24fbcc [file] [log] [blame]
Guido van Rossumecde7811995-03-28 13:35:14 +00001\chapter{Internet and WWW Services}
Guido van Rossum86cb0921995-03-20 12:59:56 +00002\nodename{Internet and WWW}
Fred Drake710c0351998-02-18 15:47:17 +00003\label{www}
Guido van Rossuma8db1df1995-02-16 16:29:46 +00004\index{WWW}
Guido van Rossum470be141995-03-17 16:07:09 +00005\index{Internet}
6\index{World-Wide Web}
Guido van Rossuma8db1df1995-02-16 16:29:46 +00007
8The modules described in this chapter provide various services to
9World-Wide Web (WWW) clients and/or services, and a few modules
10related to news and email. They are all implemented in Python. Some
11of these modules require the presence of the system-dependent module
Fred Drakea8090641998-01-13 19:10:02 +000012\code{sockets}\refbimodindex{socket}, which is currently only fully
13supported on \UNIX{} and Windows NT. Here is an overview:
Guido van Rossuma8db1df1995-02-16 16:29:46 +000014
15\begin{description}
16
Guido van Rossumd6304d01995-02-27 17:51:26 +000017\item[cgi]
18--- Common Gateway Interface, used to interpret forms in server-side
19scripts.
20
Guido van Rossuma8db1df1995-02-16 16:29:46 +000021\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 Drakee28fb671998-04-24 20:08:28 +000033\item[poplib]
34--- POP3 protocol client (requires sockets).
35
Fred Drake1e0f8bf1998-04-11 04:27:07 +000036\item[imaplib]
37--- IMAP4 protocol client (requires sockets).
38
Guido van Rossuma8db1df1995-02-16 16:29:46 +000039\item[nntplib]
40--- NNTP protocol client (requires sockets).
41
Guido van Rossuma40d6431998-06-28 17:58:06 +000042\item[smtplib]
43--- SMTP protocol client (requires sockets).
44
Guido van Rossuma8db1df1995-02-16 16:29:46 +000045\item[urlparse]
46--- Parse a URL string into a tuple (addressing scheme identifier, network
47location, path, parameters, query string, fragment identifier).
48
Guido van Rossuma8db1df1995-02-16 16:29:46 +000049\item[sgmllib]
50--- Only as much of an SGML parser as needed to parse HTML.
51
Fred Drakee1980ed1996-10-09 14:36:54 +000052\item[htmllib]
Guido van Rossum2974f0f1997-11-18 15:30:40 +000053--- A parser for HTML documents.
54
55\item[xmllib]
56--- A parser for XML documents.
Fred Drakee1980ed1996-10-09 14:36:54 +000057
Fred Drake08d301e1996-10-08 21:54:06 +000058\item[formatter]
59--- Generic output formatter and device interface.
60
Guido van Rossuma8db1df1995-02-16 16:29:46 +000061\item[rfc822]
Fred Drakec5891241998-02-09 19:16:20 +000062--- Parse \rfc{822} style mail headers.
Guido van Rossuma8db1df1995-02-16 16:29:46 +000063
64\item[mimetools]
65--- Tools for parsing MIME style message bodies.
66
Guido van Rossuma40d6431998-06-28 17:58:06 +000067\item[multifile]
68--- Make each part of a MIME multipart message ``feel'' like a regular file.
69
Fred Drake4b3f0311996-12-13 22:04:31 +000070\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
78representation
79
80\item[xdrlib]
Fred Drakec5891241998-02-09 19:16:20 +000081--- The External Data Representation Standard as described in \rfc{1014},
Fred Drake4b3f0311996-12-13 22:04:31 +000082written by Sun Microsystems, Inc. June 1987.
83
Guido van Rossum20af95b1997-03-25 22:01:35 +000084\item[mailcap]
Fred Drakec5891241998-02-09 19:16:20 +000085--- Mailcap file handling. See \rfc{1524}.
Guido van Rossum20af95b1997-03-25 22:01:35 +000086
Fred Drake7c68ab21998-05-19 19:13:01 +000087\item[mimetypes]
88--- Mapping of filename extensions to MIME types.
89
Guido van Rossume76b7a81997-04-27 21:25:52 +000090\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 Rossumb40f2a71997-06-02 17:34:40 +000096\item[SocketServer]
97--- A framework for network servers.
98
99\item[mailbox]
100--- Read various mailbox formats.
101
Guido van Rossumfd16ca41997-07-30 22:05:07 +0000102\item[mimify]
103--- Mimification and unmimification of mail messages.
104
Guido van Rossum1f359771997-12-30 23:42:27 +0000105\item[BaseHTTPServer]
106--- Basic HTTP server (base class for SimpleHTTPServer and CGIHTTPServer).
107
Guido van Rossuma8db1df1995-02-16 16:29:46 +0000108\end{description}