blob: 5e698e42e905e5d94e9a317d0b86f08786959786 [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
42\item[urlparse]
43--- Parse a URL string into a tuple (addressing scheme identifier, network
44location, path, parameters, query string, fragment identifier).
45
Guido van Rossuma8db1df1995-02-16 16:29:46 +000046\item[sgmllib]
47--- Only as much of an SGML parser as needed to parse HTML.
48
Fred Drakee1980ed1996-10-09 14:36:54 +000049\item[htmllib]
Guido van Rossum2974f0f1997-11-18 15:30:40 +000050--- A parser for HTML documents.
51
52\item[xmllib]
53--- A parser for XML documents.
Fred Drakee1980ed1996-10-09 14:36:54 +000054
Fred Drake08d301e1996-10-08 21:54:06 +000055\item[formatter]
56--- Generic output formatter and device interface.
57
Guido van Rossuma8db1df1995-02-16 16:29:46 +000058\item[rfc822]
Fred Drakec5891241998-02-09 19:16:20 +000059--- Parse \rfc{822} style mail headers.
Guido van Rossuma8db1df1995-02-16 16:29:46 +000060
61\item[mimetools]
62--- Tools for parsing MIME style message bodies.
63
Fred Drake4b3f0311996-12-13 22:04:31 +000064\item[binhex]
65--- Encode and decode files in binhex4 format.
66
67\item[uu]
68--- Encode and decode files in uuencode format.
69
70\item[binascii]
71--- Tools for converting between binary and various ascii-encoded binary
72representation
73
74\item[xdrlib]
Fred Drakec5891241998-02-09 19:16:20 +000075--- The External Data Representation Standard as described in \rfc{1014},
Fred Drake4b3f0311996-12-13 22:04:31 +000076written by Sun Microsystems, Inc. June 1987.
77
Guido van Rossum20af95b1997-03-25 22:01:35 +000078\item[mailcap]
Fred Drakec5891241998-02-09 19:16:20 +000079--- Mailcap file handling. See \rfc{1524}.
Guido van Rossum20af95b1997-03-25 22:01:35 +000080
Guido van Rossume76b7a81997-04-27 21:25:52 +000081\item[base64]
82--- Encode/decode binary files using the MIME base64 encoding.
83
84\item[quopri]
85--- Encode/decode binary files using the MIME quoted-printable encoding.
86
Guido van Rossumb40f2a71997-06-02 17:34:40 +000087\item[SocketServer]
88--- A framework for network servers.
89
90\item[mailbox]
91--- Read various mailbox formats.
92
Guido van Rossumfd16ca41997-07-30 22:05:07 +000093\item[mimify]
94--- Mimification and unmimification of mail messages.
95
Guido van Rossum1f359771997-12-30 23:42:27 +000096\item[BaseHTTPServer]
97--- Basic HTTP server (base class for SimpleHTTPServer and CGIHTTPServer).
98
Guido van Rossuma8db1df1995-02-16 16:29:46 +000099\end{description}