Документация Python неофициальный перевод

internet.md

144 строк · 13.5 КБ · обычная страница · сырой текст · скачать

1> **Источник:** https://python-all.ru/3.0/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.0/library/socket.html#module-socket), который в настоящее время поддерживается на большинстве популярных платформ. Здесь представлен обзор:1011- [`webbrowser` – Удобный контроллер веб-браузера](https://python-all.ru/3.0/library/webbrowser.html)1213  - [Объекты управления браузером](https://python-all.ru/3.0/library/webbrowser.html#browser-controller-objects)14- [`cgi` – Поддержка Common Gateway Interface.](https://python-all.ru/3.0/library/cgi.html)1516  - [Введение](https://python-all.ru/3.0/library/cgi.html#introduction)17  - [Использование модуля cgi](https://python-all.ru/3.0/library/cgi.html#id1)18  - [Интерфейс высокого уровня](https://python-all.ru/3.0/library/cgi.html#higher-level-interface)19  - [Функции](https://python-all.ru/3.0/library/cgi.html#functions)20  - [Вопросы безопасности](https://python-all.ru/3.0/library/cgi.html#caring-about-security)21  - [Установка CGI-скрипта в системе Unix](https://python-all.ru/3.0/library/cgi.html#installing-your-cgi-script-on-a-unix-system)22  - [Тестирование CGI-скрипта](https://python-all.ru/3.0/library/cgi.html#testing-your-cgi-script)23  - [Отладка CGI-скриптов](https://python-all.ru/3.0/library/cgi.html#debugging-cgi-scripts)24  - [Типичные проблемы и решения](https://python-all.ru/3.0/library/cgi.html#common-problems-and-solutions)25- [`cgitb` – Менеджер трассировки для CGI-скриптов](https://python-all.ru/3.0/library/cgitb.html)26- [`wsgiref` – Утилиты WSGI и эталонная реализация](https://python-all.ru/3.0/library/wsgiref.html)2728  - [`wsgiref.util` – Утилиты окружения WSGI](https://python-all.ru/3.0/library/wsgiref.html#module-wsgiref.util)29  - [`wsgiref.headers` – Инструменты для заголовков ответов WSGI](https://python-all.ru/3.0/library/wsgiref.html#module-wsgiref.headers)30  - [`wsgiref.simple_server` – Простой WSGI HTTP-сервер](https://python-all.ru/3.0/library/wsgiref.html#module-wsgiref.simple_server)31  - [`wsgiref.validate` – Проверка соответствия WSGI](https://python-all.ru/3.0/library/wsgiref.html#module-wsgiref.validate)32  - [`wsgiref.handlers` – Базовые классы сервера/шлюза](https://python-all.ru/3.0/library/wsgiref.html#module-wsgiref.handlers)33  - [Примеры](https://python-all.ru/3.0/library/wsgiref.html#examples)34- [`urllib.request` – Расширяемая библиотека для открытия URL](https://python-all.ru/3.0/library/urllib.request.html)3536  - [Объекты Request](https://python-all.ru/3.0/library/urllib.request.html#id1)37  - [Объекты OpenerDirector](https://python-all.ru/3.0/library/urllib.request.html#openerdirector-objects)38  - [Объекты BaseHandler](https://python-all.ru/3.0/library/urllib.request.html#basehandler-objects)39  - [Объекты HTTPRedirectHandler](https://python-all.ru/3.0/library/urllib.request.html#httpredirecthandler-objects)40  - [Объекты HTTPCookieProcessor](https://python-all.ru/3.0/library/urllib.request.html#httpcookieprocessor-objects)41  - [Объекты ProxyHandler](https://python-all.ru/3.0/library/urllib.request.html#proxyhandler-objects)42  - [Объекты HTTPPasswordMgr](https://python-all.ru/3.0/library/urllib.request.html#httppasswordmgr-objects)43  - [Объекты AbstractBasicAuthHandler](https://python-all.ru/3.0/library/urllib.request.html#abstractbasicauthhandler-objects)44  - [Объекты HTTPBasicAuthHandler](https://python-all.ru/3.0/library/urllib.request.html#httpbasicauthhandler-objects)45  - [Объекты ProxyBasicAuthHandler](https://python-all.ru/3.0/library/urllib.request.html#proxybasicauthhandler-objects)46  - [Объекты AbstractDigestAuthHandler](https://python-all.ru/3.0/library/urllib.request.html#abstractdigestauthhandler-objects)47  - [Объекты HTTPDigestAuthHandler](https://python-all.ru/3.0/library/urllib.request.html#httpdigestauthhandler-objects)48  - [Объекты ProxyDigestAuthHandler](https://python-all.ru/3.0/library/urllib.request.html#proxydigestauthhandler-objects)49  - [Объекты HTTPHandler](https://python-all.ru/3.0/library/urllib.request.html#httphandler-objects)50  - [Объекты HTTPSHandler](https://python-all.ru/3.0/library/urllib.request.html#httpshandler-objects)51  - [Объекты FileHandler](https://python-all.ru/3.0/library/urllib.request.html#filehandler-objects)52  - [Объекты FTPHandler](https://python-all.ru/3.0/library/urllib.request.html#ftphandler-objects)53  - [Объекты CacheFTPHandler](https://python-all.ru/3.0/library/urllib.request.html#cacheftphandler-objects)54  - [Объекты UnknownHandler](https://python-all.ru/3.0/library/urllib.request.html#unknownhandler-objects)55  - [Объекты HTTPErrorProcessor](https://python-all.ru/3.0/library/urllib.request.html#httperrorprocessor-objects)56  - [Примеры](https://python-all.ru/3.0/library/urllib.request.html#examples)57  - [`urllib.request` Ограничения](https://python-all.ru/3.0/library/urllib.request.html#urllib-request-restrictions)58- [`urllib.response` – Классы ответов, используемые urllib.](https://python-all.ru/3.0/library/urllib.request.html#module-urllib.response)59- [`urllib.parse` – Разбор URL на составные части](https://python-all.ru/3.0/library/urllib.parse.html)6061  - [Результаты `urlparse()` и `urlsplit()`](https://python-all.ru/3.0/library/urllib.parse.html#results-of-urlparse-and-urlsplit)62- [`urllib.error` – Классы исключений, вызываемые urllib.request](https://python-all.ru/3.0/library/urllib.error.html)63- [`urllib.robotparser` – Парсер для robots.txt](https://python-all.ru/3.0/library/urllib.robotparser.html)64- [`http.client` – Клиент протокола HTTP](https://python-all.ru/3.0/library/http.client.html)6566  - [Объекты HTTPConnection](https://python-all.ru/3.0/library/http.client.html#id1)67  - [Объекты HTTPResponse](https://python-all.ru/3.0/library/http.client.html#id2)68  - [Примеры](https://python-all.ru/3.0/library/http.client.html#examples)69- [`ftplib` – Клиент протокола FTP](https://python-all.ru/3.0/library/ftplib.html)7071  - [Объекты FTP](https://python-all.ru/3.0/library/ftplib.html#id1)72- [`poplib` – Клиент протокола POP3](https://python-all.ru/3.0/library/poplib.html)7374  - [Объекты POP3](https://python-all.ru/3.0/library/poplib.html#id1)75  - [Пример POP3](https://python-all.ru/3.0/library/poplib.html#id2)76- [`imaplib` – Клиент протокола IMAP4](https://python-all.ru/3.0/library/imaplib.html)7778  - [Объекты IMAP4](https://python-all.ru/3.0/library/imaplib.html#id1)79  - [Пример IMAP4](https://python-all.ru/3.0/library/imaplib.html#id2)80- [`nntplib` – Клиент протокола NNTP](https://python-all.ru/3.0/library/nntplib.html)8182  - [Объекты NNTP](https://python-all.ru/3.0/library/nntplib.html#id1)83- [`smtplib` – Клиент протокола SMTP](https://python-all.ru/3.0/library/smtplib.html)8485  - [Объекты SMTP](https://python-all.ru/3.0/library/smtplib.html#id1)86  - [Пример SMTP](https://python-all.ru/3.0/library/smtplib.html#id2)87- [`smtpd` – SMTP-сервер](https://python-all.ru/3.0/library/smtpd.html)8889  - [Объекты SMTPServer](https://python-all.ru/3.0/library/smtpd.html#smtpserver-objects)90  - [Объекты DebuggingServer](https://python-all.ru/3.0/library/smtpd.html#debuggingserver-objects)91  - [Объекты PureProxy](https://python-all.ru/3.0/library/smtpd.html#pureproxy-objects)92  - [Объекты MailmanProxy](https://python-all.ru/3.0/library/smtpd.html#mailmanproxy-objects)93- [`telnetlib` – Telnet-клиент](https://python-all.ru/3.0/library/telnetlib.html)9495  - [Объекты Telnet](https://python-all.ru/3.0/library/telnetlib.html#id1)96  - [Пример Telnet](https://python-all.ru/3.0/library/telnetlib.html#id2)97- [`uuid` – объекты UUID в соответствии с RFC 4122](https://python-all.ru/3.0/library/uuid.html)9899  - [Пример](https://python-all.ru/3.0/library/uuid.html#example)100- [`socketserver` – фреймворк для сетевых серверов](https://python-all.ru/3.0/library/socketserver.html)101102  - [Замечания по созданию сервера](https://python-all.ru/3.0/library/socketserver.html#server-creation-notes)103  - [Объекты сервера](https://python-all.ru/3.0/library/socketserver.html#server-objects)104  - [Объекты RequestHandler](https://python-all.ru/3.0/library/socketserver.html#requesthandler-objects)105  - [Примеры](https://python-all.ru/3.0/library/socketserver.html#examples)106107    - [`socketserver.TCPServer` Пример](https://python-all.ru/3.0/library/socketserver.html#socketserver-tcpserver-example)108    - [`socketserver.UDPServer` Пример](https://python-all.ru/3.0/library/socketserver.html#socketserver-udpserver-example)109    - [Асинхронные примеси](https://python-all.ru/3.0/library/socketserver.html#asynchronous-mixins)110- [`http.server` – HTTP-серверы](https://python-all.ru/3.0/library/http.server.html)111- [`http.cookies` – управление состоянием HTTP](https://python-all.ru/3.0/library/http.cookies.html)112113  - [Объекты Cookie](https://python-all.ru/3.0/library/http.cookies.html#id1)114  - [Объекты Morsel](https://python-all.ru/3.0/library/http.cookies.html#id2)115  - [Пример](https://python-all.ru/3.0/library/http.cookies.html#example)116- [`http.cookiejar` – обработка куки для HTTP-клиентов](https://python-all.ru/3.0/library/http.cookiejar.html)117118  - [Объекты CookieJar и FileCookieJar](https://python-all.ru/3.0/library/http.cookiejar.html#cookiejar-and-filecookiejar-objects)119  - [Подклассы FileCookieJar и взаимодействие с веб-браузерами](https://python-all.ru/3.0/library/http.cookiejar.html#filecookiejar-subclasses-and-co-operation-with-web-browsers)120  - [Объекты CookiePolicy](https://python-all.ru/3.0/library/http.cookiejar.html#cookiepolicy-objects)121  - [Объекты DefaultCookiePolicy](https://python-all.ru/3.0/library/http.cookiejar.html#defaultcookiepolicy-objects)122  - [Объекты Cookie](https://python-all.ru/3.0/library/http.cookiejar.html#cookie-objects)123  - [Примеры](https://python-all.ru/3.0/library/http.cookiejar.html#examples)124- [`xmlrpc.client` – доступ к XML-RPC-клиенту](https://python-all.ru/3.0/library/xmlrpc.client.html)125126  - [Объекты ServerProxy](https://python-all.ru/3.0/library/xmlrpc.client.html#id1)127  - [Объекты datetime](https://python-all.ru/3.0/library/xmlrpc.client.html#id2)128  - [Объекты Binary](https://python-all.ru/3.0/library/xmlrpc.client.html#id3)129  - [Объекты Fault](https://python-all.ru/3.0/library/xmlrpc.client.html#id4)130  - [Объекты ProtocolError](https://python-all.ru/3.0/library/xmlrpc.client.html#protocolerror-objects)131  - [Объекты MultiCall](https://python-all.ru/3.0/library/xmlrpc.client.html#multicall-objects)132  - [Удобные функции](https://python-all.ru/3.0/library/xmlrpc.client.html#convenience-functions)133  - [Пример использования клиента](https://python-all.ru/3.0/library/xmlrpc.client.html#example-of-client-usage)134  - [Пример использования клиента и сервера](https://python-all.ru/3.0/library/xmlrpc.client.html#example-of-client-and-server-usage)135- [`xmlrpc.server` – базовые XML-RPC-серверы](https://python-all.ru/3.0/library/xmlrpc.server.html)136137  - [Объекты SimpleXMLRPCServer](https://python-all.ru/3.0/library/xmlrpc.server.html#simplexmlrpcserver-objects)138139    - [Пример SimpleXMLRPCServer](https://python-all.ru/3.0/library/xmlrpc.server.html#id1)140  - [CGIXMLRPCRequestHandler](https://python-all.ru/3.0/library/xmlrpc.server.html#cgixmlrpcrequesthandler)141  - [Документирование сервера XML-RPC](https://python-all.ru/3.0/library/xmlrpc.server.html#documenting-xmlrpc-server)142  - [Объекты DocXMLRPCServer](https://python-all.ru/3.0/library/xmlrpc.server.html#docxmlrpcserver-objects)143  - [DocCGIXMLRPCRequestHandler](https://python-all.ru/3.0/library/xmlrpc.server.html#doccgixmlrpcrequesthandler)144