> **Источник:** https://python-all.ru/3.0/library/ipc.html
>
> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.

---

# Межпроцессное взаимодействие и сети

Модули, описанные в этой главе, предоставляют механизмы для взаимодействия разных процессов.

Некоторые модули работают только для двух процессов, находящихся на одной машине, например, [`signal`](https://python-all.ru/3.0/library/signal.html#module-signal) и [`subprocess`](https://python-all.ru/3.0/library/subprocess.html#module-subprocess). Другие модули поддерживают сетевые протоколы, которые могут использоваться двумя или более процессами для обмена данными между машинами.

Список модулей, описанных в этой главе:

- [`подпроцесс` – Управление подпроцессами](https://python-all.ru/3.0/library/subprocess.html)

  - [Использование модуля подпроцесс](https://python-all.ru/3.0/library/subprocess.html#using-the-subprocess-module)

    - [Удобные функции](https://python-all.ru/3.0/library/subprocess.html#convenience-functions)
    - [Исключения](https://python-all.ru/3.0/library/subprocess.html#exceptions)
    - [Безопасность](https://python-all.ru/3.0/library/subprocess.html#security)
  - [Объекты Popen](https://python-all.ru/3.0/library/subprocess.html#popen-objects)
  - [Замена старых функций модулем подпроцесс](https://python-all.ru/3.0/library/subprocess.html#replacing-older-functions-with-the-subprocess-module)

    - [Замена обратных кавычек оболочки /bin/sh](https://python-all.ru/3.0/library/subprocess.html#replacing-bin-sh-shell-backquote)
    - [Замена конвейера оболочки](https://python-all.ru/3.0/library/subprocess.html#replacing-shell-pipeline)
    - [Замена os.system()](https://python-all.ru/3.0/library/subprocess.html#replacing-os-system)
    - [Замена семейства os.spawn](https://python-all.ru/3.0/library/subprocess.html#replacing-the-os-spawn-family)
    - [Замена os.popen](https://python-all.ru/3.0/library/subprocess.html#replacing-os-popen)
- [`socket` – Низкоуровневый сетевой интерфейс](https://python-all.ru/3.0/library/socket.html)

  - [Объекты сокетов](https://python-all.ru/3.0/library/socket.html#id1)
  - [Пример](https://python-all.ru/3.0/library/socket.html#example)
- [`ssl` – SSL-обёртка для объектов сокетов](https://python-all.ru/3.0/library/ssl.html)

  - [Функции, константы и исключения](https://python-all.ru/3.0/library/ssl.html#functions-constants-and-exceptions)
  - [Объекты SSLSocket](https://python-all.ru/3.0/library/ssl.html#sslsocket-objects)
  - [Сертификаты](https://python-all.ru/3.0/library/ssl.html#certificates)
  - [Примеры](https://python-all.ru/3.0/library/ssl.html#examples)

    - [Проверка поддержки SSL](https://python-all.ru/3.0/library/ssl.html#testing-for-ssl-support)
    - [Работа на стороне клиента](https://python-all.ru/3.0/library/ssl.html#client-side-operation)
    - [Работа на стороне сервера](https://python-all.ru/3.0/library/ssl.html#server-side-operation)
- [`signal` – Установка обработчиков асинхронных событий](https://python-all.ru/3.0/library/signal.html)

  - [Пример](https://python-all.ru/3.0/library/signal.html#example)
- [`asyncore` – Асинхронный обработчик сокетов](https://python-all.ru/3.0/library/asyncore.html)

  - [Пример asyncore: простой HTTP-клиент](https://python-all.ru/3.0/library/asyncore.html#asyncore-example-basic-http-client)
- [`asynchat` – Асинхронный обработчик команд/ответов для сокетов](https://python-all.ru/3.0/library/asynchat.html)

  - [asynchat – Вспомогательные классы и функции](https://python-all.ru/3.0/library/asynchat.html#asynchat-auxiliary-classes-and-functions)
  - [Пример asynchat](https://python-all.ru/3.0/library/asynchat.html#id1)
