All Projects → nanomsg → Nnpy

nanomsg / Nnpy

Licence: mit
cffi-based Python bindings for nanomsg

Programming Languages

python
139335 projects - #7 most used programming language

nnpy: cffi-based Python bindings for nanomsg

Is what it says on the tin. Stay tuned for more. Dependencies:

How to install

The usual should work:

.. code-block:: shell

$ sudo pip install nnpy

Getting started

.. code-block:: python

import nnpy

pub = nnpy.Socket(nnpy.AF_SP, nnpy.PUB) pub.bind('inproc://foo')

sub = nnpy.Socket(nnpy.AF_SP, nnpy.SUB) sub.connect('inproc://foo') sub.setsockopt(nnpy.SUB, nnpy.SUB_SUBSCRIBE, '')

pub.send('hello, world') print(sub.recv())

Related Projects

  • nanomsg <http://nanomsg.org/>_
  • aionn <https://github.com/wrobell/aionn>_ - asyncio messaging library based on nnpy
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].