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

ipc.md

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

1> **Источник:** https://python-all.ru/3.0/library/ipc.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Межпроцессное взаимодействие и сети89Модули, описанные в этой главе, предоставляют механизмы для взаимодействия разных процессов.1011Некоторые модули работают только для двух процессов, находящихся на одной машине, например, [`signal`](https://python-all.ru/3.0/library/signal.html#module-signal) и [`subprocess`](https://python-all.ru/3.0/library/subprocess.html#module-subprocess). Другие модули поддерживают сетевые протоколы, которые могут использоваться двумя или более процессами для обмена данными между машинами.1213Список модулей, описанных в этой главе:1415- [`подпроцесс` – Управление подпроцессами](https://python-all.ru/3.0/library/subprocess.html)1617  - [Использование модуля подпроцесс](https://python-all.ru/3.0/library/subprocess.html#using-the-subprocess-module)1819    - [Удобные функции](https://python-all.ru/3.0/library/subprocess.html#convenience-functions)20    - [Исключения](https://python-all.ru/3.0/library/subprocess.html#exceptions)21    - [Безопасность](https://python-all.ru/3.0/library/subprocess.html#security)22  - [Объекты Popen](https://python-all.ru/3.0/library/subprocess.html#popen-objects)23  - [Замена старых функций модулем подпроцесс](https://python-all.ru/3.0/library/subprocess.html#replacing-older-functions-with-the-subprocess-module)2425    - [Замена обратных кавычек оболочки /bin/sh](https://python-all.ru/3.0/library/subprocess.html#replacing-bin-sh-shell-backquote)26    - [Замена конвейера оболочки](https://python-all.ru/3.0/library/subprocess.html#replacing-shell-pipeline)27    - [Замена os.system()](https://python-all.ru/3.0/library/subprocess.html#replacing-os-system)28    - [Замена семейства os.spawn](https://python-all.ru/3.0/library/subprocess.html#replacing-the-os-spawn-family)29    - [Замена os.popen](https://python-all.ru/3.0/library/subprocess.html#replacing-os-popen)30- [`socket` – Низкоуровневый сетевой интерфейс](https://python-all.ru/3.0/library/socket.html)3132  - [Объекты сокетов](https://python-all.ru/3.0/library/socket.html#id1)33  - [Пример](https://python-all.ru/3.0/library/socket.html#example)34- [`ssl` – SSL-обёртка для объектов сокетов](https://python-all.ru/3.0/library/ssl.html)3536  - [Функции, константы и исключения](https://python-all.ru/3.0/library/ssl.html#functions-constants-and-exceptions)37  - [Объекты SSLSocket](https://python-all.ru/3.0/library/ssl.html#sslsocket-objects)38  - [Сертификаты](https://python-all.ru/3.0/library/ssl.html#certificates)39  - [Примеры](https://python-all.ru/3.0/library/ssl.html#examples)4041    - [Проверка поддержки SSL](https://python-all.ru/3.0/library/ssl.html#testing-for-ssl-support)42    - [Работа на стороне клиента](https://python-all.ru/3.0/library/ssl.html#client-side-operation)43    - [Работа на стороне сервера](https://python-all.ru/3.0/library/ssl.html#server-side-operation)44- [`signal` – Установка обработчиков асинхронных событий](https://python-all.ru/3.0/library/signal.html)4546  - [Пример](https://python-all.ru/3.0/library/signal.html#example)47- [`asyncore` – Асинхронный обработчик сокетов](https://python-all.ru/3.0/library/asyncore.html)4849  - [Пример asyncore: простой HTTP-клиент](https://python-all.ru/3.0/library/asyncore.html#asyncore-example-basic-http-client)50- [`asynchat` – Асинхронный обработчик команд/ответов для сокетов](https://python-all.ru/3.0/library/asynchat.html)5152  - [asynchat – Вспомогательные классы и функции](https://python-all.ru/3.0/library/asynchat.html#asynchat-auxiliary-classes-and-functions)53  - [Пример asynchat](https://python-all.ru/3.0/library/asynchat.html#id1)54