Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nnpy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nnpy

cffi-based Python bindings for nanomsg

  • 1.4.2
  • PyPI
  • Socket score

Maintainers
1

nnpy: cffi-based Python bindings for nanomsg

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:

.. code-block:: shell

$ sudo pip install nnpy

Getting started

.. code-block:: python

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

  • nanomsg <http://nanomsg.org/>_
  • aionn <https://github.com/wrobell/aionn>_ - asyncio messaging library based on nnpy

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc