Internet Protocols and SupportInternet协议和支持¶
The modules described in this chapter implement internet protocols and support for related technology. 本章描述的模块实现了internet协议和对相关技术的支持。They are all implemented in Python. 它们都是用Python实现的。Most of these modules require the presence of the system-dependent module 这些模块中的大多数都需要存在依赖于系统的模块socket
, which is currently supported on most popular platforms. socket
,目前大多数流行平台都支持该socket
。Here is an overview:以下是概述:
webbrowser
—Convenient web-browser controller方便的web浏览器控制器wsgiref
—WSGI Utilities and Reference ImplementationWSGI实用程序和参考实现urllib
—URL handling modulesURL处理模块urllib.request
—Extensible library for opening URLs用于打开URL的可扩展库Request ObjectsRequest
对象OpenerDirector
Objects对象BaseHandler
Objects对象HTTPRedirectHandler
Objects对象HTTPCookieProcessor
Objects对象ProxyHandler
Objects对象HTTPPasswordMgr
Objects对象HTTPPasswordMgrWithPriorAuth
Objects对象AbstractBasicAuthHandler
Objects对象HTTPBasicAuthHandler
Objects对象ProxyBasicAuthHandler
Objects对象AbstractDigestAuthHandler
Objects对象HTTPDigestAuthHandler
Objects对象ProxyDigestAuthHandler
Objects对象HTTPHandler
Objects对象HTTPSHandler
Objects对象FileHandler
Objects对象DataHandler
Objects对象FTPHandler
Objects对象CacheFTPHandler
Objects对象UnknownHandler
Objects对象HTTPErrorProcessor
Objects对象Examples示例Legacy interface旧版接口urllib.request
Restrictions限制
urllib.response
—Response classes used by urlliburllib
使用的响应类urllib.parse
—Parse URLs into components将URL解析为组件urllib.error
—Exception classes raised by urllib.requesturllib.request
引发的异常类urllib.robotparser
—Parser for robots.txtrobots.txt解析器http
—HTTP modulesHTTP模块http.client
—HTTP protocol clientHTTP协议客户端ftplib
—FTP protocol clientFTP协议客户端poplib
—POP3 protocol clientPOP3协议客户端imaplib
—IMAP4 protocol clientIMAP4协议客户端smtplib
—SMTP protocol clientSMTP协议客户端uuid
—UUID objects according to RFC 4122符合RFC 4122的UUID对象socketserver
—A framework for network servers网络服务器框架http.server
—HTTP serversHTTP服务器http.cookies
—HTTP state managementHTTP状态管理http.cookiejar
—Cookie handling for HTTP clientsHTTP客户端的Cookie处理xmlrpc
—XMLRPC server and client modulesXMLRPC服务器和客户端模块xmlrpc.client
—XML-RPC client accessXML-RPC客户端访问xmlrpc.server
—Basic XML-RPC servers基本XML-RPC服务器ipaddress
—IPv4/IPv6 manipulation libraryIPv4/IPv6操作库