Go to file
Min RK 8e4e5c80dc
Bump to 25.0.0
2023-01-12 13:07:58 +01:00
.circleci CIBW_ARCHS env is unnecessary on a native arm worker 2022-10-12 09:26:47 +02:00
.github publish both 2014 and 2_28 wheels for cpython >= 3.10, pypy >= 3.9 2023-01-02 15:51:14 +01:00
.obs OBS CI: use link_package instead of branch_package 2021-09-21 23:17:16 +01:00
RELICENSE run pre-commit (isort, pyupgrade) 2021-12-07 14:44:16 +01:00
buildutils run constants generation in pre-commit 2022-10-03 09:56:46 -07:00
docs note manylinux_2_28 wheels in changelog 2023-01-02 16:18:34 +01:00
examples specify cpu count to make -j 2022-10-03 09:08:02 -07:00
mypy_tests more types! 2022-01-11 15:49:04 +01:00
packaging deprecate mostly unused `setup.py test` entrypoint 2022-12-21 10:16:52 +01:00
perf run pre-commit (isort, pyupgrade) 2021-12-07 14:44:16 +01:00
tools bump cibuildwheel 2.10.2 2022-10-12 10:02:16 +02:00
zmq Bump to 25.0.0 2023-01-12 13:07:58 +01:00
.coveragerc add coverage to tests 2020-11-27 15:11:03 +01:00
.flake8 deprecate utils.strtypes 2022-03-03 15:05:08 +01:00
.gitignore detect musl (using packaging) 2021-08-18 10:25:56 +02:00
.mailmap run pre-commit fixer 2021-05-16 21:23:37 +02:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2023-01-02 17:54:04 +00:00
.prettierignore prettier: ignore externals 2021-08-01 12:27:38 +02:00
.readthedocs.yml Modernize usage of readthedocs 2020-06-06 22:00:50 +09:00
AUTHORS.md adopt pydata-sphinx-theme 2022-03-02 10:22:14 +01:00
CONTRIBUTING.md move CI badge from README to CONTRIBUTING 2022-03-28 14:27:09 +02:00
COPYING.BSD Updating license of zmqweb to BSD. 2012-02-29 16:33:39 -08:00
COPYING.LESSER include libzmq static-link exception 2015-11-23 09:18:08 +01:00
MANIFEST.in libzmq already bundles wepoll 2021-08-05 08:25:02 +02:00
README.md move CI badge from README to CONTRIBUTING 2022-03-28 14:27:09 +02:00
SECURITY.md pre-commit run 2021-07-29 12:03:44 +02:00
Vagrantfile adding Vagrantfile support 2016-11-25 20:23:12 -05:00
codecov.yml add coverage to tests 2020-11-27 15:11:03 +01:00
mypy.ini explicitly allow untypes calls in zmq 2022-08-12 09:08:52 +02:00
pyproject.toml Bump to 25.0.0 2023-01-12 13:07:58 +01:00
pytest.ini migrate some tests to async test 2022-09-29 11:15:51 +02:00
setup.cfg.android run pre-commit fixer 2021-05-16 21:23:37 +02:00
setup.cfg.template Fix typos 2022-06-07 20:28:50 +08:00
setup.py Bump to 25.0.0 2023-01-12 13:07:58 +01:00
test-requirements.txt migrate some tests to async test 2022-09-29 11:15:51 +02:00
zmqversion.py run pre-commit (isort, pyupgrade) 2021-12-07 14:44:16 +01:00

README.md

PyZMQ: Python bindings for ØMQ

This package contains Python bindings for ZeroMQ. ØMQ is a lightweight and fast messaging implementation.

PyZMQ should work with any reasonable version of Python (≥ 3.4), as well as Python 2.7 and 3.3, as well as PyPy. The Cython backend used by CPython supports libzmq ≥ 2.1.4 (including 3.2.x and 4.x), but the CFFI backend used by PyPy only supports libzmq ≥ 3.2.2 (including 4.x).

For a summary of changes to pyzmq, see our changelog.

ØMQ 3.x, 4.x

PyZMQ fully supports the 3.x and 4.x APIs of libzmq, developed at zeromq/libzmq. No code to change, no flags to pass, just build pyzmq against the latest and it should work.

PyZMQ does not support the old libzmq 2 API on PyPy.

Documentation

See PyZMQ's Sphinx-generated documentation on Read the Docs for API details, and some notes on Python and Cython development. If you want to learn about using ØMQ in general, the excellent ØMQ Guide is the place to start, which has a Python version of every example. We also have some information on our wiki.

Downloading

Unless you specifically want to develop PyZMQ, we recommend downloading the PyZMQ source code or wheels from PyPI, or install with conda.

You can also get the latest source code from our GitHub repository, but building from the repository will require that you install recent Cython.

Building and installation

For more detail on building pyzmq, see our Wiki.

We build wheels for macOS, Windows, and Linux, so you can get a binary on those platforms with:

pip install pyzmq

but compiling from source with pip install pyzmq should work in most environments. Especially on macOS, make sure you are using the latest pip (≥ 8), or it may not find the right wheels.

If the wheel doesn't work for some reason, or you want to force pyzmq to be compiled (this is often preferable if you already have libzmq installed and configured the way you want it), you can force installation with:

pip install --no-binary=:all: pyzmq

When compiling pyzmq (e.g. installing with pip on Linux), it is generally recommended that zeromq be installed separately, via homebrew, apt, yum, etc:

# Debian-based
sudo apt-get install libzmq3-dev

# RHEL-based
sudo yum install libzmq3-devel

If this is not available, pyzmq will try to build libzmq as a Python Extension, though this is not guaranteed to work.

Building pyzmq from the git repo (including release tags on GitHub) requires Cython.

Old versions

pyzmq 16 drops support Python 2.6 and 3.2. If you need to use one of those Python versions, you can pin your pyzmq version to before 16:

pip install 'pyzmq<16'

For libzmq 2.0.x, use 'pyzmq<2.1'

pyzmq-2.1.11 was the last version of pyzmq to support Python 2.5, and pyzmq ≥ 2.2.0 requires Python ≥ 2.6. pyzmq-13.0.0 introduces PyPy support via CFFI, which only supports libzmq-3.2.2 and newer.

PyZMQ releases ≤ 2.2.0 matched libzmq versioning, but this is no longer the case, starting with PyZMQ 13.0.0 (it was the thirteenth release, so why not?). PyZMQ ≥ 13.0 follows semantic versioning conventions accounting only for PyZMQ itself.