Skip to main content

cffi-based Python bindings for nanomsg

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nnpy-bundle, version 1.4.2.post1
Filename, size File type Python version Upload date Hashes
Filename, size nnpy_bundle-1.4.2.post1-cp35-cp35m-manylinux1_x86_64.whl (165.8 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size nnpy_bundle-1.4.2.post1-cp36-cp36m-manylinux1_x86_64.whl (165.4 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size nnpy_bundle-1.4.2.post1-cp37-cp37m-manylinux1_x86_64.whl (165.4 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size nnpy_bundle-1.4.2.post1-cp38-cp38-manylinux1_x86_64.whl (165.9 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size nnpy-bundle-1.4.2.post1.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page