Internet Protocols and Support
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 controller -
cgi
— Common Gateway Interface support cgitb
— Traceback manager for CGI scripts-
wsgiref
— WSGI Utilities and Reference Implementation urllib
— URL handling modules-
urllib.request
— Extensible library for opening URLs- Request Objects
- 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 urllib-
urllib.parse
— Parse URLs into components urllib.error
— Exception classes raised by urllib.requesturllib.robotparser
— Parser for robots.txt-
http
— HTTP modules -
http.client
— HTTP protocol client -
ftplib
— FTP protocol client -
poplib
— POP3 protocol client -
imaplib
— IMAP4 protocol client -
nntplib
— NNTP protocol client -
smtplib
— SMTP protocol client -
smtpd
— SMTP Server -
telnetlib
— Telnet client -
uuid
— UUID objects according to RFC 4122 -
socketserver
— A framework for network servers http.server
— HTTP servers-
http.cookies
— HTTP state management -
http.cookiejar
— Cookie handling for HTTP clients xmlrpc
— XMLRPC server and client modules-
xmlrpc.client
— XML-RPC client access -
xmlrpc.server
— Basic XML-RPC servers -
ipaddress
— IPv4/IPv6 manipulation library
© 2001–2021 Python Software Foundation
Licensed under the PSF License.
https://docs.python.org/3.10/library/internet.html