cffi-based Python bindings for nanomsg
Project description
Is what it says on the tin. Stay tuned for more. Dependencies:
Python 2.7 or 3.4
cffi (http://cffi.readthedocs.org/en/latest/) and its dependencies
nanomsg (tested with 1.0)
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())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nnpy-1.4.2.tar.gz
(6.4 kB
view details)
File details
Details for the file nnpy-1.4.2.tar.gz
.
File metadata
- Download URL: nnpy-1.4.2.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52c1612f116294a7c87a27e49e027f3b55baefc9d279fbbf70e84d315d430ff9 |
|
MD5 | c42e34a78c11ebbdd389deff26a91def |
|
BLAKE2b-256 | 2320490a767ad65f43e42d67766462336b8fee73fc34456ae1d15551f466332c |