Protocolos y soporte de Internet¶
Los módulos descritos en este capítulo implementan protocolos de Internet y son compatibles con la tecnología relacionada. Todos están implementados en Python. La mayoría de estos módulos requieren la presencia del módulo dependiente del sistema socket, que actualmente es compatible con las plataformas más populares. Aquí hay una descripción general:
webbrowser— Convenient web-browser controllerwsgiref— WSGI Utilities and Reference Implementationwsgiref.util– Utilidades de entorno WSGIwsgiref.headers– Herramientas para cabeceras de respuesta WSGIwsgiref.simple_server– Un servidor HTTP WSGI simplewsgiref.validate— Verificador de compatibilidad WSGIwsgiref.handlers– Clases base servidor/gatewaywsgiref.types— Tipos de WSGI para validadores estáticos de tipos- Ejemplos
urllib— URL handling modulesurllib.request— Extensible library for opening URLs- Objetos Request
- Objetos OpenerDirector
- Objetos BaseHandler
- Objetos HTTPRedirectHandler
- Objetos HTTPCookieProcessor
- Objetos ProxyHandler
- Objetos HTTPPasswordMgr
- Objetos HTTPPasswordMgrWithPriorAuth
- Objetos AbstractBasicAuthHandler
- Objetos HTTPBasicAuthHandler
- Objetos ProxyBasicAuthHandler
- Objetos AbstractDigestAuthHandler
- Objetos HTTPDigestAuthHandler
- Objetos ProxyDigestAuthHandler
- Objetos HTTPHandler
- Objetos HTTPSHandler
- Objetos FileHandler
- Objetos DataHandler
- Objetos FTPHandler
- Objetos CacheFTPHandler
- Objetos UnknownHandler
- Objetos HTTPErrorProcessor
- Ejemplos
- Interfaz heredada
- Restricciones
urllib.request
urllib.response— Clases de respuesta usadas por urlliburllib.parse— Parse URLs into componentsurllib.error— Exception classes raised by urllib.requesturllib.robotparser— Parser for robots.txthttp— HTTP moduleshttp.client— HTTP protocol clientftplib— FTP protocol clientpoplib— POP3 protocol clientimaplib— IMAP4 protocol clientsmtplib— SMTP protocol clientuuid— UUID objects according to RFC 9562socketserver— A framework for network servershttp.server— HTTP servershttp.cookies— HTTP state managementhttp.cookiejar— Cookie handling for HTTP clientsxmlrpc— Módulos XMLRPC para cliente y servidorxmlrpc.client— XML-RPC client accessxmlrpc.server— Basic XML-RPC serversipaddress— IPv4/IPv6 manipulation library