Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
nnpy/ | H | 09-Feb-2018 | - | 292 | 251 | |
nnpy.egg-info/ | H | 03-May-2022 | - | 63 | 47 | |
.gitignore | H A D | 24-Sep-2016 | 71 | 9 | 7 | |
LICENSE | H A D | 05-Mar-2016 | 1,023 | 18 | 15 | |
MANIFEST.in | H A D | 05-Mar-2016 | 20 | 2 | 1 | |
PKG-INFO | H A D | 09-Feb-2018 | 2 KiB | 63 | 47 | |
README.rst | H A D | 09-Feb-2018 | 871 | 41 | 26 | |
generate.py | H A D | 03-May-2022 | 3.2 KiB | 124 | 85 | |
setup.cfg | H A D | 09-Feb-2018 | 38 | 5 | 3 | |
setup.py | H A D | 09-Feb-2018 | 1,010 | 30 | 28 |
README.rst
1nnpy: cffi-based Python bindings for nanomsg 2============================================ 3 4Is what it says on the tin. Stay tuned for more. Dependencies: 5 6- Python 2.7 or 3.4 7- cffi (http://cffi.readthedocs.org/en/latest/) and its dependencies 8- nanomsg (tested with 1.0) 9 10How to install 11-------------- 12 13The usual should work: 14 15.. code-block:: shell 16 17 $ sudo pip install nnpy 18 19Getting started 20--------------- 21 22.. code-block:: python 23 24 import nnpy 25 26 pub = nnpy.Socket(nnpy.AF_SP, nnpy.PUB) 27 pub.bind('inproc://foo') 28 29 sub = nnpy.Socket(nnpy.AF_SP, nnpy.SUB) 30 sub.connect('inproc://foo') 31 sub.setsockopt(nnpy.SUB, nnpy.SUB_SUBSCRIBE, '') 32 33 pub.send('hello, world') 34 print(sub.recv()) 35 36Related Projects 37---------------- 38 39- `nanomsg <http://nanomsg.org/>`_ 40- `aionn <https://github.com/wrobell/aionn>`_ - asyncio messaging library based on nnpy 41