cffi-based Python bindings for nanomsg
Clone or download
Latest commit d8f260a Feb 9, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
nnpy Fix tests under python3. Jun 3, 2017
.gitignore Add .coverage to .gitignore Sep 24, 2016
LICENSE Remove irrelevant trademark notice. Aug 21, 2013
MANIFEST.in Include generate.py script in distribution (fixes #11) Sep 24, 2015
README.rst improve install section Nov 23, 2017
generate.py Fix python3 build Nov 17, 2016
setup.py Bump version to 1.4.2 Feb 9, 2018

README.rst

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:

$ sudo pip install nnpy

Getting started

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