blob: 89799f622b98f8bf6595098dc8ea86ed92ed43e1 [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
33\item[nntplib]
34--- NNTP protocol client (requires sockets).
35
36\item[urlparse]
37--- Parse a URL string into a tuple (addressing scheme identifier, network
38location, path, parameters, query string, fragment identifier).
39
Guido van Rossuma8db1df1995-02-16 16:29:46 +000040\item[sgmllib]
41--- Only as much of an SGML parser as needed to parse HTML.
42
Fred Drakee1980ed1996-10-09 14:36:54 +000043\item[htmllib]
Guido van Rossum2974f0f1997-11-18 15:30:40 +000044--- A parser for HTML documents.
45
46\item[xmllib]
47--- A parser for XML documents.
Fred Drakee1980ed1996-10-09 14:36:54 +000048
Fred Drake08d301e1996-10-08 21:54:06 +000049\item[formatter]
50--- Generic output formatter and device interface.
51
Guido van Rossuma8db1df1995-02-16 16:29:46 +000052\item[rfc822]
Fred Drakec5891241998-02-09 19:16:20 +000053--- Parse \rfc{822} style mail headers.
Guido van Rossuma8db1df1995-02-16 16:29:46 +000054
55\item[mimetools]
56--- Tools for parsing MIME style message bodies.
57
Fred Drake4b3f0311996-12-13 22:04:31 +000058\item[binhex]
59--- Encode and decode files in binhex4 format.
60
61\item[uu]
62--- Encode and decode files in uuencode format.
63
64\item[binascii]
65--- Tools for converting between binary and various ascii-encoded binary
66representation
67
68\item[xdrlib]
Fred Drakec5891241998-02-09 19:16:20 +000069--- The External Data Representation Standard as described in \rfc{1014},
Fred Drake4b3f0311996-12-13 22:04:31 +000070written by Sun Microsystems, Inc. June 1987.
71
Guido van Rossum20af95b1997-03-25 22:01:35 +000072\item[mailcap]
Fred Drakec5891241998-02-09 19:16:20 +000073--- Mailcap file handling. See \rfc{1524}.
Guido van Rossum20af95b1997-03-25 22:01:35 +000074
Guido van Rossume76b7a81997-04-27 21:25:52 +000075\item[base64]
76--- Encode/decode binary files using the MIME base64 encoding.
77
78\item[quopri]
79--- Encode/decode binary files using the MIME quoted-printable encoding.
80
Guido van Rossumb40f2a71997-06-02 17:34:40 +000081\item[SocketServer]
82--- A framework for network servers.
83
84\item[mailbox]
85--- Read various mailbox formats.
86
Guido van Rossumfd16ca41997-07-30 22:05:07 +000087\item[mimify]
88--- Mimification and unmimification of mail messages.
89
Guido van Rossum1f359771997-12-30 23:42:27 +000090\item[BaseHTTPServer]
91--- Basic HTTP server (base class for SimpleHTTPServer and CGIHTTPServer).
92
Guido van Rossuma8db1df1995-02-16 16:29:46 +000093\end{description}