PyZMQ provides Python bindings for ØMQ (ZeroMQ), a lightweight messaging implementation. It supports stable libzmq APIs and runs on CPython and PyPy.
Overview
PyZMQ is a Python package that wraps ZeroMQ so applications can send and receive messages through ØMQ’s networking patterns. ØMQ is a lightweight, fast messaging implementation; PyZMQ exposes that stack to Python code.
The bindings support the stable (non-draft) 3.x and 4.x libzmq APIs. You can build PyZMQ against a recent libzmq without changing application code. Sphinx documentation covers API details, and the ØMQ Guide covers general ZeroMQ usage, including Python examples.
Most users install from PyPI wheels or conda rather than compiling. Pre-built wheels are provided for macOS, Windows, and Linux; pip can also compile from source when needed. PyZMQ works with reasonably current Python releases and supports libzmq from 3.2.2 upward.
PyZMQ is aimed at developers who need ZeroMQ sockets and messaging primitives inside Python programs, not as a standalone server product.
Key features
- Python bindings for ØMQ
- Stable libzmq 3.x and 4.x API support
- CPython and PyPy compatibility
- Pre-built wheels for major desktop OSes
- pip and conda installation
- Sphinx API documentation
- Cython-based implementation
Use cases
- Distributed messaging in Python services
- Prototyping ØMQ patterns from the guide
- Linking Python apps to existing libzmq installs