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 .

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.1.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file nnpy-1.4.1.tar.gz.

File metadata

  • Download URL: nnpy-1.4.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nnpy-1.4.1.tar.gz
Algorithm Hash digest
SHA256 60ae813db053689450617d37a9ee236cb4b892f9b3e06e7a2b2e0b2447eed8b7
MD5 5fe99bf1d3d27072bb07ed8a125f5536
BLAKE2b-256 a05e0b0628b4fdb671862e5613323acd191363513066852244dd26fca9fe7d19

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page