internet.md
1> **Источник:** https://python-all.ru/3.15/library/internet.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Интернет-протоколы и поддержка89Модули, описанные в этой главе, реализуют интернет-протоколы и поддержку сопутствующих технологий. Все они реализованы на Python. Большинству из этих модулей требуется системно-зависимый модуль [`socket`](https://python-all.ru/3.15/library/socket.html#module-socket), который в настоящее время поддерживается на большинстве популярных платформ. Вот краткий обзор:1011- [`webbrowser` – Удобный контроллер веб-браузера](https://python-all.ru/3.15/library/webbrowser.html)1213 - [Интерфейс командной строки](https://python-all.ru/3.15/library/webbrowser.html#command-line-interface)14 - [Объекты контроллера браузера](https://python-all.ru/3.15/library/webbrowser.html#browser-controller-objects)15- [`wsgiref` – Утилиты WSGI и эталонная реализация](https://python-all.ru/3.15/library/wsgiref.html)1617 - [`wsgiref.util` – Утилиты окружения WSGI](https://python-all.ru/3.15/library/wsgiref.html#module-wsgiref.util)18 - [`wsgiref.headers` – Инструменты для заголовков ответов WSGI](https://python-all.ru/3.15/library/wsgiref.html#module-wsgiref.headers)19 - [`wsgiref.simple_server` – Простой HTTP-сервер WSGI](https://python-all.ru/3.15/library/wsgiref.html#module-wsgiref.simple_server)20 - [`wsgiref.validate` – Проверка соответствия WSGI](https://python-all.ru/3.15/library/wsgiref.html#module-wsgiref.validate)21 - [`wsgiref.handlers` – Базовые классы сервера/шлюза](https://python-all.ru/3.15/library/wsgiref.html#module-wsgiref.handlers)22 - [`wsgiref.types` – Типы WSGI для статической проверки типов](https://python-all.ru/3.15/library/wsgiref.html#module-wsgiref.types)23 - [Примеры](https://python-all.ru/3.15/library/wsgiref.html#examples)24- [`urllib` – Модули обработки URL](https://python-all.ru/3.15/library/urllib.html)25- [`urllib.request` – Расширяемая библиотека для открытия URL](https://python-all.ru/3.15/library/urllib.request.html)2627 - [Объекты Request](https://python-all.ru/3.15/library/urllib.request.html#request-objects)28 - [Объекты OpenerDirector](https://python-all.ru/3.15/library/urllib.request.html#openerdirector-objects)29 - [Объекты BaseHandler](https://python-all.ru/3.15/library/urllib.request.html#basehandler-objects)30 - [Объекты HTTPRedirectHandler](https://python-all.ru/3.15/library/urllib.request.html#httpredirecthandler-objects)31 - [Объекты HTTPCookieProcessor](https://python-all.ru/3.15/library/urllib.request.html#httpcookieprocessor-objects)32 - [Объекты ProxyHandler](https://python-all.ru/3.15/library/urllib.request.html#proxyhandler-objects)33 - [Объекты HTTPPasswordMgr](https://python-all.ru/3.15/library/urllib.request.html#httppasswordmgr-objects)34 - [Объекты HTTPPasswordMgrWithPriorAuth](https://python-all.ru/3.15/library/urllib.request.html#httppasswordmgrwithpriorauth-objects)35 - [Объекты AbstractBasicAuthHandler](https://python-all.ru/3.15/library/urllib.request.html#abstractbasicauthhandler-objects)36 - [Объекты HTTPBasicAuthHandler](https://python-all.ru/3.15/library/urllib.request.html#httpbasicauthhandler-objects)37 - [Объекты ProxyBasicAuthHandler](https://python-all.ru/3.15/library/urllib.request.html#proxybasicauthhandler-objects)38 - [Объекты AbstractDigestAuthHandler](https://python-all.ru/3.15/library/urllib.request.html#abstractdigestauthhandler-objects)39 - [Объекты HTTPDigestAuthHandler](https://python-all.ru/3.15/library/urllib.request.html#httpdigestauthhandler-objects)40 - [Объекты ProxyDigestAuthHandler](https://python-all.ru/3.15/library/urllib.request.html#proxydigestauthhandler-objects)41 - [Объекты HTTPHandler](https://python-all.ru/3.15/library/urllib.request.html#httphandler-objects)42 - [Объекты HTTPSHandler](https://python-all.ru/3.15/library/urllib.request.html#httpshandler-objects)43 - [Объекты FileHandler](https://python-all.ru/3.15/library/urllib.request.html#filehandler-objects)44 - [Объекты DataHandler](https://python-all.ru/3.15/library/urllib.request.html#datahandler-objects)45 - [Объекты FTPHandler](https://python-all.ru/3.15/library/urllib.request.html#ftphandler-objects)46 - [Объекты CacheFTPHandler](https://python-all.ru/3.15/library/urllib.request.html#cacheftphandler-objects)47 - [Объекты UnknownHandler](https://python-all.ru/3.15/library/urllib.request.html#unknownhandler-objects)48 - [Объекты HTTPErrorProcessor](https://python-all.ru/3.15/library/urllib.request.html#httperrorprocessor-objects)49 - [Примеры](https://python-all.ru/3.15/library/urllib.request.html#examples)50 - [Устаревший интерфейс](https://python-all.ru/3.15/library/urllib.request.html#legacy-interface)51 - [`urllib.request` Ограничения](https://python-all.ru/3.15/library/urllib.request.html#urllib-request-restrictions)52- [`urllib.response` – Классы ответов, используемые urllib](https://python-all.ru/3.15/library/urllib.request.html#module-urllib.response)53- [`urllib.parse` – Разбор URL на компоненты](https://python-all.ru/3.15/library/urllib.parse.html)5455 - [Разбор URL](https://python-all.ru/3.15/library/urllib.parse.html#url-parsing)56 - [Безопасность разбора URL](https://python-all.ru/3.15/library/urllib.parse.html#url-parsing-security)57 - [Разбор ASCII-закодированных байтов](https://python-all.ru/3.15/library/urllib.parse.html#parsing-ascii-encoded-bytes)58 - [Структурированные результаты разбора](https://python-all.ru/3.15/library/urllib.parse.html#structured-parse-results)59 - [Экранирование URL](https://python-all.ru/3.15/library/urllib.parse.html#url-quoting)60- [`urllib.error` – Классы исключений, вызываемые urllib.request](https://python-all.ru/3.15/library/urllib.error.html)61- [`urllib.robotparser` – Парсер для robots.txt](https://python-all.ru/3.15/library/urllib.robotparser.html)62- [`http` – Модули HTTP](https://python-all.ru/3.15/library/http.html)6364 - [Коды состояния HTTP](https://python-all.ru/3.15/library/http.html#http-status-codes)65 - [Категория состояния HTTP](https://python-all.ru/3.15/library/http.html#http-status-category)66 - [Методы HTTP](https://python-all.ru/3.15/library/http.html#http-methods)67- [`http.client` – Клиент протокола HTTP](https://python-all.ru/3.15/library/http.client.html)6869 - [Объекты HTTPConnection](https://python-all.ru/3.15/library/http.client.html#httpconnection-objects)70 - [Объекты HTTPResponse](https://python-all.ru/3.15/library/http.client.html#httpresponse-objects)71 - [Примеры](https://python-all.ru/3.15/library/http.client.html#examples)72 - [Объекты HTTPMessage](https://python-all.ru/3.15/library/http.client.html#httpmessage-objects)73- [`ftplib` – клиент протокола FTP](https://python-all.ru/3.15/library/ftplib.html)7475 - [Справочник](https://python-all.ru/3.15/library/ftplib.html#reference)7677 - [Объекты FTP](https://python-all.ru/3.15/library/ftplib.html#ftp-objects)78 - [Объекты FTP\_TLS](https://python-all.ru/3.15/library/ftplib.html#ftp-tls-objects)79 - [Переменные модуля](https://python-all.ru/3.15/library/ftplib.html#module-variables)80- [`poplib` – клиент протокола POP3](https://python-all.ru/3.15/library/poplib.html)8182 - [Объекты POP3](https://python-all.ru/3.15/library/poplib.html#pop3-objects)83 - [Пример POP3](https://python-all.ru/3.15/library/poplib.html#pop3-example)84- [`imaplib` – клиент протокола IMAP4](https://python-all.ru/3.15/library/imaplib.html)8586 - [Объекты IMAP4](https://python-all.ru/3.15/library/imaplib.html#imap4-objects)87 - [Пример IMAP4](https://python-all.ru/3.15/library/imaplib.html#imap4-example)88- [`smtplib` – клиент протокола SMTP](https://python-all.ru/3.15/library/smtplib.html)8990 - [Объекты SMTP](https://python-all.ru/3.15/library/smtplib.html#smtp-objects)91 - [Пример SMTP](https://python-all.ru/3.15/library/smtplib.html#smtp-example)92- [`uuid` – объекты UUID в соответствии с **RFC 9562**](https://python-all.ru/3.15/library/uuid.html)9394 - [Использование командной строки](https://python-all.ru/3.15/library/uuid.html#command-line-usage)95 - [Пример](https://python-all.ru/3.15/library/uuid.html#example)96 - [Пример командной строки](https://python-all.ru/3.15/library/uuid.html#command-line-example)97- [`socketserver` – фреймворк для сетевых серверов](https://python-all.ru/3.15/library/socketserver.html)9899 - [Замечания по созданию сервера](https://python-all.ru/3.15/library/socketserver.html#server-creation-notes)100 - [Объекты сервера](https://python-all.ru/3.15/library/socketserver.html#server-objects)101 - [Объекты обработчиков запросов](https://python-all.ru/3.15/library/socketserver.html#request-handler-objects)102 - [Примеры](https://python-all.ru/3.15/library/socketserver.html#examples)103104 - [`socketserver.TCPServer` Пример](https://python-all.ru/3.15/library/socketserver.html#socketserver-tcpserver-example)105 - [`socketserver.UDPServer` Пример](https://python-all.ru/3.15/library/socketserver.html#socketserver-udpserver-example)106 - [Асинхронные примеси](https://python-all.ru/3.15/library/socketserver.html#asynchronous-mixins)107- [`http.server` – HTTP-серверы](https://python-all.ru/3.15/library/http.server.html)108109 - [Интерфейс командной строки](https://python-all.ru/3.15/library/http.server.html#command-line-interface)110 - [Вопросы безопасности](https://python-all.ru/3.15/library/http.server.html#security-considerations)111- [`http.cookies` – управление состоянием HTTP](https://python-all.ru/3.15/library/http.cookies.html)112113 - [Объекты Cookie](https://python-all.ru/3.15/library/http.cookies.html#cookie-objects)114 - [Объекты Morsel](https://python-all.ru/3.15/library/http.cookies.html#morsel-objects)115 - [Пример](https://python-all.ru/3.15/library/http.cookies.html#example)116- [`http.cookiejar` – Обработка cookie для HTTP-клиентов](https://python-all.ru/3.15/library/http.cookiejar.html)117118 - [Объекты CookieJar и FileCookieJar](https://python-all.ru/3.15/library/http.cookiejar.html#cookiejar-and-filecookiejar-objects)119 - [Подклассы FileCookieJar и взаимодействие с веб-браузерами](https://python-all.ru/3.15/library/http.cookiejar.html#filecookiejar-subclasses-and-co-operation-with-web-browsers)120 - [Объекты CookiePolicy](https://python-all.ru/3.15/library/http.cookiejar.html#cookiepolicy-objects)121 - [Объекты DefaultCookiePolicy](https://python-all.ru/3.15/library/http.cookiejar.html#defaultcookiepolicy-objects)122 - [Объекты Cookie](https://python-all.ru/3.15/library/http.cookiejar.html#cookie-objects)123 - [Примеры](https://python-all.ru/3.15/library/http.cookiejar.html#examples)124- [`xmlrpc` – Модули сервера и клиента XML-RPC](https://python-all.ru/3.15/library/xmlrpc.html)125- [`xmlrpc.client` – Доступ клиента XML-RPC](https://python-all.ru/3.15/library/xmlrpc.client.html)126127 - [Объекты ServerProxy](https://python-all.ru/3.15/library/xmlrpc.client.html#serverproxy-objects)128 - [Объекты datetime](https://python-all.ru/3.15/library/xmlrpc.client.html#datetime-objects)129 - [Объекты Binary](https://python-all.ru/3.15/library/xmlrpc.client.html#binary-objects)130 - [Объекты Fault](https://python-all.ru/3.15/library/xmlrpc.client.html#fault-objects)131 - [Объекты ProtocolError](https://python-all.ru/3.15/library/xmlrpc.client.html#protocolerror-objects)132 - [Объекты MultiCall](https://python-all.ru/3.15/library/xmlrpc.client.html#multicall-objects)133 - [Удобные функции](https://python-all.ru/3.15/library/xmlrpc.client.html#convenience-functions)134 - [Пример использования клиента](https://python-all.ru/3.15/library/xmlrpc.client.html#example-of-client-usage)135 - [Пример использования клиента и сервера](https://python-all.ru/3.15/library/xmlrpc.client.html#example-of-client-and-server-usage)136- [`xmlrpc.server` – Базовые серверы XML-RPC](https://python-all.ru/3.15/library/xmlrpc.server.html)137138 - [Объекты SimpleXMLRPCServer](https://python-all.ru/3.15/library/xmlrpc.server.html#simplexmlrpcserver-objects)139140 - [Пример SimpleXMLRPCServer](https://python-all.ru/3.15/library/xmlrpc.server.html#simplexmlrpcserver-example)141 - [CGIXMLRPCRequestHandler](https://python-all.ru/3.15/library/xmlrpc.server.html#cgixmlrpcrequesthandler)142 - [Документирование сервера XML-RPC](https://python-all.ru/3.15/library/xmlrpc.server.html#documenting-xmlrpc-server)143 - [Объекты DocXMLRPCServer](https://python-all.ru/3.15/library/xmlrpc.server.html#docxmlrpcserver-objects)144 - [DocCGIXMLRPCRequestHandler](https://python-all.ru/3.15/library/xmlrpc.server.html#doccgixmlrpcrequesthandler)145- [`ipaddress` – Библиотека для работы с IPv4/IPv6](https://python-all.ru/3.15/library/ipaddress.html)146147 - [Удобные фабричные функции](https://python-all.ru/3.15/library/ipaddress.html#convenience-factory-functions)148 - [IP-адреса](https://python-all.ru/3.15/library/ipaddress.html#ip-addresses)149150 - [Объекты адресов](https://python-all.ru/3.15/library/ipaddress.html#address-objects)151 - [Преобразование в строки и целые числа](https://python-all.ru/3.15/library/ipaddress.html#conversion-to-strings-and-integers)152 - [Операторы](https://python-all.ru/3.15/library/ipaddress.html#operators)153154 - [Операторы сравнения](https://python-all.ru/3.15/library/ipaddress.html#comparison-operators)155 - [Арифметические операторы](https://python-all.ru/3.15/library/ipaddress.html#arithmetic-operators)156 - [Определения IP-сетей](https://python-all.ru/3.15/library/ipaddress.html#ip-network-definitions)157158 - [Префикс, маска сети и маска узла](https://python-all.ru/3.15/library/ipaddress.html#prefix-net-mask-and-host-mask)159 - [Объекты сетей](https://python-all.ru/3.15/library/ipaddress.html#network-objects)160 - [Операторы](https://python-all.ru/3.15/library/ipaddress.html#id1)161162 - [Логические операторы](https://python-all.ru/3.15/library/ipaddress.html#logical-operators)163 - [Итерация](https://python-all.ru/3.15/library/ipaddress.html#iteration)164 - [Сети как контейнеры адресов](https://python-all.ru/3.15/library/ipaddress.html#networks-as-containers-of-addresses)165 - [Объекты интерфейсов](https://python-all.ru/3.15/library/ipaddress.html#interface-objects)166167 - [Операторы](https://python-all.ru/3.15/library/ipaddress.html#id2)168169 - [Логические операторы](https://python-all.ru/3.15/library/ipaddress.html#id3)170 - [Прочие функции уровня модуля](https://python-all.ru/3.15/library/ipaddress.html#other-module-level-functions)171 - [Пользовательские исключения](https://python-all.ru/3.15/library/ipaddress.html#custom-exceptions)172