POSIX IPC for Python - Semaphores, Shared Memory and Message Queues


The Python extension module posix_ipc gives Python access to POSIX inter-process semaphores, shared memory and message queues on systems that support the POSIX Realtime Extensions a.k.a. POSIX 1003.1b-1993. That includes most (all?) Linuxes with kernel ≥ 2.6, FreeBSD ≥ 7.2, and OpenSolaris ≥ 2008.05.

It allows Python applications to perform IPC with non-Python programs. If you want to IPC between Python programs, you're better off using the multiprocessing module or the multiprocessing.shared_memory module from Python's standard library.

As of November 2022, the code and documentation are hosted at GitHub:


You can download installable source code tarballs get them from PyPI where some Mac-compatible wheels are available too.

Installable source code tarballs are also available for download here.