|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| buildutils/ | H | 16-Sep-2021 | - | 3,493 | 1,233 |
| bundled/zeromq/ | H | 16-Sep-2021 | - | 62,150 | 40,159 |
| docs/ | H | 03-May-2022 | - | 3,644 | 2,396 |
| examples/ | H | 16-Sep-2021 | - | 3,039 | 2,005 |
| perf/ | H | 16-Sep-2021 | - | 989 | 879 |
| pyzmq.egg-info/ | H | 03-May-2022 | - | 126 | 92 |
| tools/ | H | 16-Sep-2021 | - | 443 | 349 |
| zmq/ | H | 16-Sep-2021 | - | 103,861 | 79,426 |
| AUTHORS.md | H A D | 16-Sep-2021 | 4.7 KiB | 110 | 99 |
| CONTRIBUTING.md | H A D | 16-Sep-2021 | 3.1 KiB | 86 | 58 |
| COPYING.BSD | H A D | 16-Sep-2021 | 1.6 KiB | 33 | 24 |
| COPYING.LESSER | H A D | 16-Sep-2021 | 8.3 KiB | 182 | 140 |
| MANIFEST.in | H A D | 16-Sep-2021 | 945 | 48 | 42 |
| PKG-INFO | H A D | 16-Sep-2021 | 4.7 KiB | 126 | 92 |
| README.md | H A D | 16-Sep-2021 | 3.5 KiB | 93 | 62 |
| pyproject.toml | H A D | 16-Sep-2021 | 266 | 13 | 11 |
| setup.cfg | H A D | 16-Sep-2021 | 38 | 5 | 3 |
| setup.cfg.android | H A D | 16-Sep-2021 | 438 | 17 | 14 |
| setup.cfg.template | H A D | 16-Sep-2021 | 810 | 13 | 11 |
| setup.py | H A D | 16-Sep-2021 | 46.2 KiB | 1,404 | 1,046 |
| zmqversion.py | H A D | 16-Sep-2021 | 4 KiB | 137 | 109 |
README.md
1# PyZMQ: Python bindings for ØMQ
2
3[![Build Status](https://github.com/zeromq/pyzmq/actions/workflows/test.yml/badge.svg)](https://github.com/zeromq/pyzmq/actions/workflows/test.yml)
4
5This package contains Python bindings for [ØMQ](http://www.zeromq.org).
6ØMQ is a lightweight and fast messaging implementation.
7
8PyZMQ should work with any reasonable version of Python (≥ 3.4),
9as well as Python 2.7 and 3.3, as well as PyPy.
10The Cython backend used by CPython supports libzmq ≥ 2.1.4 (including 3.2.x and 4.x),
11but the CFFI backend used by PyPy only supports libzmq ≥ 3.2.2 (including 4.x).
12
13For a summary of changes to pyzmq, see our
14[changelog](https://pyzmq.readthedocs.io/en/latest/changelog.html).
15
16### ØMQ 3.x, 4.x
17
18PyZMQ fully supports the 3.x and 4.x APIs of libzmq,
19developed at [zeromq/libzmq](https://github.com/zeromq/libzmq).
20No code to change, no flags to pass,
21just build pyzmq against the latest and it should work.
22
23PyZMQ does not support the old libzmq 2 API on PyPy.
24
25## Documentation
26
27See PyZMQ's Sphinx-generated
28documentation [on Read the Docs](https://pyzmq.readthedocs.io) for API
29details, and some notes on Python and Cython development. If you want to
30learn about using ØMQ in general, the excellent [ØMQ
31Guide](http://zguide.zeromq.org/py:all) is the place to start, which has a
32Python version of every example. We also have some information on our
33[wiki](https://github.com/zeromq/pyzmq/wiki).
34
35## Downloading
36
37Unless you specifically want to develop PyZMQ, we recommend downloading
38the PyZMQ source code or wheels from
39[PyPI](https://pypi.io/project/pyzmq),
40or install with conda.
41
42You can also get the latest source code from our GitHub repository, but
43building from the repository will require that you install recent Cython.
44
45## Building and installation
46
47For more detail on building pyzmq, see [our Wiki](https://github.com/zeromq/pyzmq/wiki/Building-and-Installing-PyZMQ).
48
49We build wheels for macOS, Windows, and Linux, so you can get a binary on those platforms with:
50
51 pip install pyzmq
52
53but compiling from source with `pip install pyzmq` should work in most environments.
54Especially on macOS, make sure you are using the latest pip (≥ 8), or it may not find the right wheels.
55
56If the wheel doesn't work for some reason, or you want to force pyzmq to be compiled
57(this is often preferable if you already have libzmq installed and configured the way you want it),
58you can force installation with:
59
60 pip install --no-binary=:all: pyzmq
61
62When compiling pyzmq (e.g. installing with pip on Linux),
63it is generally recommended that zeromq be installed separately,
64via homebrew, apt, yum, etc:
65
66 # Debian-based
67 sudo apt-get install libzmq3-dev
68
69 # RHEL-based
70 sudo yum install libzmq3-devel
71
72If this is not available, pyzmq will _try_ to build libzmq as a Python Extension,
73though this is not guaranteed to work.
74
75Building pyzmq from the git repo (including release tags on GitHub) requires Cython.
76
77## Old versions
78
79pyzmq 16 drops support Python 2.6 and 3.2.
80If you need to use one of those Python versions, you can pin your pyzmq version to before 16:
81
82 pip install 'pyzmq<16'
83
84For libzmq 2.0.x, use 'pyzmq<2.1'
85
86pyzmq-2.1.11 was the last version of pyzmq to support Python 2.5,
87and pyzmq ≥ 2.2.0 requires Python ≥ 2.6.
88pyzmq-13.0.0 introduces PyPy support via CFFI, which only supports libzmq-3.2.2 and newer.
89
90PyZMQ releases ≤ 2.2.0 matched libzmq versioning, but this is no longer the case,
91starting with PyZMQ 13.0.0 (it was the thirteenth release, so why not?).
92PyZMQ ≥ 13.0 follows semantic versioning conventions accounting only for PyZMQ itself.
93