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.3
cffi (http://cffi.readthedocs.org/en/latest/) and its dependencies
nanomsg (tested with 0.2)
How to install
The usual should work:
$ sudo python setup.py 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())
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-0.9.tar.gz
(3.0 kB
view details)
File details
Details for the file nnpy-0.9.tar.gz
.
File metadata
- Download URL: nnpy-0.9.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d085308339129b87455026d29a6e05eb5ae00a8b20a87457d57f98b01e0eed1d |
|
MD5 | cea657fb486f499a77c6a42734cbe46f |
|
BLAKE2b-256 | 7334647a0eb31393680bbcc73698a5c390a7e03868b132196019ef1a67c64508 |