• This repository has been archived on 27/Sep/2021
  • Stars
    star
    117
  • Rank 300,266 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created about 11 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

cffi-based Python bindings for nanomsg

nnpy: cffi-based Python bindings for nanomsg

This library is no longer being maintained.

Instead, consider using pynng.

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