Metadata-Version: 2.1
Name: nnpy
Version: 0.1
Summary: cffi-based Python bindings for nanomsg
Home-page: https://github.com/nanomsg/nnpy
Author: Dirkjan Ochtman
Author-email: dirkjan@ochtman.nl
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Requires-Dist: cffi

nnpy: cffi-based Python bindings for nanomsg
============================================

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

- Python 2.7 or 3.3
- cffi (http://cffi.readthedocs.org/en/latest/) and its dependencies
- nanomsg (tested with 0.2)

How to install
--------------

The usual should work:

.. code-block:: shell

   $ sudo python setup.py install

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())


