The modules described in this chapter implement Internet protocols and support
for related technology. They are all implemented in Python. Most of these
modules require the presence of the system-dependent module socket
, which
is currently supported on most popular platforms. Here is an overview:
webbrowser
--- Convenient Web-browser controllercgi
--- Common Gateway Interface supportcgitb
--- Traceback manager for CGI scriptswsgiref
--- WSGI Utilities and Reference Implementationurllib
--- Open arbitrary resources by URLurllib2
--- extensible library for opening URLs- Request Objects
- OpenerDirector Objects
- BaseHandler Objects
- HTTPRedirectHandler Objects
- HTTPCookieProcessor Objects
- ProxyHandler Objects
- HTTPPasswordMgr Objects
- AbstractBasicAuthHandler Objects
- HTTPBasicAuthHandler Objects
- ProxyBasicAuthHandler Objects
- AbstractDigestAuthHandler Objects
- HTTPDigestAuthHandler Objects
- ProxyDigestAuthHandler Objects
- HTTPHandler Objects
- HTTPSHandler Objects
- FileHandler Objects
- FTPHandler Objects
- CacheFTPHandler Objects
- UnknownHandler Objects
- HTTPErrorProcessor Objects
- Examples
httplib
--- HTTP protocol clientftplib
--- FTP protocol clientpoplib
--- POP3 protocol clientimaplib
--- IMAP4 protocol clientnntplib
--- NNTP protocol clientsmtplib
--- SMTP protocol clientsmtpd
--- SMTP Servertelnetlib
--- Telnet clientuuid
--- UUID objects according to RFC 4122urlparse
--- Parse URLs into componentsSocketServer
--- A framework for network serversBaseHTTPServer
--- Basic HTTP serverSimpleHTTPServer
--- Simple HTTP request handlerCGIHTTPServer
--- CGI-capable HTTP request handlercookielib
--- Cookie handling for HTTP clientsCookie
--- HTTP state managementxmlrpclib
--- XML-RPC client accessSimpleXMLRPCServer
--- Basic XML-RPC server- SimpleXMLRPCServer Objects
- CGIXMLRPCRequestHandler
DocXMLRPCServer
--- Self-documenting XML-RPC server