Skip to content
/ nnpy Public
forked from nanomsg/nnpy

cffi-based Python bindings for nanomsg

License

Notifications You must be signed in to change notification settings

pipamc/nnpy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .

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

About

cffi-based Python bindings for nanomsg

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%